Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_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.001122/0.001122, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001857/0.002979, allocations: 457.8 kB / 10.45 MB, free: 244 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.001117/0.001117, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001549/0.002666, allocations: 475.6 kB / 11.82 MB, free: 2.348 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.935/0.935, allocations: 177.5 MB / 190 MB, free: 4.777 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08958/1.025, allocations: 53.87 MB / 243.9 MB, free: 14.84 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.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 245.2 MB, free: 13.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.094e-05/2.254e-05, allocations: 2.312 kB / 245.2 MB, free: 13.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006311/0.006333, allocations: 4.844 MB / 250.1 MB, free: 8.645 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003277/0.00961, allocations: 1.326 MB / 251.4 MB, free: 7.309 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003494/0.009959, allocations: 19.94 kB / 251.4 MB, free: 7.289 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002382/0.0102, allocations: 122.7 kB / 251.5 MB, free: 7.168 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007317/0.01093, allocations: 281.4 kB / 251.8 MB, free: 6.891 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005821/0.01151, allocations: 311.3 kB / 252.1 MB, free: 6.586 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009383/0.01245, allocations: 1.114 MB / 253.2 MB, free: 5.469 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002808/0.01273, allocations: 196.9 kB / 253.4 MB, free: 5.258 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007827/0.01351, allocations: 0.6889 MB / 254.1 MB, free: 4.566 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004187/0.01393, allocations: 374.9 kB / 254.5 MB, free: 4.199 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001102/0.01404, allocations: 88 kB / 254.6 MB, free: 4.113 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001992/0.01424, allocations: 115.9 kB / 254.7 MB, free: 4 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.592e-05/0.01434, allocations: 143.5 kB / 254.8 MB, free: 3.859 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002063/0.01454, allocations: 259.5 kB / 255.1 MB, free: 3.605 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005737/0.01512, allocations: 0.6383 MB / 255.7 MB, free: 2.965 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.214e-05/0.01513, allocations: 0 / 255.7 MB, free: 2.965 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.01513, allocations: 0 / 255.7 MB, free: 2.965 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.785e-05/0.01515, allocations: 0 / 255.7 MB, free: 2.965 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.001478/0.01663, allocations: 1.333 MB / 257.1 MB, free: 1.59 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.01666, allocations: 12.62 kB / 257.1 MB, free: 1.578 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001231/0.01678, allocations: 108.8 kB / 257.2 MB, free: 1.473 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003884/0.01717, allocations: 357.4 kB / 257.5 MB, free: 1.098 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.049e-05/0.0172, allocations: 45.69 kB / 257.6 MB, free: 1.055 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.242e-05/0.01728, allocations: 64.38 kB / 257.6 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005301/0.01781, allocations: 0.5703 MB / 258.2 MB, free: 388 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.01782, allocations: 192 / 258.2 MB, free: 388 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.434e-05/0.01786, allocations: 28.38 kB / 258.2 MB, free: 360 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.01787, allocations: 23.94 kB / 258.2 MB, free: 336 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002695/0.01814, allocations: 214.3 kB / 258.5 MB, free: 120 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001967/0.0201, allocations: 1.469 MB / 259.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.02044, allocations: 256.4 kB / 260.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001249/0.02056, allocations: 119 kB / 260.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.498e-05/0.0206, allocations: 12.48 kB / 260.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003117/0.02091, allocations: 406.9 kB / 260.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.553e-06/0.02091, allocations: 0 / 260.7 MB, free: 13.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.02451/0.04542, allocations: 11.04 MB / 271.7 MB, free: 2.641 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.04546, allocations: 68.39 kB / 271.8 MB, free: 2.562 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/0.04578, allocations: 486.9 kB / 272.3 MB, free: 2.074 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.155e-05/0.04587, allocations: 41.7 kB / 272.3 MB, free: 2.027 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.04601, allocations: 333.9 kB / 272.6 MB, free: 1.695 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001823/0.04619, allocations: 329.1 kB / 273 MB, free: 1.371 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002027/0.0464, allocations: 182.5 kB / 273.1 MB, free: 1.188 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003498/0.04675, allocations: 398.6 kB / 273.5 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/0.04701, allocations: 245.6 kB / 273.8 MB, free: 0.5352 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/0.04737, allocations: 0.5498 MB / 274.3 MB, free: 15.86 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006324/0.048, allocations: 0.779 MB / 275.1 MB, free: 14.99 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.04801, allocations: 0 / 275.1 MB, free: 14.99 MB / 282.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.006561/0.05457, allocations: 3.105 MB / 278.2 MB, free: 11.85 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.049e-05/0.05464, allocations: 63.41 kB / 278.3 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.05465, allocations: 4 kB / 278.3 MB, free: 11.77 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01265/0.0673, allocations: 5.131 MB / 283.4 MB, free: 6.625 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003594/0.06766, allocations: 135.8 kB / 283.5 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008675/0.07634, allocations: 5.334 MB / 288.9 MB, free: 1.031 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006909/0.07703, allocations: 123.8 kB / 289 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.417e-05/0.07708, allocations: 39.92 kB / 289 MB, free: 0.8711 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,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002292/0.07731, allocations: 165.8 kB / 289.2 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.07743, allocations: 83.86 kB / 289.3 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1189/0.1963, allocations: 2.819 MB / 292.1 MB, free: 32.59 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/0.1963, allocations: 9.844 kB / 292.1 MB, free: 32.59 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.1964, allocations: 5.5 kB / 292.1 MB, free: 32.59 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.122e-05/0.1964, allocations: 6.203 kB / 292.1 MB, free: 32.59 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008679/0.1972, allocations: 0.5146 MB / 292.6 MB, free: 32.51 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.1972, allocations: 0.6562 kB / 292.6 MB, free: 32.51 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002653/0.1975, allocations: 76.31 kB / 292.7 MB, free: 32.51 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.1976, allocations: 70.39 kB / 292.8 MB, free: 32.51 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01298/0.2106, allocations: 5.082 MB / 297.9 MB, free: 32.43 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001279/0.2107, allocations: 25.06 kB / 297.9 MB, free: 32.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008218/0.2189, allocations: 5.29 MB / 303.2 MB, free: 30.53 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.2189, allocations: 0 / 303.2 MB, free: 30.53 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006328/0.2253, allocations: 3.037 MB / 306.2 MB, free: 29.41 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001665/0.2254, allocations: 21.53 kB / 306.2 MB, free: 29.41 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004609/0.2259, allocations: 116.6 kB / 306.3 MB, free: 29.38 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002756/0.2262, allocations: 121.8 kB / 306.5 MB, free: 29.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.365e-05/0.2262, allocations: 20.72 kB / 306.5 MB, free: 29.31 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001881/0.2264, allocations: 210.7 kB / 306.7 MB, free: 29.26 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2264, allocations: 0 / 306.7 MB, free: 29.26 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008328/0.2272, allocations: 361.2 kB / 307 MB, free: 29.25 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.0002154/0.2275, allocations: 105.6 kB / 307.1 MB, free: 29.18 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.2291, allocations: 1.309 MB / 308.5 MB, free: 28 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.635e-05/0.2292, allocations: 20.67 kB / 308.5 MB, free: 27.98 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.2303, allocations: 0.8392 MB / 309.3 MB, free: 27.25 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006634/0.2309, allocations: 1.256 MB / 310.6 MB, free: 25.82 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004343/0.2353, allocations: 1.509 MB / 312.1 MB, free: 24.45 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001232/0.2354, allocations: 180.7 kB / 312.3 MB, free: 24.25 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001999/0.2356, allocations: 64.66 kB / 312.3 MB, free: 24.19 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002291/0.2358, allocations: 168.8 kB / 312.5 MB, free: 24.03 MB / 282.7 MB Notification: Performance of SimCode: time 1.402e-06/0.2358, allocations: 4 kB / 312.5 MB, free: 24.03 MB / 282.7 MB Notification: Performance of Templates: time 0.02598/0.2618, allocations: 29.6 MB / 342.1 MB, free: 11.11 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3995932321995497]