Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001133/0.001133, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.602/1.602, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000863/0.0008632, allocations: 74.73 kB / 267.9 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.573e-05/3.59e-05, allocations: 4 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1043, allocations: 47.58 MB / 370 MB, free: 1.715 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.405/0.5094, allocations: 79.6 MB / 449.6 MB, free: 13.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001943/0.5096, allocations: 70.59 kB / 449.7 MB, free: 13.69 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03759/0.5472, allocations: 10.26 MB / 459.9 MB, free: 4.922 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.739e-06/0.5473, allocations: 7.922 kB / 460 MB, free: 4.914 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.482e-05/0.5473, allocations: 12 kB / 460 MB, free: 4.902 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.00338/0.5507, allocations: 1.063 MB / 461 MB, free: 3.797 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.946e-05/0.5508, allocations: 12.02 kB / 461 MB, free: 3.785 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002149/0.551, allocations: 71.16 kB / 461.1 MB, free: 3.715 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007497/0.5518, allocations: 431.2 kB / 461.5 MB, free: 3.254 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.754e-05/0.5519, allocations: 45.31 kB / 461.6 MB, free: 3.211 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000136/0.552, allocations: 52 kB / 461.6 MB, free: 3.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001698/0.5537, allocations: 0.7303 MB / 462.4 MB, free: 2.367 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.039e-05/0.5538, allocations: 3.984 kB / 462.4 MB, free: 2.363 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.525e-05/0.5539, allocations: 20 kB / 462.4 MB, free: 2.344 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.049e-05/0.5539, allocations: 16 kB / 462.4 MB, free: 2.328 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00154/0.5555, allocations: 0.5936 MB / 463 MB, free: 1.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006413/0.5619, allocations: 3.165 MB / 466.2 MB, free: 14.44 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001618/0.5635, allocations: 0.6905 MB / 466.8 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007898/0.5643, allocations: 302.5 kB / 467.1 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.215e-05/0.5644, allocations: 16.56 kB / 467.2 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008398/0.5653, allocations: 329.3 kB / 467.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 3.778e-06/0.5653, allocations: 0 / 467.5 MB, free: 13.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=50): time 0.001394/0.5667, allocations: 0.5071 MB / 468 MB, free: 12.53 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.5669, allocations: 269.5 kB / 468.2 MB, free: 12.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007079/0.5676, allocations: 431.8 kB / 468.7 MB, free: 11.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.299e-05/0.5677, allocations: 37.7 kB / 468.7 MB, free: 11.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002893/0.568, allocations: 335.6 kB / 469 MB, free: 11.39 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.5682, allocations: 169.6 kB / 469.2 MB, free: 11.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.302e-05/0.5682, allocations: 20 kB / 469.2 MB, free: 11.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.5684, allocations: 366.8 kB / 469.6 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006431/0.5691, allocations: 245.6 kB / 469.8 MB, free: 10.6 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008971/0.57, allocations: 0.4992 MB / 470.3 MB, free: 9.984 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007068/0.5707, allocations: 336.9 kB / 470.6 MB, free: 9.648 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.525e-06/0.5707, allocations: 4 kB / 470.7 MB, free: 9.645 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001952/0.5727, allocations: 0.826 MB / 471.5 MB, free: 8.797 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.01e-05/0.5728, allocations: 75.42 kB / 471.6 MB, free: 8.711 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.613e-05/0.5728, allocations: 8 kB / 471.6 MB, free: 8.703 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.843e-05/0.5728, allocations: 12 kB / 471.6 MB, free: 8.691 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/0.5745, allocations: 251.6 kB / 471.8 MB, free: 8.445 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.885e-05/0.5745, allocations: 19.89 kB / 471.8 MB, free: 8.426 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001548/0.5761, allocations: 219 kB / 472 MB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-05/0.5762, allocations: 32 kB / 472.1 MB, free: 8.18 MB / 346.7 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 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002389/0.5764, allocations: 148.7 kB / 472.2 MB, free: 8.027 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.5766, allocations: 59.34 kB / 472.3 MB, free: 7.969 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002229/0.5768, allocations: 65.36 kB / 472.3 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.5768, allocations: 4 kB / 472.4 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.5769, allocations: 0 / 472.4 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.5769, allocations: 11.94 kB / 472.4 MB, free: 7.891 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002891/0.5798, allocations: 1.381 MB / 473.7 MB, free: 6.457 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.5798, allocations: 7.953 kB / 473.8 MB, free: 6.449 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001224/0.581, allocations: 175.8 kB / 473.9 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.174e-05/0.5811, allocations: 4 kB / 473.9 MB, free: 6.273 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.177e-05/0.5811, allocations: 8 kB / 473.9 MB, free: 6.266 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.5811, allocations: 0 / 473.9 MB, free: 6.266 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.5812, allocations: 0 / 473.9 MB, free: 6.266 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00205/0.5832, allocations: 0.8927 MB / 474.8 MB, free: 5.355 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001816/0.5834, allocations: 140.3 kB / 475 MB, free: 5.199 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000124/0.5836, allocations: 19.92 kB / 475 MB, free: 5.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.5847, allocations: 143.9 kB / 475.1 MB, free: 5.039 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001871/0.5849, allocations: 56.34 kB / 475.2 MB, free: 4.984 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.164e-05/0.585, allocations: 20 kB / 475.2 MB, free: 4.965 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005533/0.5856, allocations: 329.6 kB / 475.5 MB, free: 4.645 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5856, allocations: 0 / 475.5 MB, free: 4.645 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008786/0.5865, allocations: 167.8 kB / 475.7 MB, free: 4.48 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002312/0.5867, allocations: 119.2 kB / 475.8 MB, free: 4.355 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001647/0.5884, allocations: 0.7162 MB / 476.5 MB, free: 3.613 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.5884, allocations: 4 kB / 476.5 MB, free: 3.609 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006795/0.5891, allocations: 278.5 kB / 476.8 MB, free: 3.336 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006315/0.5897, allocations: 79.56 kB / 476.9 MB, free: 3.258 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.5921, allocations: 0.856 MB / 477.7 MB, free: 2.379 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005503/0.5926, allocations: 0.8748 MB / 478.6 MB, free: 1.477 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006973/0.5934, allocations: 72.66 kB / 478.7 MB, free: 1.406 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002816/0.5937, allocations: 51.44 kB / 478.7 MB, free: 1.355 MB / 346.7 MB Notification: Performance of SimCode: time 1.383e-06/0.5937, allocations: 0 / 478.7 MB, free: 1.355 MB / 346.7 MB Notification: Performance of Templates: time 0.01815/0.6118, allocations: 7.145 MB / 485.9 MB, free: 10.21 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches