Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001437/0.001437, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001207/0.001207, allocations: 162.6 kB / 24.99 MB, free: 8.336 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.066/1.066, allocations: 177.1 MB / 205.3 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 273.1 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.053e-05/3.228e-05, allocations: 2.312 kB / 273.1 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004625/0.004657, allocations: 4.84 MB / 277.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002158/0.006815, allocations: 1.268 MB / 279.2 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003801/0.007195, allocations: 15.94 kB / 279.2 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.007507, allocations: 122.7 kB / 279.3 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000411/0.007918, allocations: 273.5 kB / 279.6 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007001/0.008618, allocations: 323.3 kB / 279.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008972/0.009516, allocations: 1.126 MB / 281 MB, free: 9.832 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002891/0.009805, allocations: 186.9 kB / 281.2 MB, free: 9.637 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005832/0.01039, allocations: 0.6119 MB / 281.8 MB, free: 9.023 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003862/0.01077, allocations: 371 kB / 282.2 MB, free: 8.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.639e-05/0.01087, allocations: 92 kB / 282.3 MB, free: 8.57 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.01105, allocations: 111.9 kB / 282.4 MB, free: 8.461 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.01117, allocations: 203.2 kB / 282.6 MB, free: 8.262 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002498/0.01142, allocations: 323.3 kB / 282.9 MB, free: 7.945 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006865/0.01211, allocations: 0.7201 MB / 283.6 MB, free: 7.223 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.01211, allocations: 0 / 283.6 MB, free: 7.223 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.01211, allocations: 4 kB / 283.6 MB, free: 7.219 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.01212, allocations: 0 / 283.6 MB, free: 7.219 MB / 266.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.001516/0.01364, allocations: 1.274 MB / 284.9 MB, free: 5.891 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.01368, allocations: 12.02 kB / 284.9 MB, free: 5.879 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.01386, allocations: 152.3 kB / 285.1 MB, free: 5.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004578/0.01431, allocations: 428.2 kB / 285.5 MB, free: 5.281 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.342e-05/0.01435, allocations: 49.69 kB / 285.5 MB, free: 5.234 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.514e-05/0.01443, allocations: 72.31 kB / 285.6 MB, free: 5.164 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007036/0.01514, allocations: 0.6095 MB / 286.2 MB, free: 4.516 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.01515, allocations: 192 / 286.2 MB, free: 4.516 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.639e-05/0.0152, allocations: 32.36 kB / 286.2 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.01521, allocations: 15.94 kB / 286.3 MB, free: 4.469 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004987/0.01571, allocations: 323.6 kB / 286.6 MB, free: 4.152 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.01784, allocations: 1.761 MB / 288.3 MB, free: 2.316 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005241/0.01836, allocations: 333.6 kB / 288.7 MB, free: 1.977 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002167/0.01858, allocations: 161.8 kB / 288.8 MB, free: 1.816 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.926e-05/0.01862, allocations: 8.5 kB / 288.8 MB, free: 1.809 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004227/0.01904, allocations: 428 kB / 289.2 MB, free: 1.328 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.924e-06/0.01904, allocations: 4 kB / 289.3 MB, free: 1.324 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1433/0.1623, allocations: 9.784 MB / 299 MB, free: 27.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.1624, allocations: 145.1 kB / 299.2 MB, free: 27.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005226/0.1629, allocations: 0.5312 MB / 299.7 MB, free: 26.9 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001204/0.1631, allocations: 47.45 kB / 299.8 MB, free: 26.86 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000207/0.1633, allocations: 446.8 kB / 300.2 MB, free: 26.49 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002267/0.1635, allocations: 327.2 kB / 300.5 MB, free: 26.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002972/0.1638, allocations: 188.8 kB / 300.7 MB, free: 26.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.1639, allocations: 0.5522 MB / 301.2 MB, free: 25.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006161/0.1645, allocations: 349.8 kB / 301.6 MB, free: 25.42 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006323/0.1651, allocations: 0.7316 MB / 302.3 MB, free: 24.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.1663, allocations: 0.9781 MB / 303.3 MB, free: 24.15 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.1663, allocations: 3.984 kB / 303.3 MB, free: 24.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.008821/0.1751, allocations: 3.526 MB / 306.8 MB, free: 20.8 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.097e-05/0.1752, allocations: 68.16 kB / 306.9 MB, free: 20.72 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.1752, allocations: 11.25 kB / 306.9 MB, free: 20.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01327/0.1884, allocations: 5.16 MB / 312.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.1887, allocations: 119.9 kB / 312.2 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002411/0.1912, allocations: 2.571 MB / 314.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007276/0.1919, allocations: 119.9 kB / 314.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.995e-05/0.1919, allocations: 47.97 kB / 314.9 MB, free: 12.64 MB / 266.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 (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.0002615/0.1922, allocations: 224.3 kB / 315.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.1923, allocations: 115.5 kB / 315.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007396/0.1997, allocations: 3.169 MB / 318.4 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.1998, allocations: 12 kB / 318.4 MB, free: 9.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1998, allocations: 3.984 kB / 318.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.1998, allocations: 5.344 kB / 318.4 MB, free: 9.082 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007478/0.2005, allocations: 0.6696 MB / 319.1 MB, free: 8.406 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.2005, allocations: 4.812 kB / 319.1 MB, free: 8.402 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001954/0.2007, allocations: 67.88 kB / 319.2 MB, free: 8.336 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0135/0.2142, allocations: 5.112 MB / 324.3 MB, free: 3.211 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001436/0.2144, allocations: 19.98 kB / 324.3 MB, free: 3.191 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002198/0.2166, allocations: 2.593 MB / 326.9 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2166, allocations: 0 / 326.9 MB, free: 0.5391 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008753/0.2253, allocations: 3.475 MB / 330.4 MB, free: 13.03 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001772/0.2255, allocations: 71.47 kB / 330.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001259/0.2256, allocations: 20 kB / 330.5 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005339/0.2262, allocations: 111.8 kB / 330.6 MB, free: 12.83 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001848/0.2263, allocations: 92.8 kB / 330.7 MB, free: 12.74 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.416e-05/0.2264, allocations: 31.97 kB / 330.7 MB, free: 12.71 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002632/0.2267, allocations: 346.8 kB / 331 MB, free: 12.37 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2267, allocations: 4 kB / 331 MB, free: 12.36 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006023/0.2273, allocations: 259.9 kB / 331.3 MB, free: 12.11 MB / 282.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.0002367/0.2275, allocations: 123.1 kB / 331.4 MB, free: 11.98 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00211/0.2296, allocations: 1.243 MB / 332.7 MB, free: 10.71 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.2296, allocations: 0 / 332.7 MB, free: 10.71 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.2308, allocations: 0.6532 MB / 333.3 MB, free: 10.05 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005145/0.2313, allocations: 148.6 kB / 333.5 MB, free: 9.918 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002306/0.2336, allocations: 1.497 MB / 335 MB, free: 8.391 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.871e-05/0.2337, allocations: 167.9 kB / 335.1 MB, free: 8.203 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000182/0.2339, allocations: 57.28 kB / 335.2 MB, free: 8.148 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.06e-05/0.234, allocations: 40.48 kB / 335.2 MB, free: 8.109 MB / 282.7 MB Notification: Performance of SimCode: time 1.432e-06/0.234, allocations: 0 / 335.2 MB, free: 8.109 MB / 282.7 MB Notification: Performance of Templates: time 0.02152/0.2555, allocations: 19.11 MB / 354.3 MB, free: 5.176 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.853667112067342]