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.00246/0.00246, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002997/0.002997, allocations: 165.3 kB / 24.27 MB, free: 160 kB / 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 1.578/1.578, allocations: 177.2 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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.302e-06/1.302e-06, allocations: 0 / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.677e-05/2.807e-05, allocations: 6.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.007048/0.007077, allocations: 4.833 MB / 277.2 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002993/0.01007, allocations: 1.264 MB / 278.4 MB, free: 11.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003521/0.01042, allocations: 15.88 kB / 278.5 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003135/0.01073, allocations: 122.8 kB / 278.6 MB, free: 11.56 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005773/0.01131, allocations: 281.3 kB / 278.8 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007953/0.01211, allocations: 315.4 kB / 279.2 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00138/0.01349, allocations: 1.13 MB / 280.3 MB, free: 9.84 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003621/0.01385, allocations: 183 kB / 280.5 MB, free: 9.648 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008453/0.01469, allocations: 0.612 MB / 281.1 MB, free: 9.035 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005856/0.01528, allocations: 367 kB / 281.4 MB, free: 8.676 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001512/0.01543, allocations: 88 kB / 281.5 MB, free: 8.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002447/0.01568, allocations: 115.9 kB / 281.6 MB, free: 8.477 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004352/0.01611, allocations: 207.2 kB / 281.8 MB, free: 8.273 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004142/0.01653, allocations: 327.2 kB / 282.2 MB, free: 7.953 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001343/0.01787, allocations: 1.094 MB / 283.2 MB, free: 6.855 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.01787, allocations: 0 / 283.2 MB, free: 6.855 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.01787, allocations: 0 / 283.2 MB, free: 6.855 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.01789, allocations: 0 / 283.2 MB, free: 6.855 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.002677/0.02056, allocations: 1.321 MB / 284.6 MB, free: 5.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.0206, allocations: 12.03 kB / 284.6 MB, free: 5.469 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002649/0.02087, allocations: 148.3 kB / 284.7 MB, free: 5.324 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007601/0.02163, allocations: 444.1 kB / 285.2 MB, free: 4.859 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.244e-05/0.02168, allocations: 45.69 kB / 285.2 MB, free: 4.816 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.0218, allocations: 68.38 kB / 285.3 MB, free: 4.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.0232, allocations: 0.7337 MB / 286 MB, free: 3.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.465e-05/0.02322, allocations: 4.141 kB / 286 MB, free: 3.977 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.312e-05/0.02329, allocations: 28.38 kB / 286 MB, free: 3.949 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.02331, allocations: 19.94 kB / 286.1 MB, free: 3.93 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/0.02478, allocations: 0.6142 MB / 286.7 MB, free: 3.312 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004153/0.02894, allocations: 2.008 MB / 288.7 MB, free: 1.23 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001544/0.03048, allocations: 0.5093 MB / 289.2 MB, free: 0.707 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006296/0.03111, allocations: 283.3 kB / 289.5 MB, free: 440 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.62e-05/0.03117, allocations: 8.5 kB / 289.5 MB, free: 432 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1192/0.1504, allocations: 0.5405 MB / 290 MB, free: 28.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.575e-06/0.1504, allocations: 0.5 kB / 290 MB, free: 28.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.05772/0.2081, allocations: 11.82 MB / 301.8 MB, free: 24.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.386e-05/0.2081, allocations: 145.5 kB / 302 MB, free: 24.6 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000576/0.2087, allocations: 0.6613 MB / 302.6 MB, free: 23.94 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001547/0.2089, allocations: 45.69 kB / 302.7 MB, free: 23.89 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002051/0.2091, allocations: 470.7 kB / 303.1 MB, free: 23.46 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002088/0.2093, allocations: 347.2 kB / 303.5 MB, free: 23.13 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003359/0.2096, allocations: 212.2 kB / 303.7 MB, free: 22.91 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.2097, allocations: 0.5977 MB / 304.3 MB, free: 22.3 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001382/0.2111, allocations: 0.6888 MB / 305 MB, free: 21.6 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001493/0.2126, allocations: 1.101 MB / 306.1 MB, free: 20.35 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002725/0.2153, allocations: 1.662 MB / 307.7 MB, free: 18.56 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.2154, allocations: 4 kB / 307.7 MB, free: 18.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01843/0.2338, allocations: 4.467 MB / 312.2 MB, free: 14.05 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.422e-05/0.2338, allocations: 64.03 kB / 312.3 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.2339, allocations: 11.98 kB / 312.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03058/0.2644, allocations: 5.645 MB / 317.9 MB, free: 8.305 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000539/0.265, allocations: 123.8 kB / 318 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005586/0.2706, allocations: 3.539 MB / 321.6 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/0.272, allocations: 119.9 kB / 321.7 MB, free: 4.465 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.2721, allocations: 43.98 kB / 321.7 MB, free: 4.422 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.0003854/0.2725, allocations: 280.3 kB / 322 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.2727, allocations: 112.1 kB / 322.1 MB, free: 4.027 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01789/0.2906, allocations: 4.089 MB / 326.2 MB, free: 15.92 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.247e-05/0.2906, allocations: 8 kB / 326.2 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.2906, allocations: 3.984 kB / 326.2 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-05/0.2906, allocations: 7.875 kB / 326.2 MB, free: 15.9 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001677/0.2923, allocations: 0.8543 MB / 327.1 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.2923, allocations: 3.938 kB / 327.1 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003956/0.2927, allocations: 67.88 kB / 327.2 MB, free: 14.97 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03458/0.3273, allocations: 5.586 MB / 332.7 MB, free: 9.371 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000212/0.3275, allocations: 23.97 kB / 332.8 MB, free: 9.348 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006443/0.3339, allocations: 3.469 MB / 336.2 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.3339, allocations: 3.984 kB / 336.2 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02188/0.3558, allocations: 4.911 MB / 341.2 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002345/0.3561, allocations: 68.47 kB / 341.2 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001759/0.3562, allocations: 19.98 kB / 341.2 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001135/0.3574, allocations: 111.9 kB / 341.4 MB, free: 0.668 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002996/0.3577, allocations: 104.8 kB / 341.5 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.82e-05/0.3578, allocations: 32.84 kB / 341.5 MB, free: 0.5312 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000524/0.3583, allocations: 422.8 kB / 341.9 MB, free: 120 kB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3583, allocations: 0 / 341.9 MB, free: 120 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008306/0.3591, allocations: 264 kB / 342.2 MB, free: 15.86 MB / 298.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.0002622/0.3594, allocations: 129.9 kB / 342.3 MB, free: 15.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.006293/0.3657, allocations: 2.008 MB / 344.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.3657, allocations: 0 / 344.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003336/0.369, allocations: 1.001 MB / 345.3 MB, free: 12.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008158/0.3698, allocations: 150.7 kB / 345.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004166/0.374, allocations: 1.728 MB / 347.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.3744, allocations: 357.7 kB / 347.5 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002648/0.3746, allocations: 52.95 kB / 347.6 MB, free: 10.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.3748, allocations: 40.5 kB / 347.6 MB, free: 10.32 MB / 298.7 MB Notification: Performance of SimCode: time 1.543e-06/0.3748, allocations: 0 / 347.6 MB, free: 10.32 MB / 298.7 MB Notification: Performance of Templates: time 0.03266/0.4074, allocations: 19.05 MB / 366.7 MB, free: 7.441 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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.HeatingNPN_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.85242620005738]