Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.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.0007735/0.0007735, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001043/0.001817, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0006268/0.0006268, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009305/0.001557, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8504/0.8504, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1468/0.9972, allocations: 52.49 MB / 238.5 MB, free: 7.645 MB / 234.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.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage") translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 239.7 MB, free: 6.383 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.165e-06/9.237e-06, allocations: 2.312 kB / 239.7 MB, free: 6.379 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001696/0.001705, allocations: 1.682 MB / 241.4 MB, free: 4.707 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003707/0.002076, allocations: 420.3 kB / 241.8 MB, free: 4.297 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.152e-05/0.002107, allocations: 0.6875 kB / 241.8 MB, free: 4.297 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 2.21e-05/0.002129, allocations: 15.86 kB / 241.8 MB, free: 4.281 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 3.579e-05/0.002165, allocations: 8.562 kB / 241.9 MB, free: 4.273 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 5.8e-05/0.002223, allocations: 30.34 kB / 241.9 MB, free: 4.246 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 6.877e-05/0.002292, allocations: 59.78 kB / 241.9 MB, free: 4.188 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.227e-05/0.002384, allocations: 27.92 kB / 242 MB, free: 4.16 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.447e-05/0.002468, allocations: 51.88 kB / 242 MB, free: 4.109 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.661e-05/0.002515, allocations: 19.92 kB / 242 MB, free: 4.09 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.002533, allocations: 4 kB / 242 MB, free: 4.086 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.157e-06/0.002542, allocations: 13.38 kB / 242.1 MB, free: 4.074 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 1.923e-05/0.002562, allocations: 7.938 kB / 242.1 MB, free: 4.066 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 1.677e-05/0.002578, allocations: 12 kB / 242.1 MB, free: 4.055 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 8.223e-05/0.002661, allocations: 47.77 kB / 242.1 MB, free: 4.008 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.587e-06/0.002669, allocations: 0.8125 kB / 242.1 MB, free: 4.008 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.00267, allocations: 0 / 242.1 MB, free: 4.008 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.002679, allocations: 4 kB / 242.1 MB, free: 4.004 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0003097/0.002989, allocations: 293.4 kB / 242.4 MB, free: 3.695 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.562e-05/0.003014, allocations: 11.98 kB / 242.4 MB, free: 3.684 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.704e-05/0.003041, allocations: 16.05 kB / 242.4 MB, free: 3.672 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.306e-05/0.003114, allocations: 113.7 kB / 242.6 MB, free: 3.535 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.003132, allocations: 8.375 kB / 242.6 MB, free: 3.527 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.197e-05/0.003144, allocations: 8.312 kB / 242.6 MB, free: 3.52 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/0.003258, allocations: 110.8 kB / 242.7 MB, free: 3.387 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.003265, allocations: 4 kB / 242.7 MB, free: 3.383 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.081e-06/0.003272, allocations: 0 / 242.7 MB, free: 3.383 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.003276, allocations: 0 / 242.7 MB, free: 3.383 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.13e-05/0.003307, allocations: 25.22 kB / 242.7 MB, free: 3.359 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002915/0.003599, allocations: 0.5202 MB / 243.2 MB, free: 2.809 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.579e-05/0.003665, allocations: 102.2 kB / 243.3 MB, free: 2.664 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.79e-05/0.003693, allocations: 43.31 kB / 243.4 MB, free: 2.609 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.127e-05/0.003704, allocations: 7.938 kB / 243.4 MB, free: 2.602 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.724e-05/0.003721, allocations: 34.56 kB / 243.4 MB, free: 2.559 MB / 234.7 MB Notification: Performance of pre-optimization done (n=6): time 8.22e-07/0.003722, allocations: 0 / 243.4 MB, free: 2.559 MB / 234.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001433/0.003865, allocations: 62.53 kB / 243.5 MB, free: 2.492 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.00391, allocations: 166.1 kB / 243.6 MB, free: 2.293 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.62e-05/0.003966, allocations: 119.5 kB / 243.7 MB, free: 2.164 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.003977, allocations: 29.7 kB / 243.8 MB, free: 2.129 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.201e-05/0.004009, allocations: 100 kB / 243.9 MB, free: 2.027 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.004026, allocations: 21.61 kB / 243.9 MB, free: 2.008 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.465e-05/0.00405, allocations: 17.72 kB / 243.9 MB, free: 1.984 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.326e-05/0.004114, allocations: 326.8 kB / 244.2 MB, free: 1.656 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.859e-06/0.004123, allocations: 4 kB / 244.2 MB, free: 1.652 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.17e-05/0.004145, allocations: 32.28 kB / 244.3 MB, free: 1.605 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.403e-05/0.004189, allocations: 59.52 kB / 244.3 MB, free: 1.535 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.004191, allocations: 0 / 244.3 MB, free: 1.535 MB / 234.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 5.42e-05/0.004245, allocations: 59.03 kB / 244.4 MB, free: 1.473 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.667e-06/0.004254, allocations: 4 kB / 244.4 MB, free: 1.469 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.915e-06/0.004257, allocations: 0 / 244.4 MB, free: 1.469 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.939e-06/0.004266, allocations: 4 kB / 244.4 MB, free: 1.465 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.36e-05/0.00432, allocations: 16.55 kB / 244.4 MB, free: 1.449 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.925e-06/0.004323, allocations: 0.5938 kB / 244.4 MB, free: 1.449 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.55e-05/0.004348, allocations: 8.562 kB / 244.4 MB, free: 1.441 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.679e-06/0.004353, allocations: 0 / 244.4 MB, free: 1.441 MB / 234.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: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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 4.945e-05/0.004403, allocations: 123.4 kB / 244.5 MB, free: 1.312 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.2e-05/0.004445, allocations: 4 kB / 244.5 MB, free: 1.309 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.98e-05/0.004464, allocations: 11.62 kB / 244.6 MB, free: 1.293 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.004466, allocations: 0 / 244.6 MB, free: 1.293 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.395e-06/0.004469, allocations: 4.5 kB / 244.6 MB, free: 1.289 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.004472, allocations: 4.828 kB / 244.6 MB, free: 1.285 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000182/0.004654, allocations: 89.81 kB / 244.7 MB, free: 1.18 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.004655, allocations: 1.625 kB / 244.7 MB, free: 1.18 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.477e-05/0.004679, allocations: 15.94 kB / 244.7 MB, free: 1.164 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.205e-06/0.004688, allocations: 11.89 kB / 244.7 MB, free: 1.152 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.342e-06/0.004689, allocations: 0 / 244.7 MB, free: 1.152 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.004697, allocations: 12.11 kB / 244.7 MB, free: 1.141 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.004698, allocations: 0.7812 kB / 244.7 MB, free: 1.141 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.004699, allocations: 0 / 244.7 MB, free: 1.141 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001436/0.004842, allocations: 460.5 kB / 245.1 MB, free: 0.6719 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.002e-05/0.004853, allocations: 7.984 kB / 245.1 MB, free: 0.6641 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001057/0.004958, allocations: 4 kB / 245.2 MB, free: 0.6602 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.645e-05/0.004985, allocations: 11.98 kB / 245.2 MB, free: 0.6484 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.004987, allocations: 0 / 245.2 MB, free: 0.6484 MB / 234.7 MB Notification: Performance of sorting global known variables: time 1.536e-05/0.005003, allocations: 25.16 kB / 245.2 MB, free: 0.6211 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005003, allocations: 0 / 245.2 MB, free: 0.6211 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.000204/0.005207, allocations: 12 kB / 245.2 MB, free: 0.6094 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (integerStep.y,booleanStep.y,part.subControlBus.myBooleanSignal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 5.183e-05/0.005259, allocations: 80.42 kB / 245.3 MB, free: 0.5234 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 5.961e-05/0.005318, allocations: 32.72 kB / 245.3 MB, free: 500 kB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.005323, allocations: 0 / 245.3 MB, free: 500 kB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 2.729e-05/0.00535, allocations: 32.72 kB / 245.3 MB, free: 464 kB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.005622, allocations: 15.98 kB / 245.4 MB, free: 448 kB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006586/0.00628, allocations: 232.3 kB / 245.6 MB, free: 176 kB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.369e-05/0.006324, allocations: 67.28 kB / 245.7 MB, free: 88 kB / 234.7 MB Notification: Performance of simCode: alias equations: time 1.876e-05/0.006343, allocations: 3.906 kB / 245.7 MB, free: 84 kB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.52e-05/0.006378, allocations: 55.38 kB / 245.7 MB, free: 28 kB / 234.7 MB Notification: Performance of SimCode: time 6.31e-07/0.006379, allocations: 0 / 245.7 MB, free: 28 kB / 234.7 MB Notification: Performance of Templates: time 0.002099/0.008478, allocations: 0.5086 MB / 246.2 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BusUsage/BusUsage.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.3160255942493677]