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.001358/0.001358, allocations: 80.92 kB / 21.49 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.00124/0.00124, allocations: 169 kB / 24.91 MB, free: 8.723 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.8884/0.8884, allocations: 177.1 MB / 205.3 MB, free: 4.488 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 1.533e-06/1.533e-06, allocations: 0 / 273.5 MB, free: 4.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.135e-05/2.288e-05, allocations: 2.312 kB / 273.5 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.008536/0.008558, allocations: 4.782 MB / 278.3 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005461/0.01402, allocations: 1.33 MB / 279.6 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003038/0.01432, allocations: 11.94 kB / 279.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002585/0.01458, allocations: 126.7 kB / 279.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00347/0.01805, allocations: 273.4 kB / 280 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000685/0.01874, allocations: 315.4 kB / 280.3 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000969/0.01971, allocations: 1.141 MB / 281.4 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.01999, allocations: 189 kB / 281.6 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006396/0.02063, allocations: 0.6158 MB / 282.2 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00349/0.02412, allocations: 367 kB / 282.6 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00013/0.02425, allocations: 92 kB / 282.7 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001822/0.02443, allocations: 111.9 kB / 282.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001524/0.02458, allocations: 199.3 kB / 283 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003105/0.02489, allocations: 331.2 kB / 283.3 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007298/0.02562, allocations: 0.7162 MB / 284 MB, free: 9.801 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.02563, allocations: 0 / 284 MB, free: 9.801 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.02563, allocations: 4 kB / 284 MB, free: 9.797 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.646e-06/0.02564, allocations: 0 / 284 MB, free: 9.797 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.004527/0.03016, allocations: 1.157 MB / 285.2 MB, free: 8.594 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.0302, allocations: 8.031 kB / 285.2 MB, free: 8.586 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.03035, allocations: 112.8 kB / 285.3 MB, free: 8.477 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004563/0.0308, allocations: 349.4 kB / 285.7 MB, free: 8.105 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.698e-05/0.03084, allocations: 45.69 kB / 285.7 MB, free: 8.062 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.027e-05/0.03093, allocations: 68.38 kB / 285.8 MB, free: 7.996 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006505/0.03158, allocations: 0.5742 MB / 286.3 MB, free: 7.383 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.652e-05/0.0316, allocations: 192 / 286.3 MB, free: 7.383 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.647e-05/0.03164, allocations: 24.38 kB / 286.4 MB, free: 7.359 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.508e-05/0.03166, allocations: 19.94 kB / 286.4 MB, free: 7.34 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003651/0.03202, allocations: 222.2 kB / 286.6 MB, free: 7.125 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002184/0.03421, allocations: 1.453 MB / 288.1 MB, free: 5.613 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004092/0.03462, allocations: 268.3 kB / 288.3 MB, free: 5.34 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001638/0.03478, allocations: 118.3 kB / 288.4 MB, free: 5.223 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.743e-05/0.03482, allocations: 12.48 kB / 288.4 MB, free: 5.211 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003649/0.03518, allocations: 399 kB / 288.8 MB, free: 4.766 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.774e-06/0.03518, allocations: 0 / 288.8 MB, free: 4.766 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.02391/0.05909, allocations: 10.69 MB / 299.5 MB, free: 10.02 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.793e-05/0.05916, allocations: 141.5 kB / 299.7 MB, free: 9.848 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003415/0.0595, allocations: 482.9 kB / 300.1 MB, free: 9.363 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.852e-05/0.05958, allocations: 41.7 kB / 300.2 MB, free: 9.316 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.05977, allocations: 337.9 kB / 300.5 MB, free: 8.98 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002137/0.05998, allocations: 329.1 kB / 300.8 MB, free: 8.656 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000309/0.06029, allocations: 182.5 kB / 301 MB, free: 8.473 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.06043, allocations: 406.5 kB / 301.4 MB, free: 8.066 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003651/0.06079, allocations: 237.6 kB / 301.6 MB, free: 7.824 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004159/0.06121, allocations: 0.5504 MB / 302.2 MB, free: 7.152 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006787/0.06189, allocations: 0.7556 MB / 302.9 MB, free: 6.305 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.06189, allocations: 0 / 302.9 MB, free: 6.305 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.006791/0.06868, allocations: 3.097 MB / 306 MB, free: 3.164 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.972e-05/0.06873, allocations: 67.39 kB / 306.1 MB, free: 3.086 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.06874, allocations: 7.984 kB / 306.1 MB, free: 3.078 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01206/0.08081, allocations: 5.042 MB / 311.2 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002627/0.08107, allocations: 123.8 kB / 311.3 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009087/0.09016, allocations: 5.422 MB / 316.7 MB, free: 8.355 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007013/0.09086, allocations: 123.9 kB / 316.8 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.181e-05/0.09091, allocations: 39.97 kB / 316.9 MB, free: 8.195 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): 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.000246/0.09115, allocations: 173.6 kB / 317 MB, free: 8.016 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.09127, allocations: 79.97 kB / 317.1 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006051/0.09732, allocations: 2.834 MB / 319.9 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.986e-06/0.09733, allocations: 8 kB / 319.9 MB, free: 5.078 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.09733, allocations: 8 kB / 320 MB, free: 5.07 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.391e-05/0.09735, allocations: 3.984 kB / 320 MB, free: 5.066 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006011/0.09795, allocations: 0.516 MB / 320.5 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.09795, allocations: 0 / 320.5 MB, free: 4.531 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001526/0.0981, allocations: 59.95 kB / 320.5 MB, free: 4.473 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01151/0.1096, allocations: 5.006 MB / 325.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/0.1097, allocations: 31.97 kB / 325.6 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007866/0.1176, allocations: 5.272 MB / 330.8 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1176, allocations: 4.125 kB / 330.8 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006503/0.1241, allocations: 3.012 MB / 333.9 MB, free: 6.977 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001493/0.1242, allocations: 67.42 kB / 333.9 MB, free: 6.91 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.853e-05/0.1243, allocations: 20.03 kB / 333.9 MB, free: 6.891 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004178/0.1247, allocations: 111.9 kB / 334 MB, free: 6.781 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002299/0.125, allocations: 112.8 kB / 334.2 MB, free: 6.672 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.504e-05/0.125, allocations: 23.97 kB / 334.2 MB, free: 6.648 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001526/0.1252, allocations: 212.4 kB / 334.4 MB, free: 6.441 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1252, allocations: 0 / 334.4 MB, free: 6.441 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007868/0.126, allocations: 355.9 kB / 334.7 MB, free: 6.094 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): 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.0001977/0.1262, allocations: 112.3 kB / 334.8 MB, free: 5.973 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001877/0.128, allocations: 1.382 MB / 336.2 MB, free: 4.535 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/0.128, allocations: 8 kB / 336.2 MB, free: 4.527 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.129, allocations: 0.8103 MB / 337 MB, free: 3.707 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.1294, allocations: 154.1 kB / 337.2 MB, free: 3.555 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001945/0.1314, allocations: 1.455 MB / 338.7 MB, free: 2.066 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.1315, allocations: 184.6 kB / 338.8 MB, free: 1.863 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001369/0.1316, allocations: 58.22 kB / 338.9 MB, free: 1.805 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002361/0.1318, allocations: 173.2 kB / 339.1 MB, free: 1.637 MB / 314.7 MB Notification: Performance of SimCode: time 1.072e-06/0.1318, allocations: 0 / 339.1 MB, free: 1.637 MB / 314.7 MB Notification: Performance of Templates: time 0.1327/0.2645, allocations: 29.75 MB / 368.8 MB, free: 83.49 MB / 330.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 -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.3497531567700207]