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.0009512/0.0009513, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.611/1.611, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007924/0.0007924, allocations: 82.23 kB / 262.4 MB, free: 1.695 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.069e-05/2.071e-05, allocations: 4 kB / 315.5 MB, free: 22.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08956/0.0896, allocations: 47.59 MB / 363.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.334/0.4236, allocations: 79.18 MB / 442.2 MB, free: 0.5 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/0.4239, allocations: 73.14 kB / 442.3 MB, free: 472 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0267/0.4506, allocations: 10.18 MB / 452.5 MB, free: 7.895 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4507, allocations: 0 / 452.5 MB, free: 7.895 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.627e-05/0.4507, allocations: 12 kB / 452.5 MB, free: 7.883 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.002302/0.453, allocations: 1.07 MB / 453.6 MB, free: 6.793 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.4531, allocations: 8.031 kB / 453.6 MB, free: 6.785 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.4532, allocations: 75.16 kB / 453.7 MB, free: 6.711 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005141/0.4537, allocations: 422.5 kB / 454.1 MB, free: 6.344 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.288e-05/0.4538, allocations: 20 kB / 454.1 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.8e-05/0.4539, allocations: 32 kB / 454.1 MB, free: 6.293 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009178/0.4548, allocations: 0.5616 MB / 454.7 MB, free: 5.973 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000951/0.4558, allocations: 0.6521 MB / 455.3 MB, free: 5.441 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.4558, allocations: 7.938 kB / 455.3 MB, free: 5.434 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.729e-05/0.4558, allocations: 0 / 455.3 MB, free: 5.434 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.4559, allocations: 16 kB / 455.4 MB, free: 5.418 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004066/0.4599, allocations: 3.071 MB / 458.4 MB, free: 2.859 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000985/0.4609, allocations: 0.6766 MB / 459.1 MB, free: 2.348 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004433/0.4614, allocations: 284.8 kB / 459.4 MB, free: 2.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.141e-05/0.4615, allocations: 16.48 kB / 459.4 MB, free: 2.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004707/0.4619, allocations: 317.2 kB / 459.7 MB, free: 1.938 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 2.645e-06/0.462, allocations: 0 / 459.7 MB, free: 1.938 MB / 330.7 MB Notification: Performance of matching and sorting (n=50): time 0.0007829/0.4627, allocations: 480.2 kB / 460.2 MB, free: 1.609 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001215/0.4629, allocations: 269.4 kB / 460.4 MB, free: 1.281 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004168/0.4633, allocations: 406 kB / 460.8 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.129e-05/0.4634, allocations: 25.7 kB / 460.9 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002115/0.4636, allocations: 336.6 kB / 461.2 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.4637, allocations: 162.5 kB / 461.4 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.941e-05/0.4638, allocations: 8 kB / 461.4 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.4639, allocations: 372.3 kB / 461.7 MB, free: 196 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.4643, allocations: 232.2 kB / 461.9 MB, free: 72 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000508/0.4648, allocations: 483.6 kB / 462.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003746/0.4652, allocations: 259.8 kB / 462.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.4652, allocations: 4 kB / 462.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001075/0.4663, allocations: 0.7043 MB / 463.4 MB, free: 14.94 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.782e-05/0.4663, allocations: 66.95 kB / 463.4 MB, free: 14.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.4663, allocations: 8 kB / 463.5 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.4664, allocations: 12.81 kB / 463.5 MB, free: 14.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.4674, allocations: 255.5 kB / 463.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.638e-05/0.4674, allocations: 8 kB / 463.7 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009834/0.4684, allocations: 199.1 kB / 463.9 MB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.42e-05/0.4685, allocations: 30.94 kB / 464 MB, free: 14.38 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.000169/0.4687, allocations: 136.7 kB / 464.1 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.485e-05/0.4688, allocations: 62.66 kB / 464.1 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001504/0.4689, allocations: 54.66 kB / 464.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.4689, allocations: 4 kB / 464.2 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.469, allocations: 4 kB / 464.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.469, allocations: 3.984 kB / 464.2 MB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001669/0.4706, allocations: 1.286 MB / 465.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.4707, allocations: 0 / 465.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007898/0.4715, allocations: 175.1 kB / 465.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.4715, allocations: 0 / 465.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.964e-05/0.4715, allocations: 7.875 kB / 465.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.4715, allocations: 3.953 kB / 465.7 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/0.4715, allocations: 15.98 kB / 465.7 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.4726, allocations: 0.8571 MB / 466.6 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.4728, allocations: 135.5 kB / 466.7 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.419e-05/0.4728, allocations: 0 / 466.7 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007724/0.4736, allocations: 135.9 kB / 466.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.4738, allocations: 65.81 kB / 466.9 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.589e-05/0.4738, allocations: 11.5 kB / 466.9 MB, free: 12.11 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002869/0.4741, allocations: 299.3 kB / 467.2 MB, free: 11.89 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4741, allocations: 0 / 467.2 MB, free: 11.89 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005404/0.4746, allocations: 155.7 kB / 467.3 MB, free: 11.74 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.0001692/0.4748, allocations: 114.5 kB / 467.4 MB, free: 11.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008908/0.4757, allocations: 0.679 MB / 468.1 MB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4757, allocations: 1.688 kB / 468.1 MB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003696/0.4761, allocations: 267.9 kB / 468.4 MB, free: 10.97 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003997/0.4765, allocations: 62.69 kB / 468.5 MB, free: 10.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.478, allocations: 0.8195 MB / 469.3 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.4784, allocations: 0.8745 MB / 470.1 MB, free: 9.305 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003922/0.4788, allocations: 76.53 kB / 470.2 MB, free: 9.227 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001872/0.479, allocations: 43.42 kB / 470.3 MB, free: 9.184 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.479, allocations: 4 kB / 470.3 MB, free: 9.18 MB / 346.7 MB Notification: Performance of Templates: time 0.01056/0.4896, allocations: 6.488 MB / 476.8 MB, free: 2.699 MB / 346.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