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.0008979/0.0008979, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001505/0.001505, allocations: 147 kB / 24.89 MB, free: 8.785 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.899/0.899, allocations: 173.4 MB / 201.5 MB, free: 8.262 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.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.082e-06/1.082e-06, allocations: 0 / 268.5 MB, free: 9.773 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.958e-05/2.066e-05, allocations: 2.312 kB / 268.5 MB, free: 9.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002196/0.002216, allocations: 1.667 MB / 270.2 MB, free: 8.105 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005134/0.00273, allocations: 425.2 kB / 270.6 MB, free: 7.691 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.035e-05/0.00277, allocations: 3.938 kB / 270.6 MB, free: 7.688 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 2.782e-05/0.002798, allocations: 4.844 kB / 270.6 MB, free: 7.684 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.209e-05/0.00287, allocations: 16.39 kB / 270.6 MB, free: 7.668 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001139/0.002984, allocations: 19.92 kB / 270.6 MB, free: 7.648 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.287e-05/0.003057, allocations: 60.27 kB / 270.7 MB, free: 7.59 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.003166, allocations: 41.84 kB / 270.7 MB, free: 7.551 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.003267, allocations: 35.91 kB / 270.8 MB, free: 7.516 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.926e-05/0.003316, allocations: 19.97 kB / 270.8 MB, free: 7.496 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.003331, allocations: 4 kB / 270.8 MB, free: 7.492 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.396e-06/0.003339, allocations: 4 kB / 270.8 MB, free: 7.488 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.842e-05/0.003358, allocations: 17.27 kB / 270.8 MB, free: 7.473 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.148e-05/0.003379, allocations: 19.92 kB / 270.8 MB, free: 7.453 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 8.603e-05/0.003465, allocations: 55.75 kB / 270.9 MB, free: 7.398 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.003467, allocations: 0.5938 kB / 270.9 MB, free: 7.398 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.003468, allocations: 0 / 270.9 MB, free: 7.398 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.036e-06/0.003471, allocations: 1.969 kB / 270.9 MB, free: 7.398 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0002684/0.003739, allocations: 276.7 kB / 271.2 MB, free: 7.105 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.948e-05/0.003769, allocations: 12.03 kB / 271.2 MB, free: 7.094 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.479e-05/0.003793, allocations: 8.938 kB / 271.2 MB, free: 7.086 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.207e-05/0.003865, allocations: 127.5 kB / 271.3 MB, free: 6.938 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.003882, allocations: 4.375 kB / 271.3 MB, free: 6.934 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.456e-06/0.00389, allocations: 4.375 kB / 271.3 MB, free: 6.93 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001194/0.00401, allocations: 114.7 kB / 271.4 MB, free: 6.793 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.004016, allocations: 0 / 271.4 MB, free: 6.793 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.442e-06/0.004022, allocations: 0.9062 kB / 271.4 MB, free: 6.793 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.004027, allocations: 4 kB / 271.4 MB, free: 6.789 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.368e-05/0.00406, allocations: 28.66 kB / 271.5 MB, free: 6.762 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003113/0.004372, allocations: 0.5129 MB / 272 MB, free: 6.219 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.023e-05/0.004442, allocations: 105.1 kB / 272.1 MB, free: 6.07 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.09e-05/0.004473, allocations: 32.36 kB / 272.1 MB, free: 6.023 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.115e-05/0.004484, allocations: 7.938 kB / 272.1 MB, free: 6.016 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.954e-05/0.004504, allocations: 34.56 kB / 272.2 MB, free: 5.973 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.031e-06/0.004505, allocations: 0 / 272.2 MB, free: 5.973 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001572/0.004662, allocations: 70.14 kB / 272.2 MB, free: 5.898 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.88e-05/0.004711, allocations: 158.2 kB / 272.4 MB, free: 5.707 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.886e-05/0.00477, allocations: 130.7 kB / 272.5 MB, free: 5.566 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.627e-06/0.004778, allocations: 25.7 kB / 272.5 MB, free: 5.535 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.396e-05/0.004812, allocations: 96.08 kB / 272.6 MB, free: 5.438 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.00483, allocations: 15.83 kB / 272.6 MB, free: 5.422 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.004858, allocations: 25.7 kB / 272.7 MB, free: 5.391 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.93e-05/0.004928, allocations: 322.8 kB / 273 MB, free: 5.066 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.119e-05/0.004939, allocations: 4 kB / 273 MB, free: 5.062 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.424e-05/0.004963, allocations: 32.3 kB / 273 MB, free: 5.016 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.638e-05/0.005009, allocations: 52.2 kB / 273.1 MB, free: 4.949 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.005011, allocations: 0 / 273.1 MB, free: 4.949 MB / 250.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 6.363e-05/0.005075, allocations: 65.55 kB / 273.1 MB, free: 4.879 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.005086, allocations: 6.031 kB / 273.1 MB, free: 4.875 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.498e-06/0.005091, allocations: 4 kB / 273.1 MB, free: 4.871 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.005104, allocations: 0 / 273.1 MB, free: 4.871 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.116e-05/0.005155, allocations: 8.156 kB / 273.1 MB, free: 4.863 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.00516, allocations: 15.92 kB / 273.2 MB, free: 4.848 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.774e-05/0.005187, allocations: 4 kB / 273.2 MB, free: 4.844 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.819e-06/0.005192, allocations: 0 / 273.2 MB, free: 4.844 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: 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 5.095e-05/0.005243, allocations: 117.8 kB / 273.3 MB, free: 4.719 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.428e-05/0.005297, allocations: 7.984 kB / 273.3 MB, free: 4.711 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.852e-05/0.005316, allocations: 15.58 kB / 273.3 MB, free: 4.691 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.005318, allocations: 4 kB / 273.3 MB, free: 4.688 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-06/0.00532, allocations: 3.938 kB / 273.3 MB, free: 4.684 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.005322, allocations: 0 / 273.3 MB, free: 4.684 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001841/0.005506, allocations: 81.81 kB / 273.4 MB, free: 4.586 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.005508, allocations: 8.125 kB / 273.4 MB, free: 4.578 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.777e-05/0.005536, allocations: 23.92 kB / 273.4 MB, free: 4.555 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.005538, allocations: 0 / 273.4 MB, free: 4.555 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.029e-06/0.005543, allocations: 4 kB / 273.4 MB, free: 4.551 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.81e-07/0.005543, allocations: 0 / 273.4 MB, free: 4.551 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.005544, allocations: 0 / 273.4 MB, free: 4.551 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000138/0.005682, allocations: 452.6 kB / 273.9 MB, free: 4.09 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.055e-06/0.00569, allocations: 19.81 kB / 273.9 MB, free: 4.07 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.987e-06/0.005699, allocations: 4 kB / 273.9 MB, free: 4.066 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.00581, allocations: 8 kB / 273.9 MB, free: 4.059 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.75e-05/0.005837, allocations: 11.98 kB / 273.9 MB, free: 4.047 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-06/0.00584, allocations: 0 / 273.9 MB, free: 4.047 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.473e-05/0.005854, allocations: 21.22 kB / 273.9 MB, free: 4.023 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.005854, allocations: 0 / 273.9 MB, free: 4.023 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002094/0.006064, allocations: 15.95 kB / 273.9 MB, free: 4.008 MB / 250.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.896e-05/0.006123, allocations: 76.42 kB / 274 MB, free: 3.926 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.182e-05/0.006185, allocations: 36.91 kB / 274.1 MB, free: 3.887 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.006187, allocations: 4.062 kB / 274.1 MB, free: 3.883 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.183e-05/0.006209, allocations: 20.86 kB / 274.1 MB, free: 3.859 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.00648, allocations: 7.984 kB / 274.1 MB, free: 3.852 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003574/0.006837, allocations: 203.6 kB / 274.3 MB, free: 3.613 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.556e-05/0.006883, allocations: 63.34 kB / 274.4 MB, free: 3.531 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.943e-05/0.006902, allocations: 8.219 kB / 274.4 MB, free: 3.523 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.821e-05/0.00694, allocations: 63.38 kB / 274.4 MB, free: 3.461 MB / 250.7 MB Notification: Performance of SimCode: time 9.32e-07/0.006941, allocations: 3.938 kB / 274.4 MB, free: 3.457 MB / 250.7 MB Notification: Performance of Templates: time 0.001787/0.008728, allocations: 0.5038 MB / 274.9 MB, free: 2.957 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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.48962624091655]