Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 113.3 kB / 17.69 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001684/0.001684, allocations: 191 kB / 18.63 MB, free: 4.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001038/0.001038, allocations: 42.16 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1194, allocations: 49.46 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.007344/0.1268, allocations: 4.921 MB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00327/0.1302, allocations: 1.276 MB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004104/0.1306, allocations: 15.94 kB / 357.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003783/0.131, allocations: 118.7 kB / 357.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005408/0.1316, allocations: 253.7 kB / 358.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008884/0.1325, allocations: 315.4 kB / 358.4 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001109/0.1336, allocations: 1.099 MB / 359.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003848/0.134, allocations: 254.5 kB / 359.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004463/0.1345, allocations: 422.5 kB / 360.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005929/0.1351, allocations: 470 kB / 360.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001223/0.1352, allocations: 84 kB / 360.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002168/0.1354, allocations: 112 kB / 360.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002162/0.1356, allocations: 191.3 kB / 361 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005043/0.1362, allocations: 453.8 kB / 361.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.1374, allocations: 1.016 MB / 362.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.1374, allocations: 0 / 362.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.1374, allocations: 0 / 362.5 MB, free: 8.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.1374, allocations: 0 / 362.5 MB, free: 8.68 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.002874/0.1403, allocations: 1.258 MB / 363.7 MB, free: 7.355 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.68e-05/0.1404, allocations: 8.031 kB / 363.7 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001876/0.1406, allocations: 99.75 kB / 363.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008155/0.1414, allocations: 487.6 kB / 364.3 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.387e-05/0.1414, allocations: 45.69 kB / 364.3 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.1416, allocations: 68.28 kB / 364.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.1429, allocations: 0.6548 MB / 365.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.1429, allocations: 0 / 365.1 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.8e-05/0.143, allocations: 32 kB / 365.1 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.564e-05/0.143, allocations: 12 kB / 365.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.1447, allocations: 0.6961 MB / 365.8 MB, free: 5.223 MB / 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.004251/0.1489, allocations: 2.37 MB / 368.2 MB, free: 2.695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.1503, allocations: 0.5866 MB / 368.8 MB, free: 2.102 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006736/0.151, allocations: 334 kB / 369.1 MB, free: 1.773 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.878e-05/0.1511, allocations: 16.36 kB / 369.1 MB, free: 1.754 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008939/0.152, allocations: 425.4 kB / 369.5 MB, free: 1.312 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 1.863e-06/0.152, allocations: 0 / 369.5 MB, free: 1.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.3275/0.4796, allocations: 15.4 MB / 384.9 MB, free: 22.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.4797, allocations: 144.5 kB / 385.1 MB, free: 22.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008959/0.4806, allocations: 0.5211 MB / 385.6 MB, free: 21.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002342/0.4809, allocations: 43.2 kB / 385.6 MB, free: 21.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000315/0.4812, allocations: 393.4 kB / 386 MB, free: 21.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002874/0.4815, allocations: 309.9 kB / 386.3 MB, free: 21.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004234/0.4819, allocations: 184.7 kB / 386.5 MB, free: 21.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.4821, allocations: 388.7 kB / 386.9 MB, free: 20.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002053/0.4841, allocations: 0.7189 MB / 387.6 MB, free: 20.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001973/0.4861, allocations: 0.9592 MB / 388.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003477/0.4896, allocations: 1.687 MB / 390.2 MB, free: 18.72 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.4896, allocations: 4 kB / 390.2 MB, free: 18.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02068/0.5103, allocations: 5.376 MB / 395.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.5105, allocations: 71.39 kB / 395.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.483e-05/0.5106, allocations: 8.125 kB / 395.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03019/0.5407, allocations: 6.832 MB / 402.5 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006613/0.5415, allocations: 143.7 kB / 402.7 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005106/0.5466, allocations: 3.016 MB / 405.7 MB, free: 3.184 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001682/0.5483, allocations: 181.5 kB / 405.9 MB, free: 3.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.5484, allocations: 47.97 kB / 405.9 MB, free: 2.961 MB / 302.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.0004759/0.5489, allocations: 222.2 kB / 406.1 MB, free: 2.734 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/0.549, allocations: 83 kB / 406.2 MB, free: 2.652 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02065/0.5697, allocations: 5.1 MB / 411.3 MB, free: 13.53 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.217e-05/0.5698, allocations: 8 kB / 411.3 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.5698, allocations: 0 / 411.3 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.37e-05/0.5698, allocations: 7.828 kB / 411.3 MB, free: 13.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001781/0.5716, allocations: 1.102 MB / 412.4 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.5716, allocations: 3.984 kB / 412.4 MB, free: 12.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005195/0.5722, allocations: 91.89 kB / 412.5 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03258/0.6047, allocations: 6.792 MB / 419.3 MB, free: 5.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002343/0.605, allocations: 23.97 kB / 419.3 MB, free: 5.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005616/0.6106, allocations: 3.031 MB / 422.4 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.6107, allocations: 3.938 kB / 422.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02412/0.6348, allocations: 5.987 MB / 428.3 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004362/0.6353, allocations: 151.9 kB / 428.5 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002077/0.6355, allocations: 20 kB / 428.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001479/0.637, allocations: 167.8 kB / 428.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003563/0.6374, allocations: 96.81 kB / 428.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001132/0.6375, allocations: 38.38 kB / 428.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005271/0.638, allocations: 354.8 kB / 429.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.638, allocations: 0 / 429.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009006/0.639, allocations: 263.6 kB / 429.4 MB, free: 11.3 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.0003617/0.6393, allocations: 131.2 kB / 429.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.005919/0.6453, allocations: 2.052 MB / 431.6 MB, free: 9.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.6453, allocations: 384 / 431.6 MB, free: 9.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003326/0.6486, allocations: 1.085 MB / 432.7 MB, free: 8.012 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000888/0.6495, allocations: 133.3 kB / 432.8 MB, free: 7.883 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003759/0.6533, allocations: 1.784 MB / 434.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004902/0.6538, allocations: 0.9468 MB / 435.5 MB, free: 5.113 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002721/0.6541, allocations: 61.5 kB / 435.6 MB, free: 5.055 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.6542, allocations: 39.44 kB / 435.6 MB, free: 5.016 MB / 334.1 MB Notification: Performance of SimCode: time 1.213e-06/0.6542, allocations: 0 / 435.6 MB, free: 5.016 MB / 334.1 MB Notification: Performance of Templates: time 0.03412/0.6883, allocations: 22.63 MB / 458.3 MB, free: 14.5 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches