Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 110.9 kB / 17.75 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 190.6 kB / 18.68 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001041, allocations: 47.94 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2512, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.004683/0.2559, allocations: 4.222 MB / 405.6 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001659/0.2576, allocations: 1.187 MB / 406.8 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001901/0.2578, allocations: 8 kB / 406.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000212/0.258, allocations: 110.8 kB / 407 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003033/0.2583, allocations: 186.3 kB / 407.1 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005391/0.2589, allocations: 331.5 kB / 407.5 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008674/0.2597, allocations: 1.097 MB / 408.6 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003642/0.2601, allocations: 274.6 kB / 408.8 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003507/0.2605, allocations: 410.8 kB / 409.2 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000429/0.2609, allocations: 462.3 kB / 409.7 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.2611, allocations: 120 kB / 409.8 MB, free: 464 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00015/0.2612, allocations: 119.9 kB / 409.9 MB, free: 344 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001642/0.2614, allocations: 227.3 kB / 410.1 MB, free: 116 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003613/0.2617, allocations: 454.1 kB / 410.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009137/0.2627, allocations: 1.212 MB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2627, allocations: 4 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2627, allocations: 0 / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.2627, allocations: 0 / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002754/0.2655, allocations: 1.259 MB / 413 MB, free: 13.12 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.2655, allocations: 8.031 kB / 413.1 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001499/0.2657, allocations: 84 kB / 413.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006141/0.2663, allocations: 481.5 kB / 413.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.234e-05/0.2663, allocations: 49.67 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.2664, allocations: 60.38 kB / 413.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002228/0.2687, allocations: 0.9607 MB / 414.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/0.2687, allocations: 7.938 kB / 414.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.17e-05/0.2688, allocations: 24 kB / 414.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.2688, allocations: 20 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002976/0.2718, allocations: 0.9952 MB / 415.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004719/0.2765, allocations: 3.196 MB / 418.9 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002366/0.2789, allocations: 0.9107 MB / 419.8 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001212/0.2801, allocations: 441.8 kB / 420.3 MB, free: 5.633 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.824e-05/0.2802, allocations: 20.41 kB / 420.3 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001218/0.2814, allocations: 465.1 kB / 420.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.915e-06/0.2814, allocations: 0 / 420.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003257/0.2847, allocations: 1.091 MB / 421.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000177/0.2849, allocations: 380.3 kB / 422.2 MB, free: 3.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000828/0.2857, allocations: 0.577 MB / 422.8 MB, free: 3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.771e-05/0.2858, allocations: 37.7 kB / 422.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002792/0.2861, allocations: 375.5 kB / 423.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.2863, allocations: 169.6 kB / 423.3 MB, free: 2.418 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002711/0.2866, allocations: 134.6 kB / 423.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.2867, allocations: 374.8 kB / 423.8 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001242/0.288, allocations: 405.7 kB / 424.2 MB, free: 1.512 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.2894, allocations: 0.6772 MB / 424.9 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002396/0.2918, allocations: 0.9662 MB / 425.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.14e-06/0.2918, allocations: 0 / 425.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002992/0.2948, allocations: 1.138 MB / 427 MB, free: 14.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.544e-05/0.2948, allocations: 67.67 kB / 427.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.918e-05/0.2949, allocations: 8 kB / 427.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.2949, allocations: 8 kB / 427.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.296, allocations: 227.6 kB / 427.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.146e-05/0.296, allocations: 11.94 kB / 427.3 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.2971, allocations: 191 kB / 427.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.452e-05/0.2972, allocations: 36 kB / 427.6 MB, free: 13.95 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003018/0.2975, allocations: 226 kB / 427.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.2976, allocations: 71.23 kB / 427.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001552/0.2978, allocations: 70.41 kB / 427.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.2978, allocations: 0 / 427.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.2978, allocations: 0 / 427.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.2979, allocations: 148.2 kB / 428.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.298, allocations: 19.98 kB / 428.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007852/0.2988, allocations: 103.9 kB / 428.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.299, allocations: 56.31 kB / 428.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002834/0.3018, allocations: 0.8976 MB / 429.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003415/0.3052, allocations: 1.372 MB / 430.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001042/0.3063, allocations: 387.3 kB / 430.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005795/0.3069, allocations: 398.8 kB / 431.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of Backend: time 5.91e-07/0.3069, allocations: 4 kB / 431.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001935/0.3088, allocations: 0.7582 MB / 432 MB, free: 9.367 MB / 350.1 MB Notification: Performance of SimCode: time 0.0019/0.3108, allocations: 1.528 MB / 433.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of Templates: time 0.01746/0.3282, allocations: 11.15 MB / 444.7 MB, free: 12.7 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches