Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 176.5 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 223.3 MB / 241.4 MB, free: 11.71 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008241/0.000824, allocations: 103.4 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000295/0.000295, allocations: 8 kB / 352.3 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2567, allocations: 50.4 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.3605, allocations: 83.12 MB / 485.9 MB, free: 13.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/0.3607, allocations: 71.95 kB / 485.9 MB, free: 13.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03489/0.3956, allocations: 12.77 MB / 498.7 MB, free: 336 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3957, allocations: 0 / 498.7 MB, free: 336 kB / 362.7 MB Notification: Performance of Transformations before backend: time 3.324e-05/0.3957, allocations: 16 kB / 498.7 MB, free: 320 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002281/0.398, allocations: 1.135 MB / 499.8 MB, free: 15.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.3981, allocations: 12.03 kB / 499.9 MB, free: 15.1 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.3982, allocations: 91.81 kB / 499.9 MB, free: 15.01 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007964/0.399, allocations: 0.5356 MB / 0.4888 GB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.194e-05/0.3991, allocations: 41.69 kB / 0.4888 GB, free: 14.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001009/0.3992, allocations: 76.36 kB / 0.4889 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.4005, allocations: 0.6745 MB / 0.4895 GB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.257e-05/0.4005, allocations: 192 / 0.4895 GB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.7e-05/0.4006, allocations: 31.94 kB / 0.4896 GB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.478e-05/0.4006, allocations: 12 kB / 0.4896 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001624/0.4023, allocations: 0.7547 MB / 0.4903 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003855/0.4061, allocations: 2.345 MB / 0.4926 GB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.4075, allocations: 0.6412 MB / 0.4932 GB, free: 9.711 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007024/0.4082, allocations: 358 kB / 0.4936 GB, free: 9.359 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.561e-05/0.4083, allocations: 8.438 kB / 0.4936 GB, free: 9.348 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009251/0.4092, allocations: 449.4 kB / 0.494 GB, free: 8.883 MB / 378.7 MB Notification: Performance of pre-optimization done (n=54): time 2.245e-06/0.4092, allocations: 0 / 0.494 GB, free: 8.883 MB / 378.7 MB Notification: Performance of matching and sorting (n=94): time 0.3018/0.711, allocations: 16.56 MB / 0.5102 GB, free: 95.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.924e-05/0.7112, allocations: 141.7 kB / 0.5103 GB, free: 95.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007074/0.7119, allocations: 0.5132 MB / 0.5108 GB, free: 95.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000197/0.7121, allocations: 52.42 kB / 0.5109 GB, free: 95.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002416/0.7123, allocations: 389.4 kB / 0.5112 GB, free: 95.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002504/0.7126, allocations: 314.1 kB / 0.5115 GB, free: 94.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.941e-05/0.7127, allocations: 19.94 kB / 0.5115 GB, free: 94.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.7128, allocations: 389.3 kB / 0.5119 GB, free: 94.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/0.7145, allocations: 0.7895 MB / 0.5127 GB, free: 94.58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001823/0.7164, allocations: 1.031 MB / 0.5137 GB, free: 94.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003493/0.7199, allocations: 1.838 MB / 0.5155 GB, free: 93.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.761e-06/0.7199, allocations: 2.953 kB / 0.5155 GB, free: 93.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.03517/0.7551, allocations: 5.641 MB / 0.521 GB, free: 91.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.956e-05/0.7552, allocations: 59.41 kB / 0.5211 GB, free: 91.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.036e-05/0.7552, allocations: 8 kB / 0.5211 GB, free: 91.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0305/0.7857, allocations: 7.325 MB / 0.5282 GB, free: 84.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008567/0.7866, allocations: 187.3 kB / 0.5284 GB, free: 83.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005431/0.7921, allocations: 3.089 MB / 0.5314 GB, free: 80.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/0.7938, allocations: 223.8 kB / 0.5316 GB, free: 80.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001013/0.794, allocations: 43.98 kB / 0.5317 GB, free: 80.49 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * 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.0004764/0.7944, allocations: 229 kB / 0.5319 GB, free: 80.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.7946, allocations: 82.97 kB / 0.532 GB, free: 80.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01989/0.8145, allocations: 5.46 MB / 0.5373 GB, free: 74.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.493e-05/0.8145, allocations: 15.98 kB / 0.5373 GB, free: 74.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.278e-06/0.8146, allocations: 0 / 0.5373 GB, free: 74.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.317e-05/0.8146, allocations: 7.984 kB / 0.5373 GB, free: 74.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.8161, allocations: 1.113 MB / 0.5384 GB, free: 73.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.8161, allocations: 0 / 0.5384 GB, free: 73.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004831/0.8166, allocations: 123.8 kB / 0.5385 GB, free: 73.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02973/0.8463, allocations: 7.29 MB / 0.5456 GB, free: 66.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002027/0.8466, allocations: 24.84 kB / 0.5457 GB, free: 66.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005573/0.8522, allocations: 3.237 MB / 0.5488 GB, free: 62.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.8522, allocations: 0 / 0.5488 GB, free: 62.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02502/0.8772, allocations: 6.426 MB / 0.5551 GB, free: 56.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004523/0.8778, allocations: 144.1 kB / 0.5552 GB, free: 56.22 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004769/0.8783, allocations: 25.92 kB / 0.5553 GB, free: 56.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001509/0.8798, allocations: 211.9 kB / 0.5555 GB, free: 55.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003181/0.8801, allocations: 100.8 kB / 0.5556 GB, free: 55.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001336/0.8803, allocations: 31.98 kB / 0.5556 GB, free: 55.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004512/0.8807, allocations: 350.8 kB / 0.5559 GB, free: 55.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8808, allocations: 0 / 0.5559 GB, free: 55.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001137/0.8819, allocations: 267.9 kB / 0.5562 GB, free: 55.26 MB / 378.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) * Number of clocked states: 0 () * 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.0003347/0.8823, allocations: 147.1 kB / 0.5563 GB, free: 55.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005427/0.8877, allocations: 2.187 MB / 0.5585 GB, free: 52.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.113e-06/0.8877, allocations: 4.062 kB / 0.5585 GB, free: 52.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004442/0.8922, allocations: 1.289 MB / 0.5597 GB, free: 51.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/0.8934, allocations: 128.7 kB / 0.5598 GB, free: 51.49 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003845/0.8972, allocations: 2.102 MB / 0.5619 GB, free: 49.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.8976, allocations: 0.9471 MB / 0.5628 GB, free: 48.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003269/0.8979, allocations: 59.58 kB / 0.5629 GB, free: 48.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.898, allocations: 35.44 kB / 0.5629 GB, free: 48.32 MB / 378.7 MB Notification: Performance of SimCode: time 1.012e-06/0.898, allocations: 0 / 0.5629 GB, free: 48.32 MB / 378.7 MB Notification: Performance of Templates: time 0.02495/0.923, allocations: 19.98 MB / 0.5824 GB, free: 28.5 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_NORGate.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches