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.001025/0.001025, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.001552/0.001552, allocations: 151 kB / 24.89 MB, free: 8.742 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.9479/0.9479, allocations: 173.4 MB / 201.5 MB, free: 8.766 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.483e-06/1.483e-06, allocations: 0 / 268.5 MB, free: 5.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.599e-05/2.747e-05, allocations: 6.25 kB / 268.5 MB, free: 5.965 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004187/0.004215, allocations: 4.805 MB / 273.3 MB, free: 1.133 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002522/0.006737, allocations: 1.294 MB / 274.6 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003932/0.00713, allocations: 11.94 kB / 274.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000256/0.007386, allocations: 134.7 kB / 274.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004438/0.00783, allocations: 269.5 kB / 275 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005952/0.008425, allocations: 315.3 kB / 275.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008576/0.009283, allocations: 1.13 MB / 276.5 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002667/0.009549, allocations: 200.9 kB / 276.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006504/0.0102, allocations: 0.6041 MB / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003794/0.01058, allocations: 370.9 kB / 277.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.048e-05/0.01067, allocations: 96 kB / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.01084, allocations: 119.9 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.01095, allocations: 203.2 kB / 278.1 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002172/0.01116, allocations: 315.3 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000603/0.01177, allocations: 0.724 MB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.01177, allocations: 0 / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.01177, allocations: 0 / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.01178, allocations: 0 / 279.1 MB, free: 11.34 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.001252/0.01303, allocations: 1.149 MB / 280.2 MB, free: 10.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.01307, allocations: 16.86 kB / 280.3 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001146/0.01318, allocations: 112.8 kB / 280.4 MB, free: 10.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.01354, allocations: 345.4 kB / 280.7 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.949e-05/0.01357, allocations: 49.69 kB / 280.7 MB, free: 9.613 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.863e-05/0.01364, allocations: 72.36 kB / 280.8 MB, free: 9.543 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005324/0.01417, allocations: 0.5625 MB / 281.4 MB, free: 8.938 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.01419, allocations: 192 / 281.4 MB, free: 8.938 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.714e-05/0.01422, allocations: 32.36 kB / 281.4 MB, free: 8.906 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.01423, allocations: 19.94 kB / 281.4 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005514/0.01479, allocations: 214.3 kB / 281.6 MB, free: 8.676 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.01657, allocations: 1.477 MB / 283.1 MB, free: 7.145 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003371/0.01691, allocations: 256.4 kB / 283.4 MB, free: 6.883 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001248/0.01703, allocations: 118.3 kB / 283.5 MB, free: 6.766 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.01707, allocations: 8.5 kB / 283.5 MB, free: 6.758 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003156/0.01739, allocations: 402.6 kB / 283.9 MB, free: 6.312 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.964e-06/0.01739, allocations: 0 / 283.9 MB, free: 6.312 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1337/0.1511, allocations: 10.67 MB / 294.6 MB, free: 28.72 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.413e-05/0.1511, allocations: 147.1 kB / 294.7 MB, free: 28.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000423/0.1516, allocations: 484.5 kB / 295.2 MB, free: 28.44 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001068/0.1517, allocations: 44.45 kB / 295.2 MB, free: 28.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.1518, allocations: 332.5 kB / 295.5 MB, free: 28.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002176/0.1521, allocations: 333.3 kB / 295.9 MB, free: 28.08 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002881/0.1523, allocations: 179.7 kB / 296 MB, free: 28.06 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.834e-05/0.1524, allocations: 395.1 kB / 296.4 MB, free: 27.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003925/0.1528, allocations: 247.1 kB / 296.7 MB, free: 27.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000474/0.1533, allocations: 0.5466 MB / 297.2 MB, free: 27.28 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008517/0.1541, allocations: 0.7526 MB / 298 MB, free: 26.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.211e-05/0.1542, allocations: 1.406 kB / 298 MB, free: 26.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.008811/0.163, allocations: 3.095 MB / 301.1 MB, free: 26.37 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.475e-05/0.163, allocations: 63.59 kB / 301.1 MB, free: 26.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.163, allocations: 7.031 kB / 301.1 MB, free: 26.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05166/0.2147, allocations: 5.022 MB / 306.2 MB, free: 23.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004128/0.2151, allocations: 133.8 kB / 306.3 MB, free: 23.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01565/0.2308, allocations: 5.301 MB / 311.6 MB, free: 18.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006831/0.2314, allocations: 116.7 kB / 311.7 MB, free: 18.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-05/0.2315, allocations: 38.09 kB / 311.7 MB, free: 18.43 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): 1 system {(5,32,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.000228/0.2317, allocations: 178.8 kB / 311.9 MB, free: 18.27 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.2318, allocations: 77.42 kB / 312 MB, free: 18.21 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005898/0.2377, allocations: 2.819 MB / 314.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.2377, allocations: 12 kB / 314.8 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.2377, allocations: 7.844 kB / 314.8 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.2378, allocations: 7.969 kB / 314.8 MB, free: 15.48 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005979/0.2384, allocations: 0.5164 MB / 315.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.2384, allocations: 0 / 315.3 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001886/0.2386, allocations: 67.81 kB / 315.4 MB, free: 15.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01121/0.2498, allocations: 4.989 MB / 320.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-05/0.2499, allocations: 23.97 kB / 320.4 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007643/0.2575, allocations: 5.273 MB / 325.7 MB, free: 4.781 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.2575, allocations: 0 / 325.7 MB, free: 4.781 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00651/0.264, allocations: 3.004 MB / 328.7 MB, free: 1.777 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001244/0.2641, allocations: 70.03 kB / 328.8 MB, free: 1.711 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.842e-05/0.2642, allocations: 20.03 kB / 328.8 MB, free: 1.691 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000415/0.2646, allocations: 107.9 kB / 328.9 MB, free: 1.586 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/0.2649, allocations: 112.8 kB / 329 MB, free: 1.477 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.359e-05/0.2649, allocations: 19.98 kB / 329 MB, free: 1.457 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000125/0.265, allocations: 212.7 kB / 329.2 MB, free: 1.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.265, allocations: 4 kB / 329.2 MB, free: 1.266 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007479/0.2658, allocations: 354.2 kB / 329.6 MB, free: 0.9219 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): 1 system {(5,32,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000187/0.266, allocations: 115.3 kB / 329.7 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001647/0.2676, allocations: 1.302 MB / 331 MB, free: 15.47 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.361e-05/0.2676, allocations: 8 kB / 331 MB, free: 15.46 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.2687, allocations: 0.8073 MB / 331.8 MB, free: 14.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.2691, allocations: 152.6 kB / 332 MB, free: 14.52 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/0.2709, allocations: 1.46 MB / 333.4 MB, free: 13.05 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001264/0.271, allocations: 184.6 kB / 333.6 MB, free: 12.85 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001626/0.2712, allocations: 58.59 kB / 333.7 MB, free: 12.79 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002498/0.2714, allocations: 173.3 kB / 333.8 MB, free: 12.63 MB / 282.7 MB Notification: Performance of SimCode: time 9.52e-07/0.2714, allocations: 0 / 333.8 MB, free: 12.63 MB / 282.7 MB Notification: Performance of Templates: time 0.02963/0.3011, allocations: 29.82 MB / 363.7 MB, free: 15.04 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 -s gbode -gbm=radauIIA3 -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.5303229209966958]