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.001093/0.001093, allocations: 68.08 kB / 21.69 MB, free: 2.855 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.001012/0.001012, allocations: 144 kB / 24.97 MB, free: 8.777 MB / 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.9897/0.9897, allocations: 173.4 MB / 201.5 MB, free: 8.457 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.392e-06/1.392e-06, allocations: 0 / 268.1 MB, free: 10.36 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.389e-05/2.528e-05, allocations: 2.312 kB / 268.1 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.004156/0.004181, allocations: 4.828 MB / 272.9 MB, free: 5.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001951/0.006132, allocations: 1.258 MB / 274.2 MB, free: 4.262 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002881/0.00642, allocations: 11.94 kB / 274.2 MB, free: 4.25 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002424/0.006662, allocations: 122.7 kB / 274.3 MB, free: 4.129 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003589/0.007021, allocations: 281.2 kB / 274.6 MB, free: 3.855 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005843/0.007606, allocations: 311.4 kB / 274.9 MB, free: 3.551 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008495/0.008455, allocations: 1.134 MB / 276 MB, free: 2.414 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002733/0.008728, allocations: 186.9 kB / 276.2 MB, free: 2.215 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006043/0.009333, allocations: 0.6119 MB / 276.8 MB, free: 1.602 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003788/0.009711, allocations: 367 kB / 277.2 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.009818, allocations: 88 kB / 277.3 MB, free: 1.156 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.00997, allocations: 124 kB / 277.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.01008, allocations: 203.2 kB / 277.6 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002215/0.0103, allocations: 319.2 kB / 277.9 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006189/0.01092, allocations: 0.7203 MB / 278.6 MB, free: 15.8 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.01092, allocations: 0 / 278.6 MB, free: 15.8 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.01093, allocations: 0 / 278.6 MB, free: 15.8 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.01094, allocations: 0 / 278.6 MB, free: 15.8 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.001457/0.01239, allocations: 1.27 MB / 279.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.01243, allocations: 12.03 kB / 279.9 MB, free: 14.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001778/0.01261, allocations: 144.4 kB / 280 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004702/0.01308, allocations: 436.1 kB / 280.5 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.271e-05/0.01311, allocations: 49.69 kB / 280.5 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.685e-05/0.01319, allocations: 64.38 kB / 280.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007101/0.0139, allocations: 0.6055 MB / 281.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.01392, allocations: 4.188 kB / 281.2 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.428e-05/0.01396, allocations: 24.38 kB / 281.2 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/0.01398, allocations: 15.94 kB / 281.2 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004982/0.01447, allocations: 327.6 kB / 281.5 MB, free: 12.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002166/0.01664, allocations: 1.757 MB / 283.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005026/0.01714, allocations: 342.1 kB / 283.6 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002105/0.01735, allocations: 155.1 kB / 283.8 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.01739, allocations: 16.5 kB / 283.8 MB, free: 10.4 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003834/0.01777, allocations: 424 kB / 284.2 MB, free: 9.926 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.603e-06/0.01778, allocations: 0 / 284.2 MB, free: 9.926 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.02511/0.04289, allocations: 9.818 MB / 294 MB, free: 48 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.04299, allocations: 141.5 kB / 294.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005501/0.04354, allocations: 0.5336 MB / 294.7 MB, free: 15.33 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.04365, allocations: 49.69 kB / 294.7 MB, free: 15.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002167/0.04387, allocations: 439.4 kB / 295.2 MB, free: 14.84 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002112/0.04408, allocations: 325.2 kB / 295.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000243/0.04432, allocations: 192.1 kB / 295.7 MB, free: 14.32 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.04451, allocations: 0.5547 MB / 296.2 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005209/0.04503, allocations: 349.5 kB / 296.6 MB, free: 13.4 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007013/0.04573, allocations: 0.7303 MB / 297.3 MB, free: 12.52 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.04682, allocations: 0.9828 MB / 298.3 MB, free: 11.41 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.77e-06/0.04682, allocations: 0 / 298.3 MB, free: 11.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01176/0.05859, allocations: 3.526 MB / 301.8 MB, free: 7.84 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.258e-05/0.05867, allocations: 69.73 kB / 301.9 MB, free: 7.762 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.05869, allocations: 8 kB / 301.9 MB, free: 7.754 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01855/0.07724, allocations: 5.187 MB / 307.1 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003403/0.07758, allocations: 127.8 kB / 307.2 MB, free: 2.426 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002953/0.08053, allocations: 2.645 MB / 309.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006837/0.08122, allocations: 120 kB / 310 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.888e-05/0.08128, allocations: 47.97 kB / 310 MB, free: 15.55 MB / 298.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.0002779/0.08156, allocations: 212.4 kB / 310.2 MB, free: 15.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001604/0.08172, allocations: 123.4 kB / 310.3 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00787/0.08959, allocations: 3.181 MB / 313.5 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.0896, allocations: 12 kB / 313.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.08961, allocations: 0 / 313.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.08962, allocations: 3.984 kB / 313.5 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006994/0.09032, allocations: 0.6755 MB / 314.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.09032, allocations: 0 / 314.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001828/0.0905, allocations: 63.88 kB / 314.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01483/0.1053, allocations: 5.141 MB / 319.4 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.25e-05/0.1054, allocations: 31.84 kB / 319.4 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002357/0.1078, allocations: 2.591 MB / 322 MB, free: 3.363 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1078, allocations: 3.938 kB / 322 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008298/0.1161, allocations: 3.486 MB / 325.5 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.638e-05/0.1161, allocations: 75.5 kB / 325.6 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001093/0.1163, allocations: 16 kB / 325.6 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004739/0.1167, allocations: 108 kB / 325.7 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.1169, allocations: 96.77 kB / 325.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.291e-05/0.117, allocations: 31.97 kB / 325.8 MB, free: 15.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000226/0.1172, allocations: 346.8 kB / 326.2 MB, free: 15.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1172, allocations: 4 kB / 326.2 MB, free: 15.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005713/0.1178, allocations: 259.9 kB / 326.4 MB, free: 14.92 MB / 314.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.000204/0.118, allocations: 125.8 kB / 326.6 MB, free: 14.79 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00219/0.1201, allocations: 1.319 MB / 327.9 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1202, allocations: 0 / 327.9 MB, free: 13.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001276/0.1214, allocations: 0.6662 MB / 328.6 MB, free: 12.77 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004451/0.1219, allocations: 154.1 kB / 328.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.1239, allocations: 1.476 MB / 330.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.996e-05/0.124, allocations: 160 kB / 330.3 MB, free: 10.93 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001449/0.1242, allocations: 54.23 kB / 330.4 MB, free: 10.88 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.488e-05/0.1243, allocations: 44.5 kB / 330.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of SimCode: time 9.92e-07/0.1243, allocations: 0 / 330.4 MB, free: 10.83 MB / 314.7 MB Notification: Performance of Templates: time 0.02003/0.1443, allocations: 19 MB / 349.4 MB, free: 7.957 MB / 330.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.6789554639253765]