Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.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.0009303/0.0009303, allocations: 88.25 kB / 22.22 MB, free: 2.281 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.0009553/0.0009553, allocations: 169.2 kB / 25.61 MB, free: 8.902 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 0.9199/0.9199, allocations: 177 MB / 205.9 MB, free: 4.445 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.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 274.1 MB, free: 4.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.702e-05/1.836e-05, allocations: 2.312 kB / 274.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.008606/0.008624, allocations: 1.889 MB / 276 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001504/0.01013, allocations: 1.13 MB / 277.1 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.708e-05/0.01021, allocations: 3.938 kB / 277.1 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006546/0.01676, allocations: 169.8 kB / 277.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003491/0.01711, allocations: 184 kB / 277.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003183/0.01743, allocations: 145.8 kB / 277.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002305/0.01766, allocations: 219.3 kB / 277.8 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.875e-05/0.01775, allocations: 9.812 kB / 277.8 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.01789, allocations: 123.6 kB / 278 MB, free: 436 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001145/0.018, allocations: 79.78 kB / 278 MB, free: 356 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.488e-05/0.01803, allocations: 12 kB / 278 MB, free: 344 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.01814, allocations: 59.95 kB / 278.1 MB, free: 284 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.162e-05/0.0182, allocations: 47.78 kB / 278.1 MB, free: 236 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.488e-05/0.01826, allocations: 47.84 kB / 278.2 MB, free: 188 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000233/0.01849, allocations: 171.3 kB / 278.4 MB, free: 16 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.01849, allocations: 0 / 278.4 MB, free: 16 kB / 250.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.01849, allocations: 0 / 278.4 MB, free: 16 kB / 250.7 MB Notification: Performance of Transformations before backend: time 3.788e-06/0.0185, allocations: 0 / 278.4 MB, free: 16 kB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008117/0.01931, allocations: 0.5595 MB / 278.9 MB, free: 15.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.00605/0.02536, allocations: 16.03 kB / 278.9 MB, free: 15.4 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.555e-05/0.02542, allocations: 24.8 kB / 279 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002246/0.02564, allocations: 212.3 kB / 279.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.02566, allocations: 4.375 kB / 279.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.288e-05/0.02567, allocations: 8.375 kB / 279.2 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001502/0.02582, allocations: 104.9 kB / 279.3 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.02583, allocations: 4.188 kB / 279.3 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.02584, allocations: 4.375 kB / 279.3 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.02585, allocations: 3.938 kB / 279.3 MB, free: 14.99 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.196e-05/0.0259, allocations: 31.92 kB / 279.3 MB, free: 14.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004939/0.02639, allocations: 0.6806 MB / 280 MB, free: 14.24 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.02654, allocations: 113.4 kB / 280.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.575e-05/0.02659, allocations: 43.03 kB / 280.2 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.0266, allocations: 4 kB / 280.2 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001411/0.02675, allocations: 119.9 kB / 280.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.062e-06/0.02675, allocations: 4 kB / 280.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002359/0.02698, allocations: 129.9 kB / 280.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.02703, allocations: 110.8 kB / 280.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.02724, allocations: 292.2 kB / 280.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.814e-05/0.02726, allocations: 29.7 kB / 280.8 MB, free: 13.28 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.578e-05/0.02735, allocations: 178.8 kB / 281 MB, free: 13.1 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.108e-05/0.02738, allocations: 31.73 kB / 281 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.147e-05/0.02743, allocations: 43.34 kB / 281.1 MB, free: 13.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.02756, allocations: 0.5079 MB / 281.6 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.661e-05/0.02759, allocations: 15.92 kB / 281.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.766e-05/0.02766, allocations: 96 kB / 281.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.112e-05/0.02774, allocations: 78.36 kB / 281.8 MB, free: 12.26 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.02774, allocations: 0 / 281.8 MB, free: 12.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001527/0.02789, allocations: 125.3 kB / 281.9 MB, free: 12.13 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.02791, allocations: 4 kB / 281.9 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.85e-06/0.02791, allocations: 3.938 kB / 281.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.798e-06/0.02792, allocations: 4 kB / 281.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.794e-05/0.02799, allocations: 20.11 kB / 281.9 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.02799, allocations: 4 kB / 281.9 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.768e-05/0.02806, allocations: 7.984 kB / 281.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.02807, allocations: 8 kB / 281.9 MB, free: 12.08 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.055e-05/0.02816, allocations: 172.5 kB / 282.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00604/0.0342, allocations: 27.8 kB / 282.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001437/0.03434, allocations: 95.42 kB / 282.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.03435, allocations: 7.938 kB / 282.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-06/0.03435, allocations: 128 / 282.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.03435, allocations: 4 kB / 282.3 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001528/0.03451, allocations: 157.1 kB / 282.4 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.03451, allocations: 0 / 282.4 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.489e-05/0.03453, allocations: 8 kB / 282.4 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.03454, allocations: 0 / 282.4 MB, free: 11.57 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/0.03454, allocations: 8 kB / 282.4 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.838e-06/0.03455, allocations: 7.922 kB / 282.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.03455, allocations: 0 / 282.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001712/0.03472, allocations: 171 kB / 282.6 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.34e-05/0.03474, allocations: 15.91 kB / 282.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.03477, allocations: 7.984 kB / 282.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.613e-05/0.03483, allocations: 15.94 kB / 282.6 MB, free: 11.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/0.03487, allocations: 19.97 kB / 282.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.03488, allocations: 4 kB / 282.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001122/0.03499, allocations: 197.1 kB / 282.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03499, allocations: 0 / 282.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002448/0.03524, allocations: 39.92 kB / 282.9 MB, free: 11.07 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009157/0.03615, allocations: 396.1 kB / 283.3 MB, free: 10.8 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001319/0.03629, allocations: 67.52 kB / 283.3 MB, free: 10.73 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.03629, allocations: 0 / 283.3 MB, free: 10.73 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.845e-05/0.03635, allocations: 43.59 kB / 283.4 MB, free: 10.69 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002696/0.03662, allocations: 60.75 kB / 283.4 MB, free: 10.63 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004163/0.03703, allocations: 329.8 kB / 283.8 MB, free: 10.27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004061/0.04109, allocations: 83.83 kB / 283.8 MB, free: 10.17 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.781e-05/0.04116, allocations: 17.86 kB / 283.9 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.04128, allocations: 110.2 kB / 284 MB, free: 10.05 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.04128, allocations: 4 kB / 284 MB, free: 10.04 MB / 266.7 MB Notification: Performance of Templates: time 0.006163/0.04744, allocations: 3.224 MB / 287.2 MB, free: 6.871 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.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: 2.8257775884121656]