Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002587/0.002587, allocations: 99.53 kB / 20.97 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003103/0.003103, allocations: 164.8 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.612/1.612, allocations: 177 MB / 204.5 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 272.2 MB, free: 1.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.181e-05/3.353e-05, allocations: 2.312 kB / 272.2 MB, free: 1.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.007207/0.00724, allocations: 4.803 MB / 277 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002695/0.009935, allocations: 1.272 MB / 278.3 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002818/0.01022, allocations: 15.94 kB / 278.3 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003045/0.01052, allocations: 122.7 kB / 278.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005414/0.01106, allocations: 273.5 kB / 278.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007234/0.01179, allocations: 315.4 kB / 279 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001299/0.01308, allocations: 1.138 MB / 280.1 MB, free: 9.805 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003339/0.01342, allocations: 175 kB / 280.3 MB, free: 9.621 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008316/0.01425, allocations: 0.6158 MB / 280.9 MB, free: 9.004 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005971/0.01485, allocations: 371 kB / 281.3 MB, free: 8.641 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001554/0.015, allocations: 92 kB / 281.4 MB, free: 8.551 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002406/0.01524, allocations: 115.9 kB / 281.5 MB, free: 8.438 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.01547, allocations: 207.2 kB / 281.7 MB, free: 8.234 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004223/0.01589, allocations: 323.2 kB / 282 MB, free: 7.918 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001541/0.01743, allocations: 1.083 MB / 283.1 MB, free: 6.832 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.01744, allocations: 4 kB / 283.1 MB, free: 6.828 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.01744, allocations: 0 / 283.1 MB, free: 6.828 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.01745, allocations: 0 / 283.1 MB, free: 6.828 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.002786/0.02024, allocations: 1.336 MB / 284.4 MB, free: 5.438 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.02027, allocations: 11.98 kB / 284.5 MB, free: 5.426 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002682/0.02054, allocations: 148.3 kB / 284.6 MB, free: 5.281 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007517/0.02129, allocations: 436.2 kB / 285 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.204e-05/0.02134, allocations: 45.69 kB / 285.1 MB, free: 4.785 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001261/0.02147, allocations: 68.38 kB / 285.1 MB, free: 4.719 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.02288, allocations: 0.7338 MB / 285.9 MB, free: 3.945 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.02291, allocations: 8.141 kB / 285.9 MB, free: 3.938 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.392e-05/0.02299, allocations: 28.36 kB / 285.9 MB, free: 3.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.236e-05/0.02301, allocations: 19.94 kB / 285.9 MB, free: 3.891 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001515/0.02452, allocations: 0.6141 MB / 286.5 MB, free: 3.277 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004151/0.02867, allocations: 2.008 MB / 288.5 MB, free: 1.195 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.02994, allocations: 0.5132 MB / 289.1 MB, free: 0.668 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006246/0.03057, allocations: 280.9 kB / 289.3 MB, free: 400 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.974e-05/0.03064, allocations: 12.5 kB / 289.3 MB, free: 388 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1115/0.1421, allocations: 0.5415 MB / 289.9 MB, free: 27.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.445e-06/0.1421, allocations: 0 / 289.9 MB, free: 27.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.05591/0.1981, allocations: 11.8 MB / 301.7 MB, free: 24.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/0.1981, allocations: 137.5 kB / 301.8 MB, free: 24.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005572/0.1987, allocations: 0.6587 MB / 302.5 MB, free: 23.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001455/0.1988, allocations: 45.7 kB / 302.5 MB, free: 23.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000197/0.199, allocations: 468.8 kB / 303 MB, free: 23.38 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002015/0.1992, allocations: 358.9 kB / 303.3 MB, free: 23.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003415/0.1996, allocations: 220.2 kB / 303.5 MB, free: 22.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1997, allocations: 0.5899 MB / 304.1 MB, free: 22.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/0.201, allocations: 0.6927 MB / 304.8 MB, free: 21.51 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00142/0.2024, allocations: 1.093 MB / 305.9 MB, free: 20.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002591/0.205, allocations: 1.658 MB / 307.6 MB, free: 18.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.205, allocations: 4 kB / 307.6 MB, free: 18.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01817/0.2232, allocations: 4.463 MB / 312 MB, free: 13.97 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.068e-05/0.2233, allocations: 67.53 kB / 312.1 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/0.2233, allocations: 8 kB / 312.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03045/0.2537, allocations: 5.612 MB / 317.7 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005223/0.2543, allocations: 123.8 kB / 317.9 MB, free: 8.137 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004778/0.259, allocations: 3.461 MB / 321.3 MB, free: 4.613 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/0.2604, allocations: 115.9 kB / 321.4 MB, free: 4.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.2605, allocations: 48.48 kB / 321.5 MB, free: 4.453 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.0003666/0.2609, allocations: 284.9 kB / 321.8 MB, free: 4.164 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002051/0.2611, allocations: 113.3 kB / 321.9 MB, free: 4.055 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01733/0.2784, allocations: 4.075 MB / 325.9 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-05/0.2784, allocations: 8 kB / 325.9 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.2784, allocations: 4 kB / 326 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.63e-05/0.2784, allocations: 8.375 kB / 326 MB, free: 15.94 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.28, allocations: 0.8535 MB / 326.8 MB, free: 15.08 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.397e-06/0.28, allocations: 11.86 kB / 326.8 MB, free: 15.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003898/0.2804, allocations: 60.83 kB / 326.9 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03356/0.3139, allocations: 5.565 MB / 332.5 MB, free: 9.43 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002225/0.3141, allocations: 27.97 kB / 332.5 MB, free: 9.402 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007004/0.3212, allocations: 3.457 MB / 335.9 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3212, allocations: 0 / 335.9 MB, free: 5.879 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02233/0.3435, allocations: 4.902 MB / 340.8 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000228/0.3437, allocations: 75.47 kB / 340.9 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001688/0.3439, allocations: 21.5 kB / 340.9 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/0.345, allocations: 111.9 kB / 341 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002982/0.3453, allocations: 100.8 kB / 341.1 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.3454, allocations: 35.97 kB / 341.2 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005253/0.346, allocations: 418.8 kB / 341.6 MB, free: 200 kB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.346, allocations: 0 / 341.6 MB, free: 200 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008307/0.3468, allocations: 260 kB / 341.8 MB, free: 15.94 MB / 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.0002725/0.3471, allocations: 131.3 kB / 342 MB, free: 15.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005646/0.3527, allocations: 1.933 MB / 343.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.145e-06/0.3527, allocations: 0 / 343.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003378/0.3561, allocations: 0.9971 MB / 344.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007541/0.3568, allocations: 150.8 kB / 345 MB, free: 12.71 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003674/0.3605, allocations: 1.744 MB / 346.8 MB, free: 10.94 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.3609, allocations: 353.7 kB / 347.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002511/0.3611, allocations: 58.83 kB / 347.2 MB, free: 10.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001384/0.3613, allocations: 36.5 kB / 347.2 MB, free: 10.47 MB / 298.7 MB Notification: Performance of SimCode: time 1.172e-06/0.3613, allocations: 0 / 347.2 MB, free: 10.47 MB / 298.7 MB Notification: Performance of Templates: time 0.0342/0.3955, allocations: 19.1 MB / 366.3 MB, free: 7.559 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.7418051100103185]