Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001203/0.001203, allocations: 108.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0012/0.0012, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.538/1.538, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001345, allocations: 63.14 kB / 306.4 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1356, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.009046/0.1447, allocations: 4.966 MB / 361.9 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003945/0.1488, allocations: 1.28 MB / 363.2 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001224/0.15, allocations: 15.94 kB / 363.2 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007808/0.1509, allocations: 91.22 kB / 363.3 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001679/0.1526, allocations: 214.2 kB / 363.5 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001626/0.1543, allocations: 263.7 kB / 363.8 MB, free: 7.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002753/0.1571, allocations: 1.099 MB / 364.9 MB, free: 6.465 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008134/0.1579, allocations: 262.5 kB / 365.1 MB, free: 6.199 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001208/0.1591, allocations: 422.5 kB / 365.6 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001079/0.1602, allocations: 470 kB / 366 MB, free: 5.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004494/0.1607, allocations: 84 kB / 366.1 MB, free: 5.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004539/0.1612, allocations: 112 kB / 366.2 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001923/0.1614, allocations: 191.3 kB / 366.4 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005704/0.162, allocations: 445.8 kB / 366.8 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.1631, allocations: 1.001 MB / 367.8 MB, free: 3.504 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.1631, allocations: 8 kB / 367.8 MB, free: 3.496 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.1631, allocations: 0 / 367.8 MB, free: 3.496 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.117e-05/0.1632, allocations: 7.875 kB / 367.8 MB, free: 3.488 MB / 302.1 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.002704/0.1659, allocations: 1.258 MB / 369.1 MB, free: 2.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.1659, allocations: 8.031 kB / 369.1 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001769/0.1661, allocations: 103.8 kB / 369.2 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005987/0.1667, allocations: 479.4 kB / 369.7 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.555e-05/0.1668, allocations: 45.69 kB / 369.7 MB, free: 1.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.1669, allocations: 64.38 kB / 369.8 MB, free: 1.438 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.1683, allocations: 0.6626 MB / 370.4 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.376e-05/0.1684, allocations: 0 / 370.4 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-05/0.1684, allocations: 28 kB / 370.5 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.1685, allocations: 16 kB / 370.5 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.1702, allocations: 0.6883 MB / 371.2 MB, free: 36 kB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2187/0.3889, allocations: 2.375 MB / 373.6 MB, free: 19.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.3905, allocations: 0.5876 MB / 374.1 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007845/0.3913, allocations: 328.6 kB / 374.5 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.318e-05/0.3913, allocations: 9.875 kB / 374.5 MB, free: 19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001165/0.3925, allocations: 430.3 kB / 374.9 MB, free: 18.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.535e-06/0.3925, allocations: 0 / 374.9 MB, free: 18.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.07101/0.4635, allocations: 15.43 MB / 390.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.944e-05/0.4636, allocations: 148.9 kB / 390.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005861/0.4642, allocations: 0.5154 MB / 391 MB, free: 12.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002008/0.4644, allocations: 43.14 kB / 391 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/0.4647, allocations: 390.4 kB / 391.4 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002227/0.4649, allocations: 311.3 kB / 391.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003224/0.4652, allocations: 189.6 kB / 391.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.702e-05/0.4653, allocations: 390.5 kB / 392.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001779/0.4671, allocations: 0.7184 MB / 393 MB, free: 11.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001786/0.4689, allocations: 0.9551 MB / 394 MB, free: 10.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003414/0.4723, allocations: 1.689 MB / 395.6 MB, free: 8.492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.982e-06/0.4723, allocations: 4 kB / 395.6 MB, free: 8.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02164/0.494, allocations: 5.37 MB / 401 MB, free: 3.086 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.172e-05/0.4941, allocations: 67.39 kB / 401.1 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.4942, allocations: 4 kB / 401.1 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03322/0.5274, allocations: 6.837 MB / 407.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007329/0.5282, allocations: 143.7 kB / 408.1 MB, free: 12.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006243/0.5344, allocations: 3.021 MB / 411.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001895/0.5363, allocations: 179.8 kB / 411.3 MB, free: 8.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/0.5365, allocations: 47.97 kB / 411.3 MB, free: 8.723 MB / 318.1 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 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0005636/0.5371, allocations: 238.8 kB / 411.5 MB, free: 8.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001749/0.5373, allocations: 75.06 kB / 411.6 MB, free: 8.406 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02322/0.5605, allocations: 5.11 MB / 416.7 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-05/0.5606, allocations: 8 kB / 416.7 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.809e-05/0.5606, allocations: 9.156 kB / 416.7 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.18e-05/0.5607, allocations: 3.984 kB / 416.7 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002199/0.5629, allocations: 1.089 MB / 417.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.918e-06/0.5629, allocations: 3.938 kB / 417.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005385/0.5634, allocations: 99.16 kB / 417.9 MB, free: 2.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03754/0.601, allocations: 6.792 MB / 424.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002917/0.6013, allocations: 27.97 kB / 424.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006624/0.608, allocations: 3.02 MB / 427.8 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/0.608, allocations: 0 / 427.8 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02705/0.6351, allocations: 5.987 MB / 433.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003802/0.6355, allocations: 148.1 kB / 433.9 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002112/0.6358, allocations: 16 kB / 433.9 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001527/0.6373, allocations: 175.8 kB / 434.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004268/0.6377, allocations: 100.8 kB / 434.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.6379, allocations: 31.97 kB / 434.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005081/0.6384, allocations: 358.8 kB / 434.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6384, allocations: 0 / 434.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009647/0.6394, allocations: 256 kB / 434.8 MB, free: 1.066 MB / 334.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003887/0.6398, allocations: 129.9 kB / 434.9 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.006782/0.6466, allocations: 2.065 MB / 437 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/0.6466, allocations: 4 kB / 437 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003625/0.6502, allocations: 1.086 MB / 438.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.6513, allocations: 118.9 kB / 438.2 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004515/0.6558, allocations: 2.151 MB / 440.4 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006071/0.6564, allocations: 0.9506 MB / 441.3 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000406/0.6569, allocations: 62.25 kB / 441.4 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.657, allocations: 31.44 kB / 441.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.657, allocations: 0 / 441.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of Templates: time 0.03313/0.6901, allocations: 22.22 MB / 463.6 MB, free: 4.301 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches