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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000916/0.000916, allocations: 141.1 kB / 24.54 MB, free: 36 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.009/1.009, allocations: 173.4 MB / 201.1 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 179] 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=5041,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=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.509e-05/2.697e-05, allocations: 6.25 kB / 268 MB, free: 6.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004854/0.00488, allocations: 4.837 MB / 272.8 MB, free: 1.535 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002452/0.007332, allocations: 1.256 MB / 274.1 MB, free: 276 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003879/0.00772, allocations: 11.94 kB / 274.1 MB, free: 264 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002795/0.008, allocations: 126.7 kB / 274.2 MB, free: 136 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005351/0.008535, allocations: 273.4 kB / 274.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007637/0.009298, allocations: 315.3 kB / 274.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001085/0.01038, allocations: 1.134 MB / 275.9 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006081/0.01099, allocations: 186.9 kB / 276.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008706/0.01186, allocations: 0.6119 MB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004798/0.01234, allocations: 375 kB / 277.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001356/0.01248, allocations: 88 kB / 277.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002029/0.01268, allocations: 116 kB / 277.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.01281, allocations: 207.2 kB / 277.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002872/0.0131, allocations: 319.2 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009311/0.01403, allocations: 0.7202 MB / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.802e-06/0.01404, allocations: 0 / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.01404, allocations: 0 / 278.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.709e-05/0.01407, allocations: 0 / 278.5 MB, free: 11.8 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.001821/0.01589, allocations: 1.274 MB / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.01593, allocations: 8.922 kB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001854/0.01611, allocations: 148.3 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005282/0.01664, allocations: 432.2 kB / 280.4 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.786e-05/0.01668, allocations: 49.69 kB / 280.4 MB, free: 9.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.686e-05/0.01677, allocations: 64.38 kB / 280.5 MB, free: 9.758 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007648/0.01753, allocations: 0.6016 MB / 281.1 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.885e-05/0.01755, allocations: 192 / 281.1 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.548e-05/0.01759, allocations: 28.36 kB / 281.1 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.835e-05/0.01761, allocations: 19.94 kB / 281.2 MB, free: 9.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005128/0.01813, allocations: 327.6 kB / 281.5 MB, free: 8.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00277/0.0209, allocations: 1.758 MB / 283.2 MB, free: 6.914 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000574/0.02147, allocations: 336.5 kB / 283.6 MB, free: 6.574 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.02169, allocations: 153.1 kB / 283.7 MB, free: 6.422 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.762e-05/0.02174, allocations: 12.48 kB / 283.7 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003972/0.02214, allocations: 432 kB / 284.1 MB, free: 5.926 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.585e-06/0.02214, allocations: 4 kB / 284.1 MB, free: 5.922 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1563/0.1785, allocations: 9.788 MB / 293.9 MB, free: 29.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.562e-05/0.1785, allocations: 141.3 kB / 294.1 MB, free: 28.98 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006001/0.1791, allocations: 0.535 MB / 294.6 MB, free: 28.79 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001229/0.1793, allocations: 44.73 kB / 294.7 MB, free: 28.76 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002059/0.1795, allocations: 446.2 kB / 295.1 MB, free: 28.53 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000221/0.1797, allocations: 327.2 kB / 295.4 MB, free: 28.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002697/0.18, allocations: 188 kB / 295.6 MB, free: 28.33 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.1801, allocations: 0.5551 MB / 296.1 MB, free: 27.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005738/0.1807, allocations: 354.9 kB / 296.5 MB, free: 27.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006367/0.1813, allocations: 0.7322 MB / 297.2 MB, free: 27.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.1824, allocations: 0.9749 MB / 298.2 MB, free: 26.85 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.1824, allocations: 2.406 kB / 298.2 MB, free: 26.85 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.008891/0.1913, allocations: 3.518 MB / 301.7 MB, free: 26.35 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.476e-05/0.1914, allocations: 66.95 kB / 301.8 MB, free: 26.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.991e-05/0.1914, allocations: 8.281 kB / 301.8 MB, free: 26.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01344/0.2048, allocations: 5.163 MB / 307 MB, free: 23.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003034/0.2051, allocations: 115.9 kB / 307.1 MB, free: 23.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002258/0.2074, allocations: 2.571 MB / 309.6 MB, free: 20.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000732/0.2081, allocations: 115.9 kB / 309.8 MB, free: 20.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.859e-05/0.2082, allocations: 50.83 kB / 309.8 MB, free: 20.36 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.0002876/0.2085, allocations: 232.3 kB / 310 MB, free: 20.12 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.2086, allocations: 111.5 kB / 310.1 MB, free: 20.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007399/0.216, allocations: 3.169 MB / 313.3 MB, free: 16.82 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.216, allocations: 12 kB / 313.3 MB, free: 16.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.216, allocations: 0 / 313.3 MB, free: 16.81 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.053e-05/0.216, allocations: 7.969 kB / 313.3 MB, free: 16.8 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000742/0.2168, allocations: 0.6784 MB / 314 MB, free: 16.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.2168, allocations: 3.062 kB / 314 MB, free: 16.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001827/0.217, allocations: 63.88 kB / 314.1 MB, free: 16.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01298/0.2299, allocations: 5.114 MB / 319.2 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.23, allocations: 31.97 kB / 319.2 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002106/0.2322, allocations: 2.58 MB / 321.8 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.2322, allocations: 0 / 321.8 MB, free: 8.254 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008043/0.2402, allocations: 3.479 MB / 325.3 MB, free: 4.742 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000163/0.2404, allocations: 67.48 kB / 325.3 MB, free: 4.676 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.946e-05/0.2405, allocations: 23.92 kB / 325.4 MB, free: 4.652 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004761/0.2409, allocations: 104.8 kB / 325.5 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.2411, allocations: 104.6 kB / 325.6 MB, free: 4.453 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.105e-05/0.2412, allocations: 27.98 kB / 325.6 MB, free: 4.426 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001963/0.2414, allocations: 346.8 kB / 325.9 MB, free: 4.086 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2414, allocations: 0 / 325.9 MB, free: 4.086 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005962/0.2419, allocations: 260 kB / 326.2 MB, free: 3.832 MB / 266.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.0002344/0.2422, allocations: 123.6 kB / 326.3 MB, free: 3.707 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001931/0.2441, allocations: 1.241 MB / 327.6 MB, free: 2.434 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.959e-06/0.2441, allocations: 4 kB / 327.6 MB, free: 2.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001149/0.2453, allocations: 0.6571 MB / 328.2 MB, free: 1.773 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004892/0.2458, allocations: 147.2 kB / 328.4 MB, free: 1.637 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002065/0.2478, allocations: 1.505 MB / 329.9 MB, free: 116 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001001/0.2479, allocations: 164 kB / 330 MB, free: 15.93 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001707/0.2481, allocations: 58.08 kB / 330.1 MB, free: 15.88 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.62e-05/0.2482, allocations: 40.5 kB / 330.1 MB, free: 15.84 MB / 282.7 MB Notification: Performance of SimCode: time 1.413e-06/0.2482, allocations: 0 / 330.1 MB, free: 15.84 MB / 282.7 MB Notification: Performance of Templates: time 0.02587/0.2741, allocations: 19.04 MB / 349.2 MB, free: 12.99 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",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.8240070617757738]