Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 77.05 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001652/0.002899, allocations: 449.8 kB / 10.44 MB, free: 248 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009902/0.0009902, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001319/0.00231, allocations: 479.5 kB / 11.82 MB, free: 2.34 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.122/1.122, allocations: 177.2 MB / 189.8 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1121/1.235, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.528e-05/2.725e-05, allocations: 2.312 kB / 244.7 MB, free: 14.23 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004116/0.004143, allocations: 1.932 MB / 246.6 MB, free: 12.28 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002297/0.00644, allocations: 1.18 MB / 247.8 MB, free: 11.1 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.006612, allocations: 4 kB / 247.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000678/0.00729, allocations: 163.3 kB / 248 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005127/0.007802, allocations: 183.2 kB / 248.2 MB, free: 10.75 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000447/0.008249, allocations: 143.4 kB / 248.3 MB, free: 10.61 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003102/0.008559, allocations: 219.3 kB / 248.5 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.008675, allocations: 14.45 kB / 248.5 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000248/0.008923, allocations: 160.3 kB / 248.7 MB, free: 10.23 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.00908, allocations: 79.78 kB / 248.8 MB, free: 10.15 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.455e-05/0.009105, allocations: 8 kB / 248.8 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.009285, allocations: 71.88 kB / 248.8 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.338e-05/0.009369, allocations: 39.86 kB / 248.9 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.596e-05/0.009425, allocations: 35.88 kB / 248.9 MB, free: 10 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002782/0.009703, allocations: 159.3 kB / 249.1 MB, free: 9.844 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.747e-05/0.00972, allocations: 3.984 kB / 249.1 MB, free: 9.84 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.009723, allocations: 4 kB / 249.1 MB, free: 9.836 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.009736, allocations: 0 / 249.1 MB, free: 9.836 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0007749/0.01051, allocations: 469 kB / 249.5 MB, free: 9.348 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.01054, allocations: 8.031 kB / 249.5 MB, free: 9.34 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.152e-05/0.0106, allocations: 20.91 kB / 249.6 MB, free: 9.32 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002469/0.01084, allocations: 193.5 kB / 249.7 MB, free: 9.102 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.01087, allocations: 12.38 kB / 249.8 MB, free: 9.09 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.01089, allocations: 4.375 kB / 249.8 MB, free: 9.086 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001677/0.01105, allocations: 96.47 kB / 249.9 MB, free: 8.973 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.01106, allocations: 7.875 kB / 249.9 MB, free: 8.965 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.869e-06/0.01107, allocations: 0 / 249.9 MB, free: 8.965 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.01108, allocations: 7.984 kB / 249.9 MB, free: 8.957 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.913e-05/0.01113, allocations: 34.72 kB / 249.9 MB, free: 8.922 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004856/0.01162, allocations: 442.4 kB / 250.3 MB, free: 8.461 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.01179, allocations: 142.5 kB / 250.5 MB, free: 8.293 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.61e-05/0.01182, allocations: 30.52 kB / 250.5 MB, free: 8.254 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.01185, allocations: 7.938 kB / 250.5 MB, free: 8.246 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.01203, allocations: 108.7 kB / 250.6 MB, free: 8.117 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.01203, allocations: 0 / 250.6 MB, free: 8.117 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002224/0.01225, allocations: 92.42 kB / 250.7 MB, free: 8.02 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.01232, allocations: 114.9 kB / 250.8 MB, free: 7.883 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000168/0.01248, allocations: 238.7 kB / 251.1 MB, free: 7.637 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.0125, allocations: 29.7 kB / 251.1 MB, free: 7.602 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.147e-05/0.01255, allocations: 108.5 kB / 251.2 MB, free: 7.492 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.846e-05/0.01258, allocations: 27.83 kB / 251.2 MB, free: 7.465 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.229e-05/0.01262, allocations: 33.69 kB / 251.3 MB, free: 7.426 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.01272, allocations: 330.8 kB / 251.6 MB, free: 7.094 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.174e-05/0.01276, allocations: 14.77 kB / 251.6 MB, free: 7.078 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.456e-05/0.01281, allocations: 78.83 kB / 251.7 MB, free: 6.977 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.28e-05/0.01288, allocations: 77.88 kB / 251.7 MB, free: 6.883 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.01289, allocations: 0 / 251.7 MB, free: 6.883 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001146/0.013, allocations: 100.9 kB / 251.8 MB, free: 6.777 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.01302, allocations: 8 kB / 251.9 MB, free: 6.77 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.01302, allocations: 0 / 251.9 MB, free: 6.77 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.01303, allocations: 0 / 251.9 MB, free: 6.77 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.366e-05/0.01313, allocations: 23.92 kB / 251.9 MB, free: 6.746 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.515e-06/0.01314, allocations: 4 kB / 251.9 MB, free: 6.742 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.303e-05/0.0132, allocations: 24.03 kB / 251.9 MB, free: 6.719 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.01321, allocations: 0 / 251.9 MB, free: 6.719 MB / 250.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 8.841e-05/0.01329, allocations: 121.3 kB / 252 MB, free: 6.59 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.573e-05/0.01332, allocations: 23.86 kB / 252 MB, free: 6.566 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001294/0.01345, allocations: 75.44 kB / 252.1 MB, free: 6.488 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.01345, allocations: 0 / 252.1 MB, free: 6.488 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.01346, allocations: 7.938 kB / 252.1 MB, free: 6.48 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.01346, allocations: 3.984 kB / 252.1 MB, free: 6.477 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001902/0.01365, allocations: 113.8 kB / 252.2 MB, free: 6.348 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.01365, allocations: 0 / 252.2 MB, free: 6.348 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.45e-05/0.01369, allocations: 15.98 kB / 252.3 MB, free: 6.332 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.605e-05/0.01371, allocations: 27.78 kB / 252.3 MB, free: 6.305 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.01372, allocations: 0 / 252.3 MB, free: 6.305 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.729e-06/0.01373, allocations: 4 kB / 252.3 MB, free: 6.301 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.01373, allocations: 7.938 kB / 252.3 MB, free: 6.293 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.01374, allocations: 0 / 252.3 MB, free: 6.293 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001394/0.01387, allocations: 116.5 kB / 252.4 MB, free: 6.152 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.557e-05/0.0139, allocations: 7.938 kB / 252.4 MB, free: 6.145 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.026e-05/0.01395, allocations: 11.98 kB / 252.4 MB, free: 6.133 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.391e-05/0.014, allocations: 11.98 kB / 252.4 MB, free: 6.121 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.01402, allocations: 8 kB / 252.4 MB, free: 6.113 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.314e-05/0.01411, allocations: 93.59 kB / 252.5 MB, free: 6.016 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01411, allocations: 0 / 252.5 MB, free: 6.016 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001832/0.01429, allocations: 39.88 kB / 252.6 MB, free: 5.977 MB / 250.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.001317/0.01561, allocations: 0.5565 MB / 253.1 MB, free: 5.695 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001666/0.01577, allocations: 64.89 kB / 253.2 MB, free: 5.629 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/0.01578, allocations: 8.094 kB / 253.2 MB, free: 5.621 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.261e-05/0.01585, allocations: 36.78 kB / 253.2 MB, free: 5.582 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.01617, allocations: 335 kB / 253.6 MB, free: 5.203 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000689/0.01686, allocations: 340.5 kB / 253.9 MB, free: 4.832 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.29e-05/0.01691, allocations: 83.83 kB / 254 MB, free: 4.73 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.056e-05/0.01697, allocations: 25.8 kB / 254 MB, free: 4.707 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.01707, allocations: 83.36 kB / 254.1 MB, free: 4.625 MB / 250.7 MB Notification: Performance of SimCode: time 9.91e-07/0.01707, allocations: 0 / 254.1 MB, free: 4.625 MB / 250.7 MB Notification: Performance of Templates: time 0.005897/0.02297, allocations: 3.145 MB / 257.2 MB, free: 1.531 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9741503689438105]