Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.003186/0.003186, allocations: 177.5 kB / 17.41 MB, free: 4.281 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.677/4.677, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.001148/0.001148, allocations: 96.97 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006068/0.0006072, allocations: 8 kB / 328.1 MB, free: 15.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5099/0.5105, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2023/0.7129, allocations: 79.75 MB / 455.5 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004184/0.7134, allocations: 79.95 kB / 455.5 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05026/0.7637, allocations: 10.27 MB / 465.8 MB, free: 6.496 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.679e-06/0.7638, allocations: 0 / 465.8 MB, free: 6.496 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.544e-05/0.7639, allocations: 12 kB / 465.8 MB, free: 6.484 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.004155/0.7681, allocations: 1.128 MB / 466.9 MB, free: 5.289 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001022/0.7682, allocations: 8.031 kB / 467 MB, free: 5.281 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003555/0.7686, allocations: 76.09 kB / 467 MB, free: 5.207 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001189/0.7698, allocations: 441.7 kB / 467.5 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.225e-05/0.7699, allocations: 49.67 kB / 467.5 MB, free: 4.688 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001641/0.77, allocations: 52.38 kB / 467.6 MB, free: 4.637 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008105/0.7782, allocations: 1.008 MB / 468.6 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.358e-05/0.7783, allocations: 192 / 468.6 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001339/0.7784, allocations: 27.94 kB / 468.6 MB, free: 3.539 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.64e-05/0.7785, allocations: 12 kB / 468.6 MB, free: 3.527 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00484/0.7833, allocations: 1.124 MB / 469.7 MB, free: 2.402 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008072/0.7915, allocations: 3.17 MB / 472.9 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003631/0.7952, allocations: 1.035 MB / 473.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006335/0.8016, allocations: 497.4 kB / 474.4 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001077/0.8018, allocations: 20.41 kB / 474.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002281/0.8041, allocations: 0.5127 MB / 475 MB, free: 13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 7.674e-06/0.8041, allocations: 0 / 475 MB, free: 13 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.005694/0.8098, allocations: 1.256 MB / 476.2 MB, free: 11.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003158/0.8102, allocations: 269.5 kB / 476.5 MB, free: 11.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001917/0.8122, allocations: 0.494 MB / 477 MB, free: 10.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003314/0.8126, allocations: 41.69 kB / 477 MB, free: 10.86 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005913/0.8132, allocations: 335.6 kB / 477.3 MB, free: 10.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004253/0.8136, allocations: 169.5 kB / 477.5 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.8137, allocations: 16 kB / 477.5 MB, free: 10.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004815/0.8142, allocations: 370.7 kB / 477.9 MB, free: 9.973 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002023/0.8163, allocations: 461.7 kB / 478.3 MB, free: 9.523 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002223/0.8185, allocations: 0.7042 MB / 479 MB, free: 8.707 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004797/0.8233, allocations: 1.083 MB / 480.1 MB, free: 7.527 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.338e-05/0.8234, allocations: 0 / 480.1 MB, free: 7.527 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.009668/0.8331, allocations: 1.24 MB / 481.4 MB, free: 6.266 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001364/0.8333, allocations: 63.39 kB / 481.4 MB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.143e-05/0.8334, allocations: 8 kB / 481.4 MB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.042e-05/0.8334, allocations: 8 kB / 481.4 MB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00156/0.835, allocations: 251.9 kB / 481.7 MB, free: 5.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.572e-05/0.8351, allocations: 15.98 kB / 481.7 MB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001838/0.8369, allocations: 222.9 kB / 481.9 MB, free: 5.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000127/0.8371, allocations: 35.98 kB / 481.9 MB, free: 5.66 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006606/0.8378, allocations: 213.5 kB / 482.2 MB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001941/0.838, allocations: 55.34 kB / 482.2 MB, free: 5.387 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002412/0.8382, allocations: 69.58 kB / 482.3 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.375e-05/0.8382, allocations: 8 kB / 482.3 MB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.856e-05/0.8383, allocations: 4 kB / 482.3 MB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.8383, allocations: 7.922 kB / 482.3 MB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005376/0.8437, allocations: 1.751 MB / 484 MB, free: 3.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.129e-05/0.8438, allocations: 0 / 484 MB, free: 3.492 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/0.8449, allocations: 175.8 kB / 484.2 MB, free: 3.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.986e-05/0.845, allocations: 7.938 kB / 484.2 MB, free: 3.312 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.583e-05/0.845, allocations: 11.98 kB / 484.2 MB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.8451, allocations: 4 kB / 484.2 MB, free: 3.297 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.8451, allocations: 0 / 484.2 MB, free: 3.297 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01129/0.8564, allocations: 1.462 MB / 485.7 MB, free: 1.816 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000547/0.8571, allocations: 140.3 kB / 485.8 MB, free: 1.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005624/0.8577, allocations: 15.94 kB / 485.9 MB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001543/0.8592, allocations: 139.9 kB / 486 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003704/0.8596, allocations: 52.36 kB / 486 MB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001771/0.8598, allocations: 19.98 kB / 486.1 MB, free: 1.438 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001107/0.861, allocations: 342.9 kB / 486.4 MB, free: 1.105 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.861, allocations: 0 / 486.4 MB, free: 1.105 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00147/0.8625, allocations: 179.8 kB / 486.6 MB, free: 0.9297 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) * Number of clocked states: 0 () * 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.0004087/0.8629, allocations: 119.2 kB / 486.7 MB, free: 0.8008 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004807/0.8677, allocations: 1.11 MB / 487.8 MB, free: 15.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/0.8678, allocations: 0 / 487.8 MB, free: 15.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.8697, allocations: 462.7 kB / 488.3 MB, free: 15.21 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001232/0.8709, allocations: 93.84 kB / 488.3 MB, free: 15.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004501/0.8755, allocations: 1.442 MB / 489.8 MB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009105/0.8764, allocations: 0.8591 MB / 490.6 MB, free: 12.76 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005804/0.877, allocations: 55.42 kB / 490.7 MB, free: 12.71 MB / 378.7 MB Notification: Performance of SimCode: time 3.857e-06/0.877, allocations: 0 / 490.7 MB, free: 12.71 MB / 378.7 MB Notification: Performance of Templates: time 0.02887/0.9059, allocations: 8.578 MB / 499.3 MB, free: 4.145 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches