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.001413/0.001413, allocations: 88.62 kB / 20.96 MB, free: 3.477 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.001471/0.001471, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 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 1.432/1.432, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 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.432e-06/1.432e-06, allocations: 0 / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.584e-05/2.727e-05, allocations: 2.312 kB / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006417/0.006444, allocations: 4.399 MB / 271.7 MB, free: 2.273 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002536/0.00898, allocations: 1.233 MB / 273 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000262/0.009242, allocations: 15.88 kB / 273 MB, free: 1.016 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003147/0.009556, allocations: 126.7 kB / 273.1 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000515/0.01007, allocations: 277.4 kB / 273.4 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007099/0.01078, allocations: 315.4 kB / 273.7 MB, free: 316 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001416/0.0122, allocations: 1.134 MB / 274.8 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000356/0.01255, allocations: 183 kB / 275 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007856/0.01334, allocations: 0.5925 MB / 275.6 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005733/0.01391, allocations: 382.9 kB / 276 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001495/0.01406, allocations: 92 kB / 276.1 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002573/0.01432, allocations: 127.9 kB / 276.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002151/0.01453, allocations: 215.2 kB / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004036/0.01494, allocations: 331.1 kB / 276.7 MB, free: 13.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001377/0.01631, allocations: 1.133 MB / 277.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.01632, allocations: 4 kB / 277.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.01632, allocations: 0 / 277.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.01633, allocations: 0 / 277.9 MB, free: 12.12 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.00293/0.01926, allocations: 1.209 MB / 279.1 MB, free: 10.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.0193, allocations: 8.922 kB / 279.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002923/0.01959, allocations: 148.4 kB / 279.2 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009001/0.02049, allocations: 454.6 kB / 279.7 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.557e-05/0.02055, allocations: 49.69 kB / 279.7 MB, free: 10.19 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.02068, allocations: 68.38 kB / 279.8 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001633/0.02231, allocations: 0.7728 MB / 280.6 MB, free: 9.309 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/0.02234, allocations: 4.125 kB / 280.6 MB, free: 9.305 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.821e-05/0.02242, allocations: 32.36 kB / 280.6 MB, free: 9.273 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.924e-05/0.02243, allocations: 19.94 kB / 280.6 MB, free: 9.254 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00186/0.02429, allocations: 0.6922 MB / 281.3 MB, free: 8.562 MB / 266.7 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.004171/0.02847, allocations: 1.832 MB / 283.1 MB, free: 6.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001587/0.03005, allocations: 0.5517 MB / 283.7 MB, free: 6.098 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008193/0.03087, allocations: 302.2 kB / 284 MB, free: 5.801 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.767e-05/0.03093, allocations: 24.42 kB / 284 MB, free: 5.777 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001165/0.0321, allocations: 0.5458 MB / 284.6 MB, free: 5.176 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.074e-06/0.0321, allocations: 0 / 284.6 MB, free: 5.176 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1657/0.1978, allocations: 15.27 MB / 299.8 MB, free: 30.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.283e-05/0.1979, allocations: 144.9 kB / 300 MB, free: 30.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005836/0.1985, allocations: 0.5146 MB / 300.5 MB, free: 29.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001653/0.1986, allocations: 45.67 kB / 300.5 MB, free: 29.9 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002094/0.1988, allocations: 396.1 kB / 300.9 MB, free: 29.55 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002338/0.1991, allocations: 328.4 kB / 301.2 MB, free: 29.27 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003329/0.1994, allocations: 183.1 kB / 301.4 MB, free: 29.16 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.462e-05/0.1995, allocations: 385.7 kB / 301.8 MB, free: 28.79 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001876/0.2014, allocations: 0.7786 MB / 302.6 MB, free: 28.37 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00196/0.2033, allocations: 1.082 MB / 303.6 MB, free: 27.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003588/0.2069, allocations: 1.703 MB / 305.4 MB, free: 25.87 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.2069, allocations: 0 / 305.4 MB, free: 25.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.02283/0.2298, allocations: 5.44 MB / 310.8 MB, free: 20.39 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.354e-05/0.2298, allocations: 67.39 kB / 310.9 MB, free: 20.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.2298, allocations: 8 kB / 310.9 MB, free: 20.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03713/0.267, allocations: 7.721 MB / 318.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006512/0.2676, allocations: 155.7 kB / 318.7 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005299/0.2729, allocations: 3.036 MB / 321.8 MB, free: 9.328 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/0.2745, allocations: 187.8 kB / 322 MB, free: 9.145 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.953e-05/0.2746, allocations: 47.97 kB / 322 MB, free: 9.098 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.0003844/0.275, allocations: 221.7 kB / 322.2 MB, free: 8.871 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002035/0.2752, allocations: 119.4 kB / 322.3 MB, free: 8.754 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02107/0.2963, allocations: 5.065 MB / 327.4 MB, free: 3.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.2963, allocations: 9.781 kB / 327.4 MB, free: 3.672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.2963, allocations: 0 / 327.4 MB, free: 3.672 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.2963, allocations: 3.984 kB / 327.4 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009653/0.2973, allocations: 0.7664 MB / 328.2 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.2973, allocations: 0 / 328.2 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004997/0.2978, allocations: 91.89 kB / 328.3 MB, free: 2.809 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03937/0.3371, allocations: 7.682 MB / 336 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001703/0.3373, allocations: 23.98 kB / 336 MB, free: 11.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006992/0.3443, allocations: 3.056 MB / 339 MB, free: 7.98 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.3443, allocations: 3.938 kB / 339 MB, free: 7.977 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02744/0.3717, allocations: 5.987 MB / 345 MB, free: 1.961 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002366/0.372, allocations: 71.5 kB / 345.1 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001615/0.3721, allocations: 16 kB / 345.1 MB, free: 1.875 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/0.3736, allocations: 167.8 kB / 345.3 MB, free: 1.711 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003236/0.3739, allocations: 104.8 kB / 345.4 MB, free: 1.609 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.964e-05/0.374, allocations: 27.98 kB / 345.4 MB, free: 1.582 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005014/0.3745, allocations: 350.8 kB / 345.7 MB, free: 1.238 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3745, allocations: 0 / 345.7 MB, free: 1.238 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008946/0.3754, allocations: 259.9 kB / 346 MB, free: 0.9844 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.0003213/0.3757, allocations: 138.6 kB / 346.1 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.006705/0.3824, allocations: 2.026 MB / 348.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.3824, allocations: 1.375 kB / 348.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003727/0.3862, allocations: 1.012 MB / 349.2 MB, free: 13.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007478/0.3869, allocations: 152.3 kB / 349.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004063/0.391, allocations: 1.795 MB / 351.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003882/0.3914, allocations: 353.7 kB / 351.5 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002694/0.3916, allocations: 54.23 kB / 351.5 MB, free: 11.4 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/0.3918, allocations: 40.5 kB / 351.6 MB, free: 11.36 MB / 298.7 MB Notification: Performance of SimCode: time 8.91e-07/0.3918, allocations: 4 kB / 351.6 MB, free: 11.36 MB / 298.7 MB Notification: Performance of Templates: time 0.03428/0.4261, allocations: 18.93 MB / 370.5 MB, free: 8.598 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=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.577413219027221]