Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.0009682/0.0009682, allocations: 76.08 kB / 21.18 MB, free: 3.383 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.0009065/0.0009065, allocations: 141.1 kB / 24.54 MB, free: 28 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 0.9173/0.9173, allocations: 173.3 MB / 201.1 MB, free: 9.328 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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.889e-05/3.082e-05, allocations: 10.25 kB / 268 MB, free: 6.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.005102/0.005133, allocations: 4.856 MB / 272.9 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003266/0.008399, allocations: 1.248 MB / 274.1 MB, free: 268 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006383/0.009037, allocations: 15.94 kB / 274.1 MB, free: 252 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000308/0.009345, allocations: 126.7 kB / 274.3 MB, free: 124 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006059/0.009951, allocations: 273.5 kB / 274.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009024/0.01085, allocations: 315.3 kB / 274.8 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001369/0.01222, allocations: 1.138 MB / 276 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004301/0.01265, allocations: 186.9 kB / 276.2 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001147/0.0138, allocations: 0.612 MB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005746/0.01437, allocations: 367 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001671/0.01454, allocations: 92 kB / 277.2 MB, free: 13.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002208/0.01476, allocations: 112 kB / 277.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.01489, allocations: 207.2 kB / 277.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002838/0.01517, allocations: 319.2 kB / 277.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008907/0.01607, allocations: 0.7202 MB / 278.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.826e-06/0.01607, allocations: 0 / 278.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.01608, allocations: 0 / 278.6 MB, free: 11.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.496e-05/0.0161, allocations: 0 / 278.6 MB, free: 11.79 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.001783/0.01788, allocations: 1.27 MB / 279.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.01794, allocations: 8.922 kB / 279.8 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002131/0.01815, allocations: 148.3 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009102/0.01906, allocations: 432.2 kB / 280.4 MB, free: 9.867 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.232e-05/0.0191, allocations: 45.69 kB / 280.4 MB, free: 9.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.643e-05/0.0192, allocations: 68.38 kB / 280.5 MB, free: 9.754 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007943/0.01999, allocations: 0.6016 MB / 281.1 MB, free: 9.113 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.02001, allocations: 4.188 kB / 281.1 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.134e-05/0.02005, allocations: 24.38 kB / 281.1 MB, free: 9.086 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.651e-05/0.02007, allocations: 23.94 kB / 281.2 MB, free: 9.062 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005253/0.02059, allocations: 327.5 kB / 281.5 MB, free: 8.742 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002471/0.02306, allocations: 1.754 MB / 283.2 MB, free: 6.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005687/0.02363, allocations: 344.5 kB / 283.6 MB, free: 6.562 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.02386, allocations: 153.1 kB / 283.7 MB, free: 6.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.618e-05/0.0239, allocations: 8.5 kB / 283.7 MB, free: 6.402 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004169/0.02432, allocations: 432 kB / 284.2 MB, free: 5.918 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.164e-06/0.02432, allocations: 3.938 kB / 284.2 MB, free: 5.914 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1695/0.1938, allocations: 9.799 MB / 294 MB, free: 29.32 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.495e-05/0.1939, allocations: 140.9 kB / 294.1 MB, free: 29.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005537/0.1945, allocations: 0.5372 MB / 294.6 MB, free: 28.97 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001265/0.1946, allocations: 47.92 kB / 294.7 MB, free: 28.94 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002114/0.1948, allocations: 448.2 kB / 295.1 MB, free: 28.68 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000213/0.195, allocations: 323.1 kB / 295.4 MB, free: 28.47 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002915/0.1953, allocations: 190.6 kB / 295.6 MB, free: 28.45 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1954, allocations: 0.5514 MB / 296.2 MB, free: 27.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005827/0.196, allocations: 352.2 kB / 296.5 MB, free: 27.89 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006288/0.1966, allocations: 0.7342 MB / 297.2 MB, free: 27.37 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/0.1978, allocations: 0.9746 MB / 298.2 MB, free: 26.96 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.1978, allocations: 2.375 kB / 298.2 MB, free: 26.96 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.008839/0.2066, allocations: 3.526 MB / 301.8 MB, free: 26.47 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.819e-05/0.2067, allocations: 66.56 kB / 301.8 MB, free: 26.4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/0.2067, allocations: 5.469 kB / 301.8 MB, free: 26.4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01332/0.22, allocations: 5.193 MB / 307 MB, free: 23.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003217/0.2203, allocations: 123.8 kB / 307.1 MB, free: 23.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002486/0.2228, allocations: 2.648 MB / 309.8 MB, free: 20.56 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007421/0.2236, allocations: 111.9 kB / 309.9 MB, free: 20.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.583e-05/0.2236, allocations: 55.97 kB / 309.9 MB, free: 20.39 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.0002774/0.2239, allocations: 220.3 kB / 310.2 MB, free: 20.17 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.2241, allocations: 116.5 kB / 310.3 MB, free: 20.05 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007455/0.2315, allocations: 3.174 MB / 313.5 MB, free: 16.86 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.2315, allocations: 12 kB / 313.5 MB, free: 16.85 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.2315, allocations: 4 kB / 313.5 MB, free: 16.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.229e-05/0.2315, allocations: 3.984 kB / 313.5 MB, free: 16.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00072/0.2323, allocations: 0.6765 MB / 314.1 MB, free: 16.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.2323, allocations: 0 / 314.1 MB, free: 16.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000182/0.2325, allocations: 67.88 kB / 314.2 MB, free: 16.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01304/0.2455, allocations: 5.145 MB / 319.4 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/0.2456, allocations: 27.97 kB / 319.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002141/0.2478, allocations: 2.592 MB / 322 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2478, allocations: 0 / 322 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007613/0.2554, allocations: 3.475 MB / 325.5 MB, free: 4.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001651/0.2555, allocations: 74.23 kB / 325.5 MB, free: 4.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.486e-05/0.2556, allocations: 27.94 kB / 325.6 MB, free: 4.652 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004589/0.2561, allocations: 103.9 kB / 325.7 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.2563, allocations: 92.8 kB / 325.7 MB, free: 4.461 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.801e-05/0.2563, allocations: 35.97 kB / 325.8 MB, free: 4.426 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001826/0.2565, allocations: 346.8 kB / 326.1 MB, free: 4.086 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2565, allocations: 0 / 326.1 MB, free: 4.086 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005425/0.257, allocations: 259.9 kB / 326.4 MB, free: 3.832 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): 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.0002002/0.2572, allocations: 124.1 kB / 326.5 MB, free: 3.703 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002637/0.2599, allocations: 1.323 MB / 327.8 MB, free: 2.344 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2599, allocations: 0 / 327.8 MB, free: 2.344 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001367/0.2612, allocations: 0.6587 MB / 328.5 MB, free: 1.688 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005557/0.2618, allocations: 153.9 kB / 328.6 MB, free: 1.547 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002433/0.2642, allocations: 1.491 MB / 330.1 MB, free: 32 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000122/0.2643, allocations: 160 kB / 330.3 MB, free: 15.86 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001882/0.2645, allocations: 56.06 kB / 330.3 MB, free: 15.8 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.2646, allocations: 36.5 kB / 330.4 MB, free: 15.77 MB / 282.7 MB Notification: Performance of SimCode: time 8.12e-07/0.2646, allocations: 0 / 330.4 MB, free: 15.77 MB / 282.7 MB Notification: Performance of Templates: time 0.03693/0.3016, allocations: 19 MB / 349.4 MB, free: 12.95 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingNPN_NORGate/HeatingNPN_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.826414385344833]