Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002301/0.002302, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.029/2.029, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001059/0.001059, allocations: 86.66 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.889e-05/2.897e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.09327, allocations: 47.57 MB / 369.1 MB, free: 2.223 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4032/0.4965, allocations: 81.08 MB / 450.2 MB, free: 12.15 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002673/0.4969, allocations: 75.48 kB / 450.2 MB, free: 12.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05843/0.5553, allocations: 12.09 MB / 462.3 MB, free: 1.785 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5554, allocations: 0 / 462.3 MB, free: 1.785 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.286e-05/0.5554, allocations: 12 kB / 462.3 MB, free: 1.773 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.004038/0.5595, allocations: 1.038 MB / 463.4 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.508e-05/0.5596, allocations: 8.031 kB / 463.4 MB, free: 0.7109 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004327/0.56, allocations: 98.03 kB / 463.5 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001461/0.5615, allocations: 497.8 kB / 464 MB, free: 164 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.163e-05/0.5616, allocations: 44.12 kB / 464 MB, free: 140 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001836/0.5618, allocations: 67 kB / 464.1 MB, free: 92 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/0.5635, allocations: 0.5459 MB / 464.6 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.968e-05/0.5636, allocations: 0 / 464.6 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/0.5637, allocations: 24 kB / 464.6 MB, free: 15.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.901e-05/0.5637, allocations: 16 kB / 464.7 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001806/0.5655, allocations: 0.5285 MB / 465.2 MB, free: 14.97 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007074/0.5727, allocations: 2.302 MB / 467.5 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.5741, allocations: 456.9 kB / 467.9 MB, free: 12.09 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006963/0.5748, allocations: 259.5 kB / 468.2 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.633e-05/0.5749, allocations: 8.422 kB / 468.2 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009142/0.5758, allocations: 345.7 kB / 468.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=54): time 3.527e-06/0.5759, allocations: 0 / 468.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=94): time 0.1107/0.6866, allocations: 13.47 MB / 482 MB, free: 13.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001174/0.6868, allocations: 145.3 kB / 482.2 MB, free: 13.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008483/0.6876, allocations: 428.8 kB / 482.6 MB, free: 13.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002668/0.6879, allocations: 45.69 kB / 482.6 MB, free: 13.26 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003666/0.6883, allocations: 398.4 kB / 483 MB, free: 12.87 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004269/0.6887, allocations: 311.5 kB / 483.3 MB, free: 12.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001349/0.6889, allocations: 20 kB / 483.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.689, allocations: 350.7 kB / 483.7 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001501/0.6906, allocations: 474 kB / 484.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001712/0.6923, allocations: 0.6653 MB / 484.8 MB, free: 10.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001538/0.6939, allocations: 0.5392 MB / 485.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-06/0.6939, allocations: 7.938 kB / 485.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.03903/0.7329, allocations: 4.778 MB / 490.1 MB, free: 5.613 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.349e-05/0.7331, allocations: 63.39 kB / 490.2 MB, free: 5.539 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.941e-05/0.7331, allocations: 4 kB / 490.2 MB, free: 5.535 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06314/0.7963, allocations: 6.919 MB / 497.1 MB, free: 14.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001381/0.7977, allocations: 183.7 kB / 497.3 MB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007622/0.8053, allocations: 2.669 MB / 500 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003162/0.8086, allocations: 219.8 kB / 0.4885 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002354/0.8088, allocations: 47.97 kB / 0.4885 GB, free: 11.44 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0004043/0.8093, allocations: 160.8 kB / 0.4887 GB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002546/0.8095, allocations: 79.14 kB / 0.4887 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04423/0.8538, allocations: 4.677 MB / 0.4933 GB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.617e-05/0.8538, allocations: 12 kB / 0.4933 GB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/0.8539, allocations: 4 kB / 0.4933 GB, free: 6.477 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-05/0.8539, allocations: 3.984 kB / 0.4933 GB, free: 6.473 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002508/0.8564, allocations: 1.106 MB / 0.4944 GB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.772e-05/0.8565, allocations: 48 / 0.4944 GB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001132/0.8577, allocations: 127.9 kB / 0.4945 GB, free: 5.184 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.06283/0.9205, allocations: 6.895 MB / 0.5012 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002688/0.9208, allocations: 23.97 kB / 0.5013 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007497/0.9283, allocations: 2.696 MB / 0.5039 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.9284, allocations: 4 kB / 0.5039 GB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04022/0.9686, allocations: 5.302 MB / 0.5091 GB, free: 6.172 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002825/0.969, allocations: 140.2 kB / 0.5092 GB, free: 6.016 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003473/0.9693, allocations: 24 kB / 0.5092 GB, free: 5.992 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002917/0.9723, allocations: 211.8 kB / 0.5094 GB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005068/0.9728, allocations: 96.62 kB / 0.5095 GB, free: 5.691 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001849/0.973, allocations: 35.97 kB / 0.5096 GB, free: 5.656 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006567/0.9737, allocations: 329.6 kB / 0.5099 GB, free: 5.336 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.9737, allocations: 0 / 0.5099 GB, free: 5.336 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001366/0.9751, allocations: 264 kB / 0.5101 GB, free: 5.078 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004418/0.9756, allocations: 144.6 kB / 0.5103 GB, free: 4.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00648/0.9821, allocations: 1.52 MB / 0.5118 GB, free: 3.379 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/0.9821, allocations: 4.062 kB / 0.5118 GB, free: 3.375 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004399/0.9865, allocations: 0.8174 MB / 0.5126 GB, free: 2.562 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001079/0.9877, allocations: 118.8 kB / 0.5127 GB, free: 2.445 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004157/0.9918, allocations: 1.237 MB / 0.5139 GB, free: 1.172 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007457/0.9926, allocations: 0.9587 MB / 0.5148 GB, free: 192 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003217/0.993, allocations: 31.44 kB / 0.5148 GB, free: 160 kB / 394.7 MB Notification: Performance of SimCode: time 1.223e-06/0.993, allocations: 0 / 0.5148 GB, free: 160 kB / 394.7 MB Notification: Performance of Templates: time 0.2949/1.288, allocations: 16.17 MB / 0.5306 GB, free: 132.7 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches