Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001332/0.001332, allocations: 85.17 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009091/0.0009091, allocations: 145.5 kB / 24.89 MB, free: 8.742 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9047/0.9047, allocations: 173.4 MB / 201.5 MB, free: 8.273 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.224e-06/2.224e-06, allocations: 0 / 268.5 MB, free: 9.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.957e-05/2.179e-05, allocations: 5.406 kB / 268.5 MB, free: 9.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002419/0.002441, allocations: 1.895 MB / 270.4 MB, free: 7.879 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001335/0.003776, allocations: 1.024 MB / 271.4 MB, free: 6.855 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.003878, allocations: 4 kB / 271.4 MB, free: 6.852 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006093/0.004488, allocations: 164.1 kB / 271.6 MB, free: 6.691 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001808/0.004668, allocations: 133 kB / 271.7 MB, free: 6.562 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002468/0.004915, allocations: 176.7 kB / 271.9 MB, free: 6.391 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002032/0.005118, allocations: 207.8 kB / 272.1 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.257e-05/0.005201, allocations: 19.14 kB / 272.1 MB, free: 6.168 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000276/0.005477, allocations: 111.7 kB / 272.2 MB, free: 6.059 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.005579, allocations: 80.84 kB / 272.3 MB, free: 5.98 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.005598, allocations: 8 kB / 272.3 MB, free: 5.973 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.005709, allocations: 67.83 kB / 272.4 MB, free: 5.906 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.243e-05/0.005761, allocations: 45.16 kB / 272.4 MB, free: 5.863 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.626e-05/0.005808, allocations: 47.84 kB / 272.5 MB, free: 5.816 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001905/0.005998, allocations: 163.4 kB / 272.6 MB, free: 5.656 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.353e-06/0.005999, allocations: 4.719 kB / 272.6 MB, free: 5.652 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.006, allocations: 0 / 272.6 MB, free: 5.652 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.096e-06/0.006003, allocations: 0.9375 kB / 272.6 MB, free: 5.652 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.0004471/0.00645, allocations: 429.2 kB / 273 MB, free: 5.203 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.006482, allocations: 8.531 kB / 273.1 MB, free: 5.195 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.686e-05/0.006529, allocations: 21.41 kB / 273.1 MB, free: 5.176 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001924/0.006721, allocations: 193.6 kB / 273.3 MB, free: 4.961 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.00674, allocations: 4.375 kB / 273.3 MB, free: 4.957 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.578e-05/0.006756, allocations: 11.94 kB / 273.3 MB, free: 4.945 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001567/0.006913, allocations: 91.84 kB / 273.4 MB, free: 4.836 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.006922, allocations: 0 / 273.4 MB, free: 4.836 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.006937, allocations: 7.938 kB / 273.4 MB, free: 4.828 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.513e-06/0.006944, allocations: 4 kB / 273.4 MB, free: 4.824 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.664e-05/0.007, allocations: 34.72 kB / 273.4 MB, free: 4.789 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004032/0.007404, allocations: 446.4 kB / 273.9 MB, free: 4.324 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001383/0.007542, allocations: 142.5 kB / 274 MB, free: 4.156 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.048e-05/0.007582, allocations: 26.58 kB / 274 MB, free: 4.121 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.007596, allocations: 0 / 274 MB, free: 4.121 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001364/0.007733, allocations: 108.7 kB / 274.1 MB, free: 3.992 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.002e-06/0.007734, allocations: 0 / 274.1 MB, free: 3.992 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001846/0.007918, allocations: 92.42 kB / 274.2 MB, free: 3.895 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.007967, allocations: 110.9 kB / 274.3 MB, free: 3.762 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001918/0.008158, allocations: 230.7 kB / 274.5 MB, free: 3.52 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.008177, allocations: 33.7 kB / 274.6 MB, free: 3.48 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.046e-05/0.008227, allocations: 108.5 kB / 274.7 MB, free: 3.371 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.525e-05/0.008262, allocations: 31.77 kB / 274.7 MB, free: 3.34 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.747e-05/0.00831, allocations: 29.7 kB / 274.7 MB, free: 3.305 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.657e-05/0.008406, allocations: 338.7 kB / 275.1 MB, free: 2.965 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.015e-05/0.008437, allocations: 18.77 kB / 275.1 MB, free: 2.945 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.194e-05/0.008499, allocations: 78.83 kB / 275.2 MB, free: 2.844 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.202e-05/0.008581, allocations: 74.39 kB / 275.2 MB, free: 2.754 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.008583, allocations: 0 / 275.2 MB, free: 2.754 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001251/0.008708, allocations: 96.36 kB / 275.3 MB, free: 2.652 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.008721, allocations: 8 kB / 275.3 MB, free: 2.645 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.008728, allocations: 3.984 kB / 275.4 MB, free: 2.641 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.008742, allocations: 7.984 kB / 275.4 MB, free: 2.633 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.455e-05/0.008817, allocations: 12 kB / 275.4 MB, free: 2.621 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.008821, allocations: 0 / 275.4 MB, free: 2.621 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.448e-05/0.008896, allocations: 23.97 kB / 275.4 MB, free: 2.598 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.008907, allocations: 11.94 kB / 275.4 MB, free: 2.586 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.325e-05/0.00899, allocations: 129.4 kB / 275.5 MB, free: 2.449 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.493e-05/0.009015, allocations: 11.98 kB / 275.5 MB, free: 2.438 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001183/0.009133, allocations: 79.42 kB / 275.6 MB, free: 2.352 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.009136, allocations: 0 / 275.6 MB, free: 2.352 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.084e-06/0.009138, allocations: 3.938 kB / 275.6 MB, free: 2.348 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.009143, allocations: 4 kB / 275.6 MB, free: 2.344 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.009279, allocations: 113.8 kB / 275.7 MB, free: 2.215 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.009282, allocations: 4 kB / 275.7 MB, free: 2.211 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.095e-05/0.009313, allocations: 8 kB / 275.8 MB, free: 2.203 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.009316, allocations: 4 kB / 275.8 MB, free: 2.199 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.009326, allocations: 4 kB / 275.8 MB, free: 2.195 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.009328, allocations: 128 / 275.8 MB, free: 2.195 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.009333, allocations: 8 kB / 275.8 MB, free: 2.188 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00016/0.009493, allocations: 128.3 kB / 275.9 MB, free: 2.035 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.839e-05/0.009521, allocations: 23.8 kB / 275.9 MB, free: 2.012 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.362e-05/0.009545, allocations: 4 kB / 275.9 MB, free: 2.008 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.709e-05/0.009592, allocations: 11.98 kB / 275.9 MB, free: 1.996 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.796e-05/0.00963, allocations: 11.97 kB / 275.9 MB, free: 1.984 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.009643, allocations: 15.98 kB / 276 MB, free: 1.969 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.605e-05/0.009709, allocations: 77.62 kB / 276 MB, free: 1.891 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009709, allocations: 0 / 276 MB, free: 1.891 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001382/0.009848, allocations: 32 kB / 276.1 MB, free: 1.859 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.00101/0.01086, allocations: 0.5144 MB / 276.6 MB, free: 1.574 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.661e-05/0.01095, allocations: 60.7 kB / 276.6 MB, free: 1.512 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.01096, allocations: 4.188 kB / 276.6 MB, free: 1.508 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.118e-05/0.011, allocations: 36.78 kB / 276.7 MB, free: 1.469 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001542/0.01115, allocations: 53.02 kB / 276.7 MB, free: 1.418 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003427/0.0115, allocations: 316.3 kB / 277 MB, free: 1.074 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.181e-05/0.01154, allocations: 79.97 kB / 277.1 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.376e-05/0.01158, allocations: 21.7 kB / 277.1 MB, free: 0.957 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.234e-05/0.01166, allocations: 83.3 kB / 277.2 MB, free: 0.875 MB / 250.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01167, allocations: 0 / 277.2 MB, free: 0.875 MB / 250.7 MB Notification: Performance of Templates: time 0.00471/0.01637, allocations: 3.068 MB / 280.3 MB, free: 13.87 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.6920217243023217]