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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 221.5 MB / 230.3 MB, free: 7.555 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 93.84 kB / 281.2 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.498e-05/1.5e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09191/0.09194, allocations: 50.42 MB / 387.5 MB, free: 7.59 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3092/0.4012, allocations: 81.8 MB / 469.3 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.4015, allocations: 69.94 kB / 469.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03281/0.4343, allocations: 11.31 MB / 480.6 MB, free: 1.676 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4344, allocations: 0 / 480.6 MB, free: 1.676 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.845e-05/0.4344, allocations: 16 kB / 480.6 MB, free: 1.66 MB / 346.7 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.003339/0.4378, allocations: 1.117 MB / 481.8 MB, free: 496 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.4378, allocations: 8.031 kB / 481.8 MB, free: 488 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000344/0.4382, allocations: 86.97 kB / 481.9 MB, free: 400 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009796/0.4392, allocations: 492.1 kB / 482.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.506e-05/0.4392, allocations: 19.98 kB / 482.4 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/0.4394, allocations: 39.94 kB / 482.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001135/0.4405, allocations: 0.5767 MB / 483 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001086/0.4416, allocations: 0.697 MB / 483.7 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.4417, allocations: 0 / 483.7 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.61e-05/0.4417, allocations: 4 kB / 483.7 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.4417, allocations: 12 kB / 483.7 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004923/0.4467, allocations: 3.193 MB / 486.9 MB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.4478, allocations: 0.6667 MB / 487.5 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005135/0.4483, allocations: 286.5 kB / 487.8 MB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.424e-05/0.4484, allocations: 20.56 kB / 487.8 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005163/0.4489, allocations: 312.4 kB / 488.2 MB, free: 9.816 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 2.585e-06/0.4489, allocations: 0 / 488.2 MB, free: 9.816 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.000893/0.4498, allocations: 499.3 kB / 488.6 MB, free: 9.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001644/0.45, allocations: 372.3 kB / 489 MB, free: 8.867 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000514/0.4505, allocations: 426 kB / 489.4 MB, free: 8.445 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.197e-05/0.4506, allocations: 29.7 kB / 489.4 MB, free: 8.41 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000262/0.4509, allocations: 367.4 kB / 489.8 MB, free: 8.043 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.451, allocations: 161.7 kB / 490 MB, free: 7.883 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.223e-05/0.4511, allocations: 0 / 490 MB, free: 7.883 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.4512, allocations: 374.8 kB / 490.3 MB, free: 7.508 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003899/0.4516, allocations: 233.6 kB / 490.6 MB, free: 7.281 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006082/0.4523, allocations: 0.502 MB / 491.1 MB, free: 6.648 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004271/0.4527, allocations: 266 kB / 491.3 MB, free: 6.391 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.95e-06/0.4527, allocations: 0 / 491.3 MB, free: 6.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001215/0.4539, allocations: 0.7166 MB / 492 MB, free: 5.664 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.754e-05/0.454, allocations: 64.25 kB / 492.1 MB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.454, allocations: 4 kB / 492.1 MB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.848e-05/0.4541, allocations: 19.94 kB / 492.1 MB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.4552, allocations: 251.6 kB / 492.4 MB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.153e-05/0.4552, allocations: 15.95 kB / 492.4 MB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.4564, allocations: 203 kB / 492.6 MB, free: 5.105 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.994e-05/0.4565, allocations: 31.98 kB / 492.6 MB, free: 5.074 MB / 362.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.0002164/0.4567, allocations: 140.7 kB / 492.8 MB, free: 4.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.4568, allocations: 63.25 kB / 492.8 MB, free: 4.867 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001702/0.457, allocations: 57.72 kB / 492.9 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/0.457, allocations: 8 kB / 492.9 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.457, allocations: 4 kB / 492.9 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.356e-06/0.457, allocations: 3.953 kB / 492.9 MB, free: 4.797 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002005/0.459, allocations: 1.307 MB / 494.2 MB, free: 3.449 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.4591, allocations: 3.938 kB / 494.2 MB, free: 3.445 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008551/0.4599, allocations: 183.7 kB / 494.4 MB, free: 3.266 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.048e-05/0.4599, allocations: 3.953 kB / 494.4 MB, free: 3.262 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.563e-05/0.46, allocations: 12 kB / 494.4 MB, free: 3.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.46, allocations: 4 kB / 494.4 MB, free: 3.246 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.46, allocations: 0 / 494.4 MB, free: 3.246 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.4614, allocations: 0.8652 MB / 495.3 MB, free: 2.363 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.4615, allocations: 140.3 kB / 495.4 MB, free: 2.207 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001166/0.4616, allocations: 7.953 kB / 495.4 MB, free: 2.199 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008454/0.4625, allocations: 139.9 kB / 495.5 MB, free: 2.062 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001278/0.4626, allocations: 52.36 kB / 495.6 MB, free: 2.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.215e-05/0.4627, allocations: 16 kB / 495.6 MB, free: 1.996 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003786/0.4631, allocations: 315 kB / 495.9 MB, free: 1.691 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4631, allocations: 4 kB / 495.9 MB, free: 1.688 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006513/0.4637, allocations: 163.6 kB / 496.1 MB, free: 1.527 MB / 362.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.0002062/0.464, allocations: 116.4 kB / 496.2 MB, free: 1.406 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001121/0.4651, allocations: 0.6871 MB / 496.9 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.4651, allocations: 0 / 496.9 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003995/0.4655, allocations: 262 kB / 497.1 MB, free: 452 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004428/0.466, allocations: 78 kB / 497.2 MB, free: 372 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.4677, allocations: 0.8691 MB / 498.1 MB, free: 15.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004975/0.4682, allocations: 0.898 MB / 499 MB, free: 14.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004795/0.4687, allocations: 72.61 kB / 499.1 MB, free: 14.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002108/0.4689, allocations: 55.42 kB / 499.1 MB, free: 14.41 MB / 378.7 MB Notification: Performance of SimCode: time 4.6e-07/0.4689, allocations: 0 / 499.1 MB, free: 14.41 MB / 378.7 MB Notification: Performance of Templates: time 0.01233/0.4813, allocations: 6.859 MB / 0.4941 GB, free: 7.609 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches