Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.001133/0.001133, allocations: 80.62 kB / 22.21 MB, free: 2.293 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.001067/0.001067, allocations: 147.5 kB / 25.6 MB, free: 8.496 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.8923/0.8923, allocations: 173.4 MB / 202.2 MB, free: 8.281 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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.842e-05/1.981e-05, allocations: 2.312 kB / 269.2 MB, free: 9.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.003843/0.003863, allocations: 4.769 MB / 274 MB, free: 4.977 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.005435, allocations: 1.258 MB / 275.2 MB, free: 3.719 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002127/0.005647, allocations: 15.94 kB / 275.2 MB, free: 3.703 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002134/0.005861, allocations: 122.7 kB / 275.4 MB, free: 3.582 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003044/0.006165, allocations: 277.4 kB / 275.6 MB, free: 3.309 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004403/0.006606, allocations: 311.4 kB / 275.9 MB, free: 3.004 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006869/0.007292, allocations: 1.142 MB / 277.1 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/0.007516, allocations: 178.9 kB / 277.3 MB, free: 1.668 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004554/0.007971, allocations: 0.6081 MB / 277.9 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003318/0.008303, allocations: 375 kB / 278.2 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.486e-05/0.008388, allocations: 92 kB / 278.3 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000127/0.008515, allocations: 112 kB / 278.4 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.008629, allocations: 203.2 kB / 278.6 MB, free: 300 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002166/0.008846, allocations: 323.3 kB / 278.9 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005281/0.009374, allocations: 0.7162 MB / 279.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.009377, allocations: 0 / 279.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.009377, allocations: 0 / 279.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.122e-06/0.009383, allocations: 0 / 279.7 MB, free: 15.26 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.001296/0.01068, allocations: 1.278 MB / 280.9 MB, free: 13.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.96e-05/0.01071, allocations: 12.03 kB / 281 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001462/0.01085, allocations: 144.4 kB / 281.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003865/0.01124, allocations: 428.1 kB / 281.5 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.06e-05/0.01127, allocations: 49.69 kB / 281.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.086e-05/0.01134, allocations: 68.36 kB / 281.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005334/0.01188, allocations: 0.5625 MB / 282.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/0.01189, allocations: 192 / 282.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/0.01193, allocations: 28.38 kB / 282.2 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.01194, allocations: 19.94 kB / 282.2 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003155/0.01226, allocations: 262.1 kB / 282.5 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001856/0.01411, allocations: 1.781 MB / 284.3 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003592/0.01447, allocations: 298.1 kB / 284.6 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001357/0.01461, allocations: 135 kB / 284.7 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.937e-05/0.01464, allocations: 12.5 kB / 284.7 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003104/0.01495, allocations: 407.9 kB / 285.1 MB, free: 9.543 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.433e-06/0.01495, allocations: 4 kB / 285.1 MB, free: 9.539 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.02876/0.04372, allocations: 9.463 MB / 294.6 MB, free: 16 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.074e-05/0.0438, allocations: 145.5 kB / 294.7 MB, free: 15.84 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003972/0.04419, allocations: 0.5255 MB / 295.2 MB, free: 15.3 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.0443, allocations: 45.7 kB / 295.3 MB, free: 15.25 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002294/0.04453, allocations: 447.3 kB / 295.7 MB, free: 14.8 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002224/0.04475, allocations: 329.1 kB / 296 MB, free: 14.48 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003653/0.04511, allocations: 192.1 kB / 296.2 MB, free: 14.28 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.04528, allocations: 0.5624 MB / 296.8 MB, free: 13.71 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004021/0.04568, allocations: 285.5 kB / 297.1 MB, free: 13.42 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005813/0.04626, allocations: 0.6754 MB / 297.8 MB, free: 12.59 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.04734, allocations: 0.8617 MB / 298.6 MB, free: 11.6 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.04735, allocations: 4 kB / 298.6 MB, free: 11.6 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01058/0.05793, allocations: 3.362 MB / 302 MB, free: 8.191 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.199e-05/0.05797, allocations: 63.39 kB / 302 MB, free: 8.117 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.05798, allocations: 4 kB / 302 MB, free: 8.113 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01566/0.07364, allocations: 5.157 MB / 307.2 MB, free: 2.941 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002574/0.07389, allocations: 123.7 kB / 307.3 MB, free: 2.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002795/0.07669, allocations: 2.57 MB / 309.9 MB, free: 188 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008202/0.07751, allocations: 119.9 kB / 310 MB, free: 68 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.172e-05/0.07758, allocations: 40.02 kB / 310 MB, free: 28 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.00028/0.07786, allocations: 216.4 kB / 310.3 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001635/0.07802, allocations: 119.4 kB / 310.4 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007693/0.08572, allocations: 3.036 MB / 313.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.08573, allocations: 8 kB / 313.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.08573, allocations: 4 kB / 313.4 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.08574, allocations: 3.984 kB / 313.4 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006917/0.08644, allocations: 0.598 MB / 314 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.08644, allocations: 0 / 314 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002007/0.08664, allocations: 63.94 kB / 314.1 MB, free: 11.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01386/0.1005, allocations: 5.113 MB / 319.2 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001391/0.1006, allocations: 27.92 kB / 319.2 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002326/0.103, allocations: 2.504 MB / 321.7 MB, free: 4.191 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.103, allocations: 4 kB / 321.7 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008116/0.1111, allocations: 3.26 MB / 325 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.1112, allocations: 75.41 kB / 325.1 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.1113, allocations: 16 kB / 325.1 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005102/0.1118, allocations: 107.9 kB / 325.2 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/0.112, allocations: 88.83 kB / 325.3 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.366e-05/0.1121, allocations: 27.97 kB / 325.3 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001868/0.1122, allocations: 330.6 kB / 325.6 MB, free: 268 kB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1122, allocations: 0 / 325.6 MB, free: 268 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005258/0.1128, allocations: 256 kB / 325.9 MB, free: 12 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.0002126/0.113, allocations: 139.1 kB / 326 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002106/0.1151, allocations: 1.194 MB / 327.2 MB, free: 14.63 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.1151, allocations: 1.375 kB / 327.2 MB, free: 14.63 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/0.1162, allocations: 0.6025 MB / 327.8 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004903/0.1167, allocations: 146.2 kB / 328 MB, free: 13.88 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.1188, allocations: 1.447 MB / 329.4 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.786e-05/0.1189, allocations: 164 kB / 329.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001843/0.1191, allocations: 58.22 kB / 329.6 MB, free: 12.17 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002938/0.1194, allocations: 202.1 kB / 329.8 MB, free: 11.97 MB / 314.7 MB Notification: Performance of SimCode: time 1.412e-06/0.1194, allocations: 0 / 329.8 MB, free: 11.97 MB / 314.7 MB Notification: Performance of Templates: time 0.1216/0.241, allocations: 20.51 MB / 350.3 MB, free: 76.82 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_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.4856322882696986]