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.0009296/0.0009296, allocations: 78.19 kB / 21.42 MB, free: 3.074 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.001058/0.001058, allocations: 154 kB / 24.81 MB, free: 8.93 MB / 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 0.9743/0.9743, allocations: 173.4 MB / 201.5 MB, free: 8.297 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.603e-06/1.603e-06, allocations: 0 / 268.4 MB, free: 9.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.444e-05/2.604e-05, allocations: 8.188 kB / 268.4 MB, free: 9.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006675/0.006701, allocations: 4.757 MB / 273.2 MB, free: 4.961 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002893/0.009594, allocations: 1.246 MB / 274.4 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005205/0.01011, allocations: 11.94 kB / 274.4 MB, free: 3.703 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002995/0.01041, allocations: 130.7 kB / 274.6 MB, free: 3.574 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006275/0.01104, allocations: 273.8 kB / 274.8 MB, free: 3.309 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006993/0.01174, allocations: 313.2 kB / 275.1 MB, free: 3.004 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001362/0.0131, allocations: 1.138 MB / 276.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003744/0.01348, allocations: 183.4 kB / 276.5 MB, free: 1.668 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000872/0.01435, allocations: 0.612 MB / 277.1 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004429/0.01479, allocations: 374.9 kB / 277.4 MB, free: 0.6875 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.01491, allocations: 88 kB / 277.5 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002043/0.01512, allocations: 112 kB / 277.6 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001281/0.01525, allocations: 203.2 kB / 277.8 MB, free: 300 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002868/0.01553, allocations: 319.3 kB / 278.1 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00082/0.01635, allocations: 0.724 MB / 278.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.01636, allocations: 0 / 278.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.01636, allocations: 0 / 278.9 MB, free: 15.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.942e-05/0.01638, allocations: 0 / 278.9 MB, free: 15.25 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.001568/0.01795, allocations: 1.278 MB / 280.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.01799, allocations: 8.031 kB / 280.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.01816, allocations: 148.4 kB / 280.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004745/0.01863, allocations: 436.1 kB / 280.7 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.422e-05/0.01867, allocations: 45.69 kB / 280.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.853e-05/0.01875, allocations: 68.38 kB / 280.8 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006151/0.01936, allocations: 0.5586 MB / 281.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.01937, allocations: 192 / 281.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.847e-05/0.01941, allocations: 28.38 kB / 281.4 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.01943, allocations: 19.94 kB / 281.4 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003189/0.01975, allocations: 266.1 kB / 281.7 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002367/0.02211, allocations: 1.769 MB / 283.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003781/0.02249, allocations: 310 kB / 283.8 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.02263, allocations: 135.1 kB / 283.9 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.279e-05/0.02266, allocations: 12.48 kB / 283.9 MB, free: 9.992 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000317/0.02298, allocations: 411.9 kB / 284.3 MB, free: 9.531 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.675e-06/0.02298, allocations: 0 / 284.3 MB, free: 9.531 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.02295/0.04593, allocations: 9.451 MB / 293.8 MB, free: 20 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.383e-05/0.04601, allocations: 149.5 kB / 293.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003892/0.0464, allocations: 0.5255 MB / 294.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001164/0.04652, allocations: 49.7 kB / 294.5 MB, free: 15.24 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002141/0.04673, allocations: 447.3 kB / 294.9 MB, free: 14.8 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002123/0.04694, allocations: 329.1 kB / 295.3 MB, free: 14.47 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002523/0.0472, allocations: 196.1 kB / 295.4 MB, free: 14.27 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.04737, allocations: 0.5585 MB / 296 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003546/0.04772, allocations: 277.5 kB / 296.3 MB, free: 13.42 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007174/0.04844, allocations: 0.6793 MB / 297 MB, free: 12.59 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007856/0.04922, allocations: 0.8695 MB / 297.8 MB, free: 11.59 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.04923, allocations: 4 kB / 297.8 MB, free: 11.59 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.007708/0.05694, allocations: 3.354 MB / 301.2 MB, free: 8.191 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.025e-05/0.057, allocations: 69.39 kB / 301.2 MB, free: 8.113 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.05701, allocations: 4 kB / 301.3 MB, free: 8.109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01598/0.07299, allocations: 5.133 MB / 306.4 MB, free: 2.961 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003137/0.0733, allocations: 123.8 kB / 306.5 MB, free: 2.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002539/0.07584, allocations: 2.481 MB / 309 MB, free: 300 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007803/0.07662, allocations: 115.9 kB / 309.1 MB, free: 184 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.12e-05/0.07669, allocations: 39.97 kB / 309.1 MB, free: 144 kB / 282.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.0003061/0.077, allocations: 220.4 kB / 309.4 MB, free: 15.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001529/0.07715, allocations: 115.4 kB / 309.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007063/0.08422, allocations: 3.036 MB / 312.5 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/0.08423, allocations: 12 kB / 312.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.08424, allocations: 0 / 312.5 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.08425, allocations: 3.984 kB / 312.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007663/0.08502, allocations: 0.598 MB / 313.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.08502, allocations: 0 / 313.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.08521, allocations: 59.95 kB / 313.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01312/0.09833, allocations: 5.09 MB / 318.3 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001294/0.09846, allocations: 31.95 kB / 318.3 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002081/0.1005, allocations: 2.501 MB / 320.8 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.1005, allocations: 3.984 kB / 320.8 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007181/0.1077, allocations: 3.26 MB / 324.1 MB, free: 1.035 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001807/0.1079, allocations: 71.47 kB / 324.1 MB, free: 0.9648 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.296e-05/0.108, allocations: 20 kB / 324.2 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004541/0.1085, allocations: 99.89 kB / 324.2 MB, free: 0.8477 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000157/0.1086, allocations: 92.83 kB / 324.3 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.069e-05/0.1087, allocations: 28 kB / 324.4 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002017/0.1089, allocations: 334.5 kB / 324.7 MB, free: 412 kB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1089, allocations: 0 / 324.7 MB, free: 412 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005347/0.1094, allocations: 259.9 kB / 324.9 MB, free: 152 kB / 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.0002248/0.1096, allocations: 131.2 kB / 325.1 MB, free: 8 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001908/0.1115, allocations: 1.116 MB / 326.2 MB, free: 14.85 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.1115, allocations: 0 / 326.2 MB, free: 14.85 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009726/0.1125, allocations: 0.5844 MB / 326.8 MB, free: 14.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004967/0.113, allocations: 158.1 kB / 326.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002035/0.115, allocations: 1.46 MB / 328.4 MB, free: 12.62 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001022/0.1151, allocations: 160 kB / 328.5 MB, free: 12.45 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001791/0.1153, allocations: 54.23 kB / 328.6 MB, free: 12.39 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002773/0.1156, allocations: 206.1 kB / 328.8 MB, free: 12.19 MB / 314.7 MB Notification: Performance of SimCode: time 1.643e-06/0.1156, allocations: 0 / 328.8 MB, free: 12.19 MB / 314.7 MB Notification: Performance of Templates: time 0.1279/0.2435, allocations: 19.99 MB / 348.8 MB, free: 77.12 MB / 314.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.508132691960782]