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.0007234/0.0007234, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009029/0.001626, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0006887/0.0006887, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008596/0.001548, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9579/0.9579, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08614/1.044, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.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.222e-06/1.222e-06, allocations: 0 / 245 MB, free: 13.62 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.035e-05/1.157e-05, allocations: 2.312 kB / 245 MB, free: 13.62 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_NORGate): time 0.003639/0.00365, allocations: 4.863 MB / 249.9 MB, free: 8.73 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.005139, allocations: 1.326 MB / 251.2 MB, free: 7.398 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001893/0.005328, allocations: 15.94 kB / 251.3 MB, free: 7.383 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.005502, allocations: 122.7 kB / 251.4 MB, free: 7.262 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003063/0.005808, allocations: 277.4 kB / 251.6 MB, free: 6.988 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003585/0.006166, allocations: 315.3 kB / 251.9 MB, free: 6.68 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000682/0.006849, allocations: 1.126 MB / 253.1 MB, free: 5.551 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000203/0.007051, allocations: 189 kB / 253.3 MB, free: 5.348 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004837/0.007535, allocations: 0.6928 MB / 254 MB, free: 4.652 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004267/0.007962, allocations: 367 kB / 254.3 MB, free: 4.293 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 8.347e-05/0.008045, allocations: 92 kB / 254.4 MB, free: 4.203 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001464/0.008192, allocations: 119.9 kB / 254.5 MB, free: 4.086 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.675e-05/0.008279, allocations: 143.5 kB / 254.7 MB, free: 3.945 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001918/0.00847, allocations: 255.5 kB / 254.9 MB, free: 3.695 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004825/0.008953, allocations: 0.6306 MB / 255.5 MB, free: 3.062 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.424e-05/0.008967, allocations: 4 kB / 255.5 MB, free: 3.059 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.008968, allocations: 3.938 kB / 255.5 MB, free: 3.055 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.774e-05/0.008986, allocations: 0 / 255.5 MB, free: 3.055 MB / 250.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.001297/0.01028, allocations: 1.333 MB / 256.9 MB, free: 1.68 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.939e-05/0.01031, allocations: 8.625 kB / 256.9 MB, free: 1.672 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.01043, allocations: 112.8 kB / 257 MB, free: 1.562 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000339/0.01077, allocations: 345.4 kB / 257.3 MB, free: 1.199 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.01079, allocations: 45.69 kB / 257.4 MB, free: 1.156 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.844e-05/0.01086, allocations: 68.38 kB / 257.4 MB, free: 1.09 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007356/0.01159, allocations: 0.5742 MB / 258 MB, free: 484 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.01161, allocations: 192 / 258 MB, free: 484 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.3e-05/0.01164, allocations: 24.38 kB / 258 MB, free: 460 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.01165, allocations: 19.94 kB / 258.1 MB, free: 440 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002634/0.01192, allocations: 218.2 kB / 258.3 MB, free: 220 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001596/0.01351, allocations: 1.469 MB / 259.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003075/0.01382, allocations: 263.5 kB / 260 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.01393, allocations: 114.9 kB / 260.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.67e-05/0.01397, allocations: 12.48 kB / 260.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002872/0.01426, allocations: 402.9 kB / 260.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.503e-06/0.01426, allocations: 0 / 260.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.02325/0.03751, allocations: 10.79 MB / 271.3 MB, free: 2.977 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.594e-05/0.03755, allocations: 64.41 kB / 271.4 MB, free: 2.902 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000274/0.03782, allocations: 486.9 kB / 271.9 MB, free: 2.414 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.197e-05/0.03788, allocations: 41.7 kB / 271.9 MB, free: 2.367 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003852/0.03827, allocations: 333.9 kB / 272.2 MB, free: 2.035 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/0.03843, allocations: 329.1 kB / 272.5 MB, free: 1.711 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/0.03864, allocations: 190.5 kB / 272.7 MB, free: 1.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.03874, allocations: 398.5 kB / 273.1 MB, free: 1.121 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002586/0.03899, allocations: 237.6 kB / 273.3 MB, free: 0.875 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003614/0.03936, allocations: 0.5498 MB / 273.9 MB, free: 212 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006193/0.03998, allocations: 0.7596 MB / 274.7 MB, free: 15.35 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.03998, allocations: 0 / 274.7 MB, free: 15.35 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.006575/0.04655, allocations: 3.109 MB / 277.8 MB, free: 12.2 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.496e-05/0.0466, allocations: 63.41 kB / 277.8 MB, free: 12.13 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.04661, allocations: 11.94 kB / 277.8 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01164/0.05825, allocations: 5.064 MB / 282.9 MB, free: 7.039 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.05852, allocations: 139.8 kB / 283 MB, free: 6.902 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008187/0.06671, allocations: 5.452 MB / 288.5 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004871/0.06719, allocations: 127.9 kB / 288.6 MB, free: 1.203 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.231e-05/0.06725, allocations: 39.91 kB / 288.7 MB, free: 1.164 MB / 282.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.0001915/0.06744, allocations: 169.7 kB / 288.8 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.06754, allocations: 79.92 kB / 288.9 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1097/0.1772, allocations: 2.832 MB / 291.7 MB, free: 32.55 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.955e-05/0.1773, allocations: 10.45 kB / 291.7 MB, free: 32.55 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.1773, allocations: 5.562 kB / 291.7 MB, free: 32.55 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-05/0.1773, allocations: 9.609 kB / 291.8 MB, free: 32.55 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008573/0.1781, allocations: 0.5149 MB / 292.3 MB, free: 32.47 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/0.1781, allocations: 0.5156 kB / 292.3 MB, free: 32.47 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002672/0.1784, allocations: 67.89 kB / 292.3 MB, free: 32.47 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.126e-05/0.1785, allocations: 65.39 kB / 292.4 MB, free: 32.47 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01222/0.1907, allocations: 5.011 MB / 297.4 MB, free: 32.41 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001251/0.1909, allocations: 28.16 kB / 297.4 MB, free: 32.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007717/0.1986, allocations: 5.292 MB / 302.7 MB, free: 30.51 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.1986, allocations: 0.8906 kB / 302.7 MB, free: 30.51 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006275/0.2048, allocations: 3.031 MB / 305.8 MB, free: 29.51 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001712/0.205, allocations: 19.91 kB / 305.8 MB, free: 29.51 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004551/0.2055, allocations: 110.1 kB / 305.9 MB, free: 29.48 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002814/0.2058, allocations: 114.3 kB / 306 MB, free: 29.42 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.157e-05/0.2058, allocations: 20.73 kB / 306 MB, free: 29.41 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001789/0.206, allocations: 208 kB / 306.2 MB, free: 29.36 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.206, allocations: 0 / 306.2 MB, free: 29.36 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008422/0.2068, allocations: 363 kB / 306.6 MB, free: 29.35 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): 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.0001982/0.207, allocations: 110.2 kB / 306.7 MB, free: 29.28 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001919/0.2089, allocations: 1.385 MB / 308.1 MB, free: 28.32 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.518e-05/0.209, allocations: 18.61 kB / 308.1 MB, free: 28.3 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009784/0.21, allocations: 0.808 MB / 308.9 MB, free: 27.59 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.2104, allocations: 215.5 kB / 309.1 MB, free: 27.43 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004444/0.2148, allocations: 1.484 MB / 310.6 MB, free: 26.06 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001197/0.2149, allocations: 185.4 kB / 310.8 MB, free: 25.86 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001922/0.2151, allocations: 59.09 kB / 310.8 MB, free: 25.81 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002267/0.2154, allocations: 174.4 kB / 311 MB, free: 25.65 MB / 282.7 MB Notification: Performance of SimCode: time 1.643e-06/0.2154, allocations: 0 / 311 MB, free: 25.65 MB / 282.7 MB Notification: Performance of Templates: time 0.02662/0.242, allocations: 30.26 MB / 341.3 MB, free: 12.09 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 -ignoreHideResult -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.392579692415893]