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.001074/0.001074, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001247/0.001247, allocations: 160.5 kB / 24.56 MB, free: 16 kB / 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 0.9664/0.9664, allocations: 177 MB / 204.8 MB, free: 5.609 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 1.643e-06/1.643e-06, allocations: 0 / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.808e-05/2.973e-05, allocations: 6.25 kB / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.006039/0.006068, allocations: 4.865 MB / 277.8 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002936/0.009005, allocations: 1.272 MB / 279.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006034/0.009608, allocations: 15.94 kB / 279.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003773/0.009985, allocations: 126.7 kB / 279.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006917/0.01068, allocations: 273.4 kB / 279.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000875/0.01155, allocations: 323.3 kB / 279.8 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00154/0.01309, allocations: 1.134 MB / 280.9 MB, free: 9.414 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003646/0.01346, allocations: 182.9 kB / 281.1 MB, free: 9.223 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009896/0.01445, allocations: 0.6158 MB / 281.7 MB, free: 8.605 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005749/0.01502, allocations: 367 kB / 282.1 MB, free: 8.246 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001961/0.01522, allocations: 88 kB / 282.2 MB, free: 8.16 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002556/0.01547, allocations: 116 kB / 282.3 MB, free: 8.047 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001576/0.01563, allocations: 203.2 kB / 282.5 MB, free: 7.848 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004083/0.01604, allocations: 327.3 kB / 282.8 MB, free: 7.527 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001064/0.0171, allocations: 0.7123 MB / 283.5 MB, free: 6.812 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.01711, allocations: 3.984 kB / 283.5 MB, free: 6.809 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.01711, allocations: 0 / 283.5 MB, free: 6.809 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.574e-05/0.01714, allocations: 0 / 283.5 MB, free: 6.809 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.002165/0.0193, allocations: 1.278 MB / 284.8 MB, free: 5.477 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.01935, allocations: 15.92 kB / 284.8 MB, free: 5.461 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002772/0.01962, allocations: 148.3 kB / 285 MB, free: 5.316 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006802/0.0203, allocations: 424.2 kB / 285.4 MB, free: 4.875 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.457e-05/0.02035, allocations: 49.69 kB / 285.4 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.02046, allocations: 76.31 kB / 285.5 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.02156, allocations: 0.6094 MB / 286.1 MB, free: 4.102 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.02158, allocations: 4.125 kB / 286.1 MB, free: 4.098 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.232e-05/0.02165, allocations: 24.38 kB / 286.1 MB, free: 4.074 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.311e-05/0.02167, allocations: 19.94 kB / 286.2 MB, free: 4.055 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007682/0.02244, allocations: 319.6 kB / 286.5 MB, free: 3.742 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003646/0.02608, allocations: 1.765 MB / 288.2 MB, free: 1.902 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007211/0.0268, allocations: 325.7 kB / 288.5 MB, free: 1.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003277/0.02713, allocations: 165 kB / 288.7 MB, free: 1.406 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.538e-05/0.02718, allocations: 8.5 kB / 288.7 MB, free: 1.398 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005629/0.02774, allocations: 431.9 kB / 289.1 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 2.665e-06/0.02774, allocations: 0 / 289.1 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1393/0.167, allocations: 9.797 MB / 298.9 MB, free: 25.3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.1671, allocations: 146.9 kB / 299.1 MB, free: 25.14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005515/0.1676, allocations: 0.5388 MB / 299.6 MB, free: 24.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001625/0.1678, allocations: 42.2 kB / 299.7 MB, free: 24.85 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001944/0.168, allocations: 443.4 kB / 300.1 MB, free: 24.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000219/0.1682, allocations: 325.2 kB / 300.4 MB, free: 24.39 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002414/0.1684, allocations: 189.8 kB / 300.6 MB, free: 24.33 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.1685, allocations: 0.5518 MB / 301.1 MB, free: 23.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005277/0.1691, allocations: 353.6 kB / 301.5 MB, free: 23.67 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006323/0.1697, allocations: 0.7313 MB / 302.2 MB, free: 23.05 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001144/0.1708, allocations: 0.9815 MB / 303.2 MB, free: 22.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/0.1709, allocations: 0 / 303.2 MB, free: 22.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.01021/0.1811, allocations: 3.523 MB / 306.7 MB, free: 19.06 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.805e-05/0.1811, allocations: 75.45 kB / 306.8 MB, free: 18.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.303e-05/0.1811, allocations: 4 kB / 306.8 MB, free: 18.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01718/0.1983, allocations: 5.19 MB / 312 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003882/0.1987, allocations: 123.8 kB / 312.1 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002993/0.2017, allocations: 2.65 MB / 314.8 MB, free: 10.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000846/0.2025, allocations: 127.8 kB / 314.9 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.389e-05/0.2026, allocations: 43.98 kB / 314.9 MB, free: 10.77 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.0002794/0.2029, allocations: 220.4 kB / 315.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.2031, allocations: 115.4 kB / 315.3 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009939/0.213, allocations: 3.179 MB / 318.4 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.765e-05/0.213, allocations: 12 kB / 318.5 MB, free: 7.219 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.213, allocations: 4 kB / 318.5 MB, free: 7.215 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.684e-05/0.2131, allocations: 3.984 kB / 318.5 MB, free: 7.211 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008811/0.2139, allocations: 0.6707 MB / 319.1 MB, free: 6.539 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/0.2139, allocations: 0.75 kB / 319.1 MB, free: 6.539 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002306/0.2142, allocations: 63.89 kB / 319.2 MB, free: 6.477 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01682/0.231, allocations: 5.14 MB / 324.3 MB, free: 1.324 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001222/0.2311, allocations: 31.97 kB / 324.4 MB, free: 1.293 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003327/0.2344, allocations: 2.588 MB / 327 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.2344, allocations: 3.984 kB / 327 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008277/0.2427, allocations: 3.474 MB / 330.4 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002149/0.2429, allocations: 71.47 kB / 330.5 MB, free: 11.05 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.2431, allocations: 24 kB / 330.5 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005255/0.2436, allocations: 111 kB / 330.6 MB, free: 10.93 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.2438, allocations: 92.75 kB / 330.7 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.334e-05/0.2438, allocations: 31.98 kB / 330.8 MB, free: 10.8 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002481/0.2441, allocations: 342.8 kB / 331.1 MB, free: 10.47 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2441, allocations: 0 / 331.1 MB, free: 10.47 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005757/0.2446, allocations: 267.9 kB / 331.3 MB, free: 10.21 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.0002195/0.2449, allocations: 123.9 kB / 331.5 MB, free: 10.08 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002288/0.2471, allocations: 1.329 MB / 332.8 MB, free: 8.715 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.2472, allocations: 0 / 332.8 MB, free: 8.715 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001152/0.2483, allocations: 0.6574 MB / 333.5 MB, free: 8.059 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004888/0.2488, allocations: 151 kB / 333.6 MB, free: 7.922 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00225/0.251, allocations: 1.487 MB / 335.1 MB, free: 6.41 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.141e-05/0.2511, allocations: 160 kB / 335.2 MB, free: 6.23 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.000159/0.2513, allocations: 60.19 kB / 335.3 MB, free: 6.176 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.91e-05/0.2514, allocations: 32.5 kB / 335.3 MB, free: 6.145 MB / 282.7 MB Notification: Performance of SimCode: time 1.593e-06/0.2514, allocations: 0 / 335.3 MB, free: 6.145 MB / 282.7 MB Notification: Performance of Templates: time 0.02174/0.2731, allocations: 20 MB / 355.3 MB, free: 2.355 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.474052562844008]