Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_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.0008675/0.0008675, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001316/0.002184, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007621/0.0007621, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001102/0.001864, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.012/1.012, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1118/1.123, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.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.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.676e-05/1.833e-05, allocations: 5.969 kB / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005735/0.005753, allocations: 4.852 MB / 249.6 MB, free: 9.316 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003176/0.008929, allocations: 1.334 MB / 250.9 MB, free: 7.977 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003976/0.009326, allocations: 11.94 kB / 250.9 MB, free: 7.965 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002841/0.00961, allocations: 130.7 kB / 251.1 MB, free: 7.836 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005306/0.01014, allocations: 273.4 kB / 251.3 MB, free: 7.566 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007386/0.01088, allocations: 315.3 kB / 251.6 MB, free: 7.258 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001201/0.01208, allocations: 1.122 MB / 252.8 MB, free: 6.133 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003419/0.01242, allocations: 185 kB / 252.9 MB, free: 5.934 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009429/0.01337, allocations: 0.685 MB / 253.6 MB, free: 5.242 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005332/0.0139, allocations: 374.9 kB / 254 MB, free: 4.875 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.01405, allocations: 92 kB / 254.1 MB, free: 4.785 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002609/0.01431, allocations: 119.9 kB / 254.2 MB, free: 4.668 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.01445, allocations: 143.5 kB / 254.3 MB, free: 4.527 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000296/0.01475, allocations: 255.5 kB / 254.6 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007858/0.01553, allocations: 0.6345 MB / 255.2 MB, free: 3.641 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.329e-05/0.01555, allocations: 0 / 255.2 MB, free: 3.641 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.01555, allocations: 0 / 255.2 MB, free: 3.641 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.739e-05/0.01557, allocations: 4 kB / 255.2 MB, free: 3.637 MB / 250.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.002013/0.01758, allocations: 1.337 MB / 256.6 MB, free: 2.258 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.01762, allocations: 12.03 kB / 256.6 MB, free: 2.246 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000185/0.01781, allocations: 116.8 kB / 256.7 MB, free: 2.133 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005194/0.01833, allocations: 341.5 kB / 257 MB, free: 1.773 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.528e-05/0.01837, allocations: 49.69 kB / 257.1 MB, free: 1.727 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.01848, allocations: 68.36 kB / 257.1 MB, free: 1.66 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007936/0.01927, allocations: 0.5703 MB / 257.7 MB, free: 1.047 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.01929, allocations: 4.188 kB / 257.7 MB, free: 1.043 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.637e-05/0.01935, allocations: 24.38 kB / 257.7 MB, free: 1.02 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.093e-05/0.01937, allocations: 19.94 kB / 257.8 MB, free: 1 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004241/0.01979, allocations: 222.3 kB / 258 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002537/0.02233, allocations: 1.461 MB / 259.4 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004719/0.0228, allocations: 260.4 kB / 259.7 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.02298, allocations: 114.3 kB / 259.8 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.123e-05/0.02303, allocations: 16.5 kB / 259.8 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004447/0.02348, allocations: 402.9 kB / 260.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.914e-06/0.02348, allocations: 0 / 260.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.02746/0.05094, allocations: 11.03 MB / 271.2 MB, free: 3.312 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.05099, allocations: 64.34 kB / 271.3 MB, free: 3.238 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00034/0.05133, allocations: 486.9 kB / 271.8 MB, free: 2.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.189e-05/0.0514, allocations: 45.7 kB / 271.8 MB, free: 2.699 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.05156, allocations: 341.9 kB / 272.2 MB, free: 2.359 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001945/0.05175, allocations: 325.1 kB / 272.5 MB, free: 2.039 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002255/0.05198, allocations: 182.5 kB / 272.7 MB, free: 1.855 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.0521, allocations: 394.6 kB / 273 MB, free: 1.461 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002814/0.05238, allocations: 237.7 kB / 273.3 MB, free: 1.215 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.0528, allocations: 0.5575 MB / 273.8 MB, free: 0.543 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1379/0.1907, allocations: 0.768 MB / 274.6 MB, free: 22.02 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.424e-05/0.1907, allocations: 3.062 kB / 274.6 MB, free: 22.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.00781/0.1985, allocations: 3.104 MB / 277.7 MB, free: 21.81 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.88e-05/0.1986, allocations: 68.61 kB / 277.8 MB, free: 21.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.1986, allocations: 9.75 kB / 277.8 MB, free: 21.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01342/0.212, allocations: 5.135 MB / 282.9 MB, free: 21.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003128/0.2124, allocations: 131.2 kB / 283 MB, free: 21.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008401/0.2208, allocations: 5.322 MB / 288.4 MB, free: 19.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006254/0.2214, allocations: 130.3 kB / 288.5 MB, free: 18.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.076e-05/0.2214, allocations: 31.05 kB / 288.5 MB, free: 18.98 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.0002275/0.2217, allocations: 171.7 kB / 288.7 MB, free: 18.86 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.2218, allocations: 85.86 kB / 288.8 MB, free: 18.83 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005876/0.2276, allocations: 2.826 MB / 291.6 MB, free: 16.94 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.15e-05/0.2277, allocations: 14.17 kB / 291.6 MB, free: 16.93 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.2277, allocations: 9.078 kB / 291.6 MB, free: 16.92 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.2277, allocations: 3.984 kB / 291.6 MB, free: 16.92 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005531/0.2282, allocations: 0.5087 MB / 292.1 MB, free: 16.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.2282, allocations: 3.984 kB / 292.1 MB, free: 16.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.2284, allocations: 67.23 kB / 292.2 MB, free: 16.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.191e-05/0.2285, allocations: 70.91 kB / 292.3 MB, free: 16.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01101/0.2395, allocations: 5.088 MB / 297.4 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-05/0.2395, allocations: 27.91 kB / 297.4 MB, free: 11.42 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007194/0.2467, allocations: 5.31 MB / 302.7 MB, free: 6.109 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.2467, allocations: 0 / 302.7 MB, free: 6.109 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006048/0.2528, allocations: 3.03 MB / 305.7 MB, free: 3.082 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.764e-05/0.2529, allocations: 16 kB / 305.8 MB, free: 3.066 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004153/0.2533, allocations: 112.8 kB / 305.9 MB, free: 2.957 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002118/0.2535, allocations: 116.5 kB / 306 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.945e-05/0.2535, allocations: 35.94 kB / 306 MB, free: 2.809 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001283/0.2537, allocations: 206.8 kB / 306.2 MB, free: 2.633 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2537, allocations: 0 / 306.2 MB, free: 2.633 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007457/0.2544, allocations: 352 kB / 306.6 MB, free: 2.289 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.0002012/0.2546, allocations: 116.2 kB / 306.7 MB, free: 2.176 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001496/0.2561, allocations: 1.31 MB / 308 MB, free: 0.8477 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.175e-05/0.2561, allocations: 18.62 kB / 308 MB, free: 0.832 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009071/0.257, allocations: 0.843 MB / 308.8 MB, free: 0 / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007772/0.2578, allocations: 1.259 MB / 310.1 MB, free: 14.51 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004186/0.262, allocations: 1.493 MB / 311.6 MB, free: 13.03 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001315/0.2621, allocations: 184.5 kB / 311.8 MB, free: 12.83 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001517/0.2623, allocations: 58.64 kB / 311.8 MB, free: 12.77 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002549/0.2626, allocations: 177.2 kB / 312 MB, free: 12.6 MB / 282.7 MB Notification: Performance of SimCode: time 7.42e-07/0.2626, allocations: 3.828 kB / 312 MB, free: 12.6 MB / 282.7 MB Notification: Performance of Templates: time 0.02863/0.2912, allocations: 29.61 MB / 341.6 MB, free: 15.25 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.426338927820325]