Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.0009458/0.0009458, allocations: 80.8 kB / 21.5 MB, free: 2.996 MB / 18.57 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.001157/0.001157, allocations: 171.4 kB / 24.92 MB, free: 9.199 MB / 18.57 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 0.9854/0.9854, allocations: 177.1 MB / 205.3 MB, free: 5.508 MB / 186.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.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.404e-06/2.404e-06, allocations: 4 kB / 273.5 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.977e-05/2.217e-05, allocations: 2.312 kB / 273.5 MB, free: 1.246 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.003949/0.003971, allocations: 4.843 MB / 278.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002005/0.005976, allocations: 1.318 MB / 279.7 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002412/0.006217, allocations: 19.88 kB / 279.7 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002078/0.006425, allocations: 118.7 kB / 279.8 MB, free: 10.92 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003386/0.006764, allocations: 277.4 kB / 280.1 MB, free: 10.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000514/0.007278, allocations: 315.3 kB / 280.4 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000757/0.008035, allocations: 1.138 MB / 281.5 MB, free: 9.195 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.008259, allocations: 196.9 kB / 281.7 MB, free: 8.984 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004961/0.008755, allocations: 0.6081 MB / 282.3 MB, free: 8.375 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003374/0.009092, allocations: 367 kB / 282.7 MB, free: 8.016 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.615e-05/0.009178, allocations: 88 kB / 282.8 MB, free: 7.93 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001508/0.009329, allocations: 120 kB / 282.9 MB, free: 7.812 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.009436, allocations: 207.2 kB / 283.1 MB, free: 7.609 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002004/0.009636, allocations: 323.2 kB / 283.4 MB, free: 7.293 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005019/0.01014, allocations: 0.7162 MB / 284.1 MB, free: 6.574 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.315e-06/0.01014, allocations: 0 / 284.1 MB, free: 6.574 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.01014, allocations: 0 / 284.1 MB, free: 6.574 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.01015, allocations: 4 kB / 284.1 MB, free: 6.57 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.001141/0.01129, allocations: 1.157 MB / 285.3 MB, free: 5.367 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.789e-05/0.01132, allocations: 12.03 kB / 285.3 MB, free: 5.355 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.01143, allocations: 116.8 kB / 285.4 MB, free: 5.242 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.01177, allocations: 341.5 kB / 285.7 MB, free: 4.879 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.0118, allocations: 45.69 kB / 285.8 MB, free: 4.836 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.309e-05/0.01186, allocations: 68.38 kB / 285.9 MB, free: 4.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004944/0.01235, allocations: 0.5703 MB / 286.4 MB, free: 4.16 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.01237, allocations: 192 / 286.4 MB, free: 4.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.435e-05/0.0124, allocations: 28.38 kB / 286.5 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.01241, allocations: 15.94 kB / 286.5 MB, free: 4.117 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003764/0.01279, allocations: 222.3 kB / 286.7 MB, free: 3.902 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002127/0.01492, allocations: 1.457 MB / 288.1 MB, free: 2.387 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000355/0.01527, allocations: 256.4 kB / 288.4 MB, free: 2.125 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/0.01541, allocations: 119 kB / 288.5 MB, free: 2.008 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.01544, allocations: 12.44 kB / 288.5 MB, free: 1.996 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003277/0.01577, allocations: 406.8 kB / 288.9 MB, free: 1.543 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.833e-06/0.01577, allocations: 0 / 288.9 MB, free: 1.543 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1256/0.1414, allocations: 10.69 MB / 299.6 MB, free: 24.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.404e-05/0.1414, allocations: 145.2 kB / 299.8 MB, free: 24.69 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002908/0.1417, allocations: 486.6 kB / 300.2 MB, free: 24.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.553e-05/0.1418, allocations: 44.3 kB / 300.3 MB, free: 24.47 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.1419, allocations: 333.5 kB / 300.6 MB, free: 24.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.1421, allocations: 335.1 kB / 300.9 MB, free: 24.05 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000208/0.1423, allocations: 179.8 kB / 301.1 MB, free: 24.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.624e-05/0.1424, allocations: 393.5 kB / 301.5 MB, free: 23.67 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002519/0.1426, allocations: 241.6 kB / 301.7 MB, free: 23.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003234/0.1429, allocations: 0.5437 MB / 302.3 MB, free: 23.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006128/0.1435, allocations: 0.7588 MB / 303 MB, free: 22.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.1435, allocations: 3.984 kB / 303 MB, free: 22.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.006527/0.1501, allocations: 3.102 MB / 306.1 MB, free: 19.97 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.554e-05/0.1501, allocations: 63.39 kB / 306.2 MB, free: 19.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.1501, allocations: 7.828 kB / 306.2 MB, free: 19.89 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01148/0.1616, allocations: 5.048 MB / 311.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003017/0.1619, allocations: 127.7 kB / 311.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007857/0.1698, allocations: 5.435 MB / 316.8 MB, free: 9.645 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006412/0.1704, allocations: 123.4 kB / 316.9 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.492e-05/0.1705, allocations: 39.97 kB / 317 MB, free: 9.488 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,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.000206/0.1707, allocations: 177.6 kB / 317.1 MB, free: 9.305 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.1708, allocations: 79.92 kB / 317.2 MB, free: 9.227 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006681/0.1775, allocations: 2.824 MB / 320 MB, free: 6.398 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.1775, allocations: 8 kB / 320 MB, free: 6.391 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.1775, allocations: 8 kB / 320.1 MB, free: 6.383 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/0.1775, allocations: 3.984 kB / 320.1 MB, free: 6.379 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006362/0.1781, allocations: 0.5188 MB / 320.6 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.1781, allocations: 0 / 320.6 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002402/0.1784, allocations: 74.31 kB / 320.7 MB, free: 5.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01483/0.1932, allocations: 4.995 MB / 325.6 MB, free: 0.832 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.621e-05/0.1933, allocations: 23.97 kB / 325.7 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0104/0.2037, allocations: 5.289 MB / 331 MB, free: 11.49 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2037, allocations: 0 / 331 MB, free: 11.49 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008904/0.2126, allocations: 3.012 MB / 334 MB, free: 8.484 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001833/0.2128, allocations: 71.41 kB / 334 MB, free: 8.414 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001165/0.2129, allocations: 20 kB / 334.1 MB, free: 8.395 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005866/0.2135, allocations: 111.9 kB / 334.2 MB, free: 8.285 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003568/0.2138, allocations: 108.8 kB / 334.3 MB, free: 8.18 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.785e-05/0.2139, allocations: 23.98 kB / 334.3 MB, free: 8.156 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002089/0.2141, allocations: 211.1 kB / 334.5 MB, free: 7.973 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2141, allocations: 0 / 334.5 MB, free: 7.973 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001027/0.2152, allocations: 360 kB / 334.9 MB, free: 7.621 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): 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.0002252/0.2154, allocations: 112.3 kB / 335 MB, free: 7.504 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002544/0.2179, allocations: 1.383 MB / 336.3 MB, free: 6.094 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.831e-05/0.2179, allocations: 12.06 kB / 336.4 MB, free: 6.082 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001593/0.2195, allocations: 0.8037 MB / 337.2 MB, free: 5.273 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004713/0.22, allocations: 149.9 kB / 337.3 MB, free: 5.137 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002666/0.2227, allocations: 1.452 MB / 338.8 MB, free: 3.66 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001689/0.2228, allocations: 193.3 kB / 339 MB, free: 3.453 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002334/0.2231, allocations: 57.28 kB / 339 MB, free: 3.398 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003232/0.2234, allocations: 165.3 kB / 339.2 MB, free: 3.242 MB / 282.7 MB Notification: Performance of SimCode: time 1.603e-06/0.2234, allocations: 0 / 339.2 MB, free: 3.242 MB / 282.7 MB Notification: Performance of Templates: time 0.03256/0.256, allocations: 29.81 MB / 369 MB, free: 5.676 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.415306193754077]