Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 75.77 kB / 22.46 MB, free: 2.094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 168 kB / 25.75 MB, free: 8.949 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9209/0.9209, allocations: 158.6 MB / 187.5 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5037,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5037,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 251.1 MB, free: 7.789 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.294e-05/2.467e-05, allocations: 2.312 kB / 251.1 MB, free: 7.785 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004115/0.00414, allocations: 4.593 MB / 255.7 MB, free: 3.16 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.006074, allocations: 1.26 MB / 257 MB, free: 1.891 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002143/0.006288, allocations: 15.88 kB / 257 MB, free: 1.875 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002035/0.006492, allocations: 114.9 kB / 257.1 MB, free: 1.762 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002913/0.006783, allocations: 265.5 kB / 257.4 MB, free: 1.5 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007369/0.00752, allocations: 295.4 kB / 257.7 MB, free: 1.211 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006513/0.008171, allocations: 1.087 MB / 258.7 MB, free: 120 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002472/0.008418, allocations: 186.8 kB / 258.9 MB, free: 15.92 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004335/0.008852, allocations: 0.5925 MB / 259.5 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003118/0.009164, allocations: 363 kB / 259.9 MB, free: 14.97 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.319e-05/0.009247, allocations: 88 kB / 260 MB, free: 14.88 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.009381, allocations: 108 kB / 260.1 MB, free: 14.78 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.00949, allocations: 199.3 kB / 260.3 MB, free: 14.58 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002128/0.009702, allocations: 315.2 kB / 260.6 MB, free: 14.27 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005565/0.01026, allocations: 0.6851 MB / 261.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.01026, allocations: 0 / 261.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.01026, allocations: 0 / 261.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.01027, allocations: 0 / 261.2 MB, free: 13.59 MB / 250.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.001384/0.01165, allocations: 1.235 MB / 262.5 MB, free: 12.3 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.01169, allocations: 11.98 kB / 262.5 MB, free: 12.29 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001752/0.01187, allocations: 140.4 kB / 262.6 MB, free: 12.15 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004291/0.0123, allocations: 410.1 kB / 263 MB, free: 11.72 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.01233, allocations: 45.69 kB / 263.1 MB, free: 11.68 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.803e-05/0.01241, allocations: 64.38 kB / 263.1 MB, free: 11.62 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006887/0.0131, allocations: 0.5938 MB / 263.7 MB, free: 10.98 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.01311, allocations: 192 / 263.7 MB, free: 10.98 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.338e-05/0.01315, allocations: 24.38 kB / 263.8 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.378e-05/0.01317, allocations: 15.94 kB / 263.8 MB, free: 10.95 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004929/0.01366, allocations: 323.5 kB / 264.1 MB, free: 10.63 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002407/0.01607, allocations: 1.715 MB / 265.8 MB, free: 8.84 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005033/0.01657, allocations: 337.6 kB / 266.1 MB, free: 8.5 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/0.01679, allocations: 161 kB / 266.3 MB, free: 8.336 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.826e-05/0.01683, allocations: 12.5 kB / 266.3 MB, free: 8.324 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003687/0.0172, allocations: 428 kB / 266.7 MB, free: 7.844 MB / 250.7 MB Notification: Performance of pre-optimization done (n=54): time 1.934e-06/0.0172, allocations: 0 / 266.7 MB, free: 7.844 MB / 250.7 MB Notification: Performance of matching and sorting (n=94): time 0.02538/0.04258, allocations: 9.779 MB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.241e-05/0.04266, allocations: 153.4 kB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004151/0.04308, allocations: 0.5024 MB / 277.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001025/0.04318, allocations: 41.7 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002047/0.04339, allocations: 415.5 kB / 277.6 MB, free: 12.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001986/0.04358, allocations: 325.1 kB / 277.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002393/0.04382, allocations: 188.2 kB / 278.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.04397, allocations: 0.5508 MB / 278.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000487/0.04446, allocations: 349.2 kB / 279 MB, free: 11.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008017/0.04526, allocations: 0.6906 MB / 279.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.04629, allocations: 0.9372 MB / 280.6 MB, free: 9.543 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.04629, allocations: 0 / 280.6 MB, free: 9.543 MB / 266.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.008489/0.05478, allocations: 3.491 MB / 284.1 MB, free: 6.004 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.947e-05/0.05484, allocations: 63.41 kB / 284.2 MB, free: 5.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.05485, allocations: 11.98 kB / 284.2 MB, free: 5.918 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01446/0.06931, allocations: 5.156 MB / 289.3 MB, free: 0.7461 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003415/0.06965, allocations: 119.8 kB / 289.5 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002645/0.0723, allocations: 2.563 MB / 292 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006896/0.07299, allocations: 115.9 kB / 292.1 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.917e-05/0.07306, allocations: 51.91 kB / 292.2 MB, free: 13.84 MB / 282.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 (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 (50): * Single equations (assignments): 46 * 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.0002729/0.07333, allocations: 204.5 kB / 292.4 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.07348, allocations: 107.5 kB / 292.5 MB, free: 13.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008024/0.0815, allocations: 3.169 MB / 295.7 MB, free: 10.33 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.545e-05/0.08152, allocations: 19.88 kB / 295.7 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.08152, allocations: 0 / 295.7 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.182e-05/0.08154, allocations: 7.984 kB / 295.7 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007739/0.08231, allocations: 0.6596 MB / 296.3 MB, free: 9.609 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.08231, allocations: 7.938 kB / 296.4 MB, free: 9.602 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002587/0.08257, allocations: 51.95 kB / 296.4 MB, free: 9.551 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01448/0.09705, allocations: 5.125 MB / 301.5 MB, free: 4.41 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001243/0.09718, allocations: 23.97 kB / 301.5 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002516/0.09969, allocations: 2.58 MB / 304.1 MB, free: 1.742 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.0997, allocations: 3.938 kB / 304.1 MB, free: 1.738 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009136/0.1088, allocations: 3.475 MB / 307.6 MB, free: 14.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001616/0.109, allocations: 67.52 kB / 307.7 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.1091, allocations: 20 kB / 307.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000553/0.1097, allocations: 103.9 kB / 307.8 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001809/0.1098, allocations: 88.86 kB / 307.9 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-05/0.1099, allocations: 35.97 kB / 307.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002374/0.1101, allocations: 330.8 kB / 308.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1101, allocations: 0 / 308.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005669/0.1107, allocations: 251.9 kB / 308.5 MB, free: 13.35 MB / 298.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 (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.0002319/0.1109, allocations: 139.1 kB / 308.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001915/0.1129, allocations: 1.227 MB / 309.8 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1129, allocations: 4 kB / 309.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.114, allocations: 0.6427 MB / 310.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004525/0.1144, allocations: 150.2 kB / 310.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.1166, allocations: 1.469 MB / 312.1 MB, free: 9.641 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.712e-05/0.1167, allocations: 156 kB / 312.3 MB, free: 9.465 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001433/0.1168, allocations: 57.97 kB / 312.3 MB, free: 9.406 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.553e-05/0.1169, allocations: 36.5 kB / 312.4 MB, free: 9.371 MB / 298.7 MB Notification: Performance of SimCode: time 9.72e-07/0.1169, allocations: 0 / 312.4 MB, free: 9.371 MB / 298.7 MB Notification: Performance of Templates: time 0.01836/0.1353, allocations: 18.97 MB / 331.3 MB, free: 6.379 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5743348670657724]