Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.001457/0.001457, 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.001234/0.001234, allocations: 168 kB / 25 MB, free: 8.871 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.028/1.028, allocations: 177.1 MB / 205.3 MB, free: 5.617 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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 273.1 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.57e-05/2.73e-05, allocations: 2.312 kB / 273.1 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.004789/0.004816, allocations: 4.859 MB / 277.9 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002346/0.007162, allocations: 1.268 MB / 279.2 MB, free: 11.65 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004402/0.007602, allocations: 11.94 kB / 279.2 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002999/0.007902, allocations: 126.7 kB / 279.3 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004548/0.008357, allocations: 273.4 kB / 279.6 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008547/0.009211, allocations: 319.3 kB / 279.9 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001184/0.0104, allocations: 1.138 MB / 281.1 MB, free: 9.789 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003029/0.0107, allocations: 182.9 kB / 281.2 MB, free: 9.598 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000718/0.01142, allocations: 0.612 MB / 281.9 MB, free: 8.984 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004063/0.01182, allocations: 363 kB / 282.2 MB, free: 8.629 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.848e-05/0.01192, allocations: 92 kB / 282.3 MB, free: 8.539 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.0121, allocations: 116 kB / 282.4 MB, free: 8.426 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.01221, allocations: 203.2 kB / 282.6 MB, free: 8.227 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002579/0.01247, allocations: 327.2 kB / 282.9 MB, free: 7.906 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007264/0.0132, allocations: 0.7162 MB / 283.6 MB, free: 7.188 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.0132, allocations: 0 / 283.6 MB, free: 7.188 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.0132, allocations: 0 / 283.6 MB, free: 7.188 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.01322, allocations: 0 / 283.6 MB, free: 7.188 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.001794/0.01501, allocations: 1.278 MB / 284.9 MB, free: 5.855 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.01505, allocations: 12.03 kB / 284.9 MB, free: 5.844 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001789/0.01523, allocations: 148.3 kB / 285.1 MB, free: 5.699 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004731/0.0157, allocations: 436.1 kB / 285.5 MB, free: 5.242 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.495e-05/0.01574, allocations: 49.67 kB / 285.6 MB, free: 5.195 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.262e-05/0.01582, allocations: 68.33 kB / 285.6 MB, free: 5.129 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007145/0.01653, allocations: 0.6094 MB / 286.2 MB, free: 4.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.01655, allocations: 192 / 286.2 MB, free: 4.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.622e-05/0.0166, allocations: 28.38 kB / 286.3 MB, free: 4.453 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.01661, allocations: 15.94 kB / 286.3 MB, free: 4.438 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005222/0.01713, allocations: 327.5 kB / 286.6 MB, free: 4.117 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002227/0.01936, allocations: 1.762 MB / 288.4 MB, free: 2.281 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005151/0.01988, allocations: 325.6 kB / 288.7 MB, free: 1.949 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002158/0.02009, allocations: 161.8 kB / 288.8 MB, free: 1.789 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.095e-05/0.02013, allocations: 8.5 kB / 288.8 MB, free: 1.781 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004323/0.02057, allocations: 428 kB / 289.3 MB, free: 1.301 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.884e-06/0.02057, allocations: 4 kB / 289.3 MB, free: 1.297 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1471/0.1676, allocations: 9.8 MB / 299.1 MB, free: 27.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.933e-05/0.1677, allocations: 140.5 kB / 299.2 MB, free: 27.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004701/0.1682, allocations: 0.5391 MB / 299.7 MB, free: 26.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001135/0.1683, allocations: 47.36 kB / 299.8 MB, free: 26.85 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.1685, allocations: 446.2 kB / 300.2 MB, free: 26.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002166/0.1687, allocations: 324.3 kB / 300.5 MB, free: 26.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002622/0.1689, allocations: 189.8 kB / 300.7 MB, free: 26.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.169, allocations: 0.5559 MB / 301.3 MB, free: 25.55 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005408/0.1696, allocations: 350.2 kB / 301.6 MB, free: 25.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005271/0.1701, allocations: 0.7339 MB / 302.4 MB, free: 24.78 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009674/0.1711, allocations: 0.9691 MB / 303.3 MB, free: 24.14 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.1711, allocations: 4.812 kB / 303.3 MB, free: 24.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.008108/0.1792, allocations: 3.536 MB / 306.9 MB, free: 20.75 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.619e-05/0.1793, allocations: 64.03 kB / 306.9 MB, free: 20.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.1793, allocations: 4 kB / 306.9 MB, free: 20.67 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01379/0.1931, allocations: 5.199 MB / 312.1 MB, free: 15.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003245/0.1934, allocations: 123.7 kB / 312.2 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00251/0.1959, allocations: 2.645 MB / 314.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007697/0.1967, allocations: 123.9 kB / 315 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.336e-05/0.1967, allocations: 51.91 kB / 315.1 MB, free: 12.46 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.0002658/0.197, allocations: 216.4 kB / 315.3 MB, free: 12.24 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.1972, allocations: 111.5 kB / 315.4 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007568/0.2047, allocations: 3.184 MB / 318.6 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/0.2047, allocations: 8 kB / 318.6 MB, free: 8.918 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.2047, allocations: 4.875 kB / 318.6 MB, free: 8.914 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.2048, allocations: 7.922 kB / 318.6 MB, free: 8.906 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007478/0.2055, allocations: 0.671 MB / 319.3 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.2055, allocations: 0 / 319.3 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001831/0.2057, allocations: 63.94 kB / 319.3 MB, free: 8.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01327/0.219, allocations: 5.136 MB / 324.5 MB, free: 3.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000129/0.2191, allocations: 31.34 kB / 324.5 MB, free: 2.992 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002138/0.2212, allocations: 2.594 MB / 327.1 MB, free: 340 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2212, allocations: 0 / 327.1 MB, free: 340 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009021/0.2303, allocations: 3.485 MB / 330.6 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002007/0.2305, allocations: 69.12 kB / 330.6 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.2306, allocations: 27.92 kB / 330.7 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005306/0.2311, allocations: 107.9 kB / 330.8 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001837/0.2313, allocations: 84.83 kB / 330.9 MB, free: 12.54 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.817e-05/0.2313, allocations: 35.97 kB / 330.9 MB, free: 12.5 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002668/0.2316, allocations: 346.8 kB / 331.2 MB, free: 12.16 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2316, allocations: 0 / 331.2 MB, free: 12.16 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006192/0.2322, allocations: 263.9 kB / 331.5 MB, free: 11.9 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.0002393/0.2325, allocations: 123.2 kB / 331.6 MB, free: 11.77 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002384/0.2349, allocations: 1.325 MB / 332.9 MB, free: 10.42 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.2349, allocations: 0 / 332.9 MB, free: 10.42 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001223/0.2361, allocations: 0.662 MB / 333.6 MB, free: 9.754 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004959/0.2366, allocations: 149.3 kB / 333.7 MB, free: 9.617 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002432/0.239, allocations: 1.488 MB / 335.2 MB, free: 8.105 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001062/0.2391, allocations: 160 kB / 335.4 MB, free: 7.926 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000179/0.2393, allocations: 57.19 kB / 335.4 MB, free: 7.871 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.979e-05/0.2394, allocations: 40.48 kB / 335.5 MB, free: 7.832 MB / 282.7 MB Notification: Performance of SimCode: time 1.493e-06/0.2394, allocations: 0 / 335.5 MB, free: 7.832 MB / 282.7 MB Notification: Performance of Templates: time 0.02214/0.2615, allocations: 19.07 MB / 354.5 MB, free: 4.941 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.7607324570417404]