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.001876/0.001876, allocations: 77.55 kB / 20.68 MB, free: 1.039 MB / 14.72 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.002011/0.002011, allocations: 154.9 kB / 23.94 MB, free: 4.176 MB / 14.72 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 1.413/1.413, allocations: 173.4 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] 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.583e-06/1.583e-06, allocations: 0 / 318.9 MB, free: 3.555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.925e-05/3.084e-05, allocations: 2.281 kB / 318.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004672/0.004703, allocations: 4.386 MB / 323.3 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002144/0.006847, allocations: 1.244 MB / 324.6 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002789/0.007126, allocations: 14.06 kB / 324.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003102/0.007436, allocations: 122.7 kB / 324.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005166/0.007952, allocations: 269.4 kB / 325 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000754/0.008706, allocations: 320.7 kB / 325.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001223/0.009929, allocations: 1.137 MB / 326.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003518/0.01028, allocations: 176.5 kB / 326.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007953/0.01108, allocations: 0.6026 MB / 327.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005747/0.01165, allocations: 376.9 kB / 327.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001433/0.01179, allocations: 90.16 kB / 327.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002329/0.01203, allocations: 111.8 kB / 327.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002357/0.01226, allocations: 201.3 kB / 327.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003974/0.01266, allocations: 320.2 kB / 328.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001283/0.01394, allocations: 1.079 MB / 329.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.01395, allocations: 4.703 kB / 329.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.01395, allocations: 5.031 kB / 329.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.01396, allocations: 0 / 329.4 MB, free: 13.45 MB / 302.1 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.002866/0.01683, allocations: 1.207 MB / 330.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.01687, allocations: 10.2 kB / 330.6 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.01707, allocations: 95.78 kB / 330.7 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007865/0.01786, allocations: 429.4 kB / 331.1 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.901e-05/0.01792, allocations: 47.66 kB / 331.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.01803, allocations: 67.44 kB / 331.2 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.01961, allocations: 0.7784 MB / 332 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.482e-05/0.01963, allocations: 4.188 kB / 332 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.331e-05/0.01971, allocations: 22.19 kB / 332 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.01972, allocations: 20.09 kB / 332 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001855/0.02158, allocations: 0.6915 MB / 332.7 MB, free: 11.29 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004174/0.02575, allocations: 1.823 MB / 334.5 MB, free: 9.945 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.02731, allocations: 0.5558 MB / 335.1 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007889/0.0281, allocations: 312.3 kB / 335.4 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.998e-05/0.02815, allocations: 10.28 kB / 335.4 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001084/0.02923, allocations: 0.5448 MB / 335.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of pre-optimization done (n=54): time 2.154e-06/0.02923, allocations: 0 / 335.9 MB, free: 9.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=94): time 0.07581/0.105, allocations: 15.24 MB / 351.2 MB, free: 11.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/0.1052, allocations: 137.5 kB / 351.3 MB, free: 10.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007573/0.1059, allocations: 0.5224 MB / 351.8 MB, free: 10.39 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002365/0.1062, allocations: 45.7 kB / 351.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003419/0.1065, allocations: 396.7 kB / 352.3 MB, free: 9.945 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003243/0.1068, allocations: 329.2 kB / 352.6 MB, free: 9.621 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003933/0.1072, allocations: 178.6 kB / 352.8 MB, free: 9.441 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002104/0.1074, allocations: 386.8 kB / 353.2 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002284/0.1097, allocations: 0.7785 MB / 353.9 MB, free: 8.262 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00258/0.1123, allocations: 1.088 MB / 355 MB, free: 7.055 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004712/0.117, allocations: 1.704 MB / 356.7 MB, free: 5.258 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.117, allocations: 0 / 356.7 MB, free: 5.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02521/0.1422, allocations: 5.401 MB / 362.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.115e-05/0.1423, allocations: 63.41 kB / 362.2 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.1423, allocations: 8 kB / 362.2 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0366/0.1789, allocations: 6.822 MB / 369 MB, free: 8.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008061/0.1797, allocations: 151.7 kB / 369.2 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006701/0.1864, allocations: 3.012 MB / 372.2 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001934/0.1884, allocations: 187.8 kB / 372.4 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/0.1885, allocations: 44.03 kB / 372.4 MB, free: 5.453 MB / 334.1 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.0005387/0.1891, allocations: 233.6 kB / 372.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001757/0.1892, allocations: 79.48 kB / 372.7 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0239/0.2131, allocations: 5.064 MB / 377.8 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.432e-05/0.2132, allocations: 15.94 kB / 377.8 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.2132, allocations: 256 / 377.8 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.252e-05/0.2132, allocations: 7.969 kB / 377.8 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.2151, allocations: 0.7618 MB / 378.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.2151, allocations: 0 / 378.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006203/0.2157, allocations: 99.88 kB / 378.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03736/0.2531, allocations: 6.782 MB / 385.4 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002838/0.2533, allocations: 23.97 kB / 385.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006554/0.2599, allocations: 3.033 MB / 388.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.2599, allocations: 0 / 388.5 MB, free: 5.223 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02731/0.2872, allocations: 5.945 MB / 394.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002735/0.2875, allocations: 75.47 kB / 394.5 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001918/0.2877, allocations: 20 kB / 394.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00152/0.2892, allocations: 163.8 kB / 394.7 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003101/0.2895, allocations: 104.8 kB / 394.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.2896, allocations: 31.98 kB / 394.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005011/0.2901, allocations: 350.8 kB / 395.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2901, allocations: 0 / 395.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009145/0.291, allocations: 263.9 kB / 395.4 MB, free: 14.26 MB / 366.1 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.0003239/0.2914, allocations: 131.2 kB / 395.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00685/0.2982, allocations: 2.028 MB / 397.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.2982, allocations: 0 / 397.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003993/0.3022, allocations: 1.019 MB / 398.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001157/0.3034, allocations: 130.4 kB / 398.7 MB, free: 10.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004245/0.3076, allocations: 1.753 MB / 400.5 MB, free: 9.141 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.308, allocations: 357.6 kB / 400.8 MB, free: 8.762 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003005/0.3083, allocations: 58.22 kB / 400.9 MB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.3084, allocations: 40.5 kB / 400.9 MB, free: 8.664 MB / 366.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3084, allocations: 4 kB / 400.9 MB, free: 8.66 MB / 366.1 MB Notification: Performance of Templates: time 0.03135/0.3398, allocations: 18.85 MB / 419.8 MB, free: 5.922 MB / 382.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.671850107610226]