Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009878/0.0009878, allocations: 81.91 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001001/0.001001, allocations: 161 kB / 24.82 MB, free: 8.922 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.026/1.026, allocations: 177 MB / 205.1 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.124e-06/2.124e-06, allocations: 0 / 273.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.355e-05/2.568e-05, allocations: 2.312 kB / 273.4 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.004787/0.004813, allocations: 4.794 MB / 278.1 MB, free: 12.39 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002491/0.007304, allocations: 1.264 MB / 279.4 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004917/0.007796, allocations: 15.94 kB / 279.4 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002932/0.008089, allocations: 126.7 kB / 279.6 MB, free: 10.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005201/0.008609, allocations: 277.4 kB / 279.8 MB, free: 10.7 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007602/0.00937, allocations: 319.3 kB / 280.1 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00116/0.01053, allocations: 1.13 MB / 281.3 MB, free: 9.258 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002976/0.01083, allocations: 190.9 kB / 281.5 MB, free: 9.059 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001115/0.01194, allocations: 0.6081 MB / 282.1 MB, free: 8.449 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005166/0.01246, allocations: 367 kB / 282.4 MB, free: 8.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001907/0.01265, allocations: 92 kB / 282.5 MB, free: 8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001904/0.01284, allocations: 116 kB / 282.6 MB, free: 7.887 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.01296, allocations: 207.2 kB / 282.8 MB, free: 7.684 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002496/0.01321, allocations: 319.2 kB / 283.1 MB, free: 7.371 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007875/0.01399, allocations: 0.7201 MB / 283.9 MB, free: 6.648 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.014, allocations: 0 / 283.9 MB, free: 6.648 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.014, allocations: 0 / 283.9 MB, free: 6.648 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.258e-05/0.01402, allocations: 0 / 283.9 MB, free: 6.648 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.001733/0.01576, allocations: 1.286 MB / 285.1 MB, free: 5.309 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.0158, allocations: 11.98 kB / 285.2 MB, free: 5.297 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001845/0.01599, allocations: 152.3 kB / 285.3 MB, free: 5.148 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/0.01646, allocations: 428.2 kB / 285.7 MB, free: 4.703 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/0.01649, allocations: 45.69 kB / 285.8 MB, free: 4.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.936e-05/0.01658, allocations: 68.33 kB / 285.8 MB, free: 4.594 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006342/0.01722, allocations: 0.5625 MB / 286.4 MB, free: 3.988 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/0.01723, allocations: 192 / 286.4 MB, free: 3.988 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.417e-05/0.01728, allocations: 24.38 kB / 286.4 MB, free: 3.965 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.01729, allocations: 23.94 kB / 286.4 MB, free: 3.941 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003288/0.01762, allocations: 258.2 kB / 286.7 MB, free: 3.688 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002101/0.01972, allocations: 1.785 MB / 288.5 MB, free: 1.828 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003786/0.0201, allocations: 300 kB / 288.8 MB, free: 1.527 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.02024, allocations: 137 kB / 288.9 MB, free: 1.391 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.33e-05/0.02029, allocations: 20.48 kB / 288.9 MB, free: 1.371 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005546/0.02084, allocations: 411.8 kB / 289.3 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.994e-06/0.02084, allocations: 3.938 kB / 289.3 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1533/0.1742, allocations: 9.45 MB / 298.8 MB, free: 25.27 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.746e-05/0.1742, allocations: 141.7 kB / 298.9 MB, free: 25.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004081/0.1746, allocations: 0.5298 MB / 299.4 MB, free: 24.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.652e-05/0.1747, allocations: 46.86 kB / 299.5 MB, free: 24.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.1749, allocations: 446 kB / 299.9 MB, free: 24.55 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002038/0.1751, allocations: 330.2 kB / 300.3 MB, free: 24.35 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002497/0.1753, allocations: 195.9 kB / 300.4 MB, free: 24.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1755, allocations: 0.5594 MB / 301 MB, free: 23.78 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003398/0.1758, allocations: 283.2 kB / 301.3 MB, free: 23.67 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003676/0.1762, allocations: 0.6745 MB / 302 MB, free: 23.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006559/0.1768, allocations: 0.8651 MB / 302.8 MB, free: 22.65 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.359e-06/0.1768, allocations: 4 kB / 302.8 MB, free: 22.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.007083/0.1839, allocations: 3.368 MB / 306.2 MB, free: 19.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.729e-05/0.184, allocations: 63.22 kB / 306.3 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.184, allocations: 8 kB / 306.3 MB, free: 19.79 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01376/0.1977, allocations: 5.164 MB / 311.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003644/0.1981, allocations: 119.8 kB / 311.5 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002592/0.2007, allocations: 2.577 MB / 314.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008152/0.2015, allocations: 123.8 kB / 314.2 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.61e-05/0.2016, allocations: 39.97 kB / 314.3 MB, free: 11.78 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.0002568/0.2018, allocations: 215.4 kB / 314.5 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.202, allocations: 123.4 kB / 314.6 MB, free: 11.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008536/0.2105, allocations: 3.043 MB / 317.7 MB, free: 8.387 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.445e-05/0.2106, allocations: 12 kB / 317.7 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-06/0.2106, allocations: 0 / 317.7 MB, free: 8.375 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.2106, allocations: 7.969 kB / 317.7 MB, free: 8.367 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008123/0.2114, allocations: 0.5933 MB / 318.3 MB, free: 7.816 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.2114, allocations: 0 / 318.3 MB, free: 7.816 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002072/0.2116, allocations: 59.95 kB / 318.3 MB, free: 7.758 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01582/0.2274, allocations: 5.107 MB / 323.4 MB, free: 2.648 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001268/0.2275, allocations: 23.97 kB / 323.5 MB, free: 2.625 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002197/0.2297, allocations: 2.493 MB / 325.9 MB, free: 104 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.2297, allocations: 7.312 kB / 326 MB, free: 100 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009814/0.2396, allocations: 3.269 MB / 329.2 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/0.2397, allocations: 75.19 kB / 329.3 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.2398, allocations: 16 kB / 329.3 MB, free: 12.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006288/0.2405, allocations: 119.9 kB / 329.4 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001863/0.2407, allocations: 84.83 kB / 329.5 MB, free: 12.53 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.84e-05/0.2407, allocations: 27.97 kB / 329.5 MB, free: 12.5 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002346/0.241, allocations: 323.5 kB / 329.9 MB, free: 12.21 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.241, allocations: 0 / 329.9 MB, free: 12.21 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007129/0.2417, allocations: 263.9 kB / 330.1 MB, free: 11.95 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): 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.0002127/0.2419, allocations: 130.1 kB / 330.2 MB, free: 11.82 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002369/0.2443, allocations: 1.198 MB / 331.4 MB, free: 10.59 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.2443, allocations: 0 / 331.4 MB, free: 10.59 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00127/0.2455, allocations: 0.5986 MB / 332 MB, free: 10 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005377/0.2461, allocations: 157 kB / 332.2 MB, free: 9.867 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002715/0.2488, allocations: 1.449 MB / 333.6 MB, free: 8.406 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001196/0.2489, allocations: 160 kB / 333.8 MB, free: 8.227 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002023/0.2491, allocations: 56.48 kB / 333.9 MB, free: 8.172 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003187/0.2494, allocations: 198.1 kB / 334 MB, free: 7.977 MB / 282.7 MB Notification: Performance of SimCode: time 8.21e-07/0.2494, allocations: 4 kB / 334 MB, free: 7.973 MB / 282.7 MB Notification: Performance of Templates: time 0.02451/0.2739, allocations: 20.01 MB / 354.1 MB, free: 4.227 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.3725309972651303]