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.001501/0.001501, allocations: 79.89 kB / 21.18 MB, free: 3.391 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.001717/0.001717, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 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 1.034/1.034, allocations: 173.3 MB / 201.1 MB, free: 8.992 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.633e-06/1.633e-06, allocations: 0 / 268 MB, free: 6.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.883e-05/3.046e-05, allocations: 6.25 kB / 268 MB, free: 6.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002171/0.002202, allocations: 1.63 MB / 269.6 MB, free: 4.684 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005618/0.002764, allocations: 426.8 kB / 270 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.686e-05/0.00281, allocations: 0 / 270 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.25e-05/0.002853, allocations: 11.86 kB / 270 MB, free: 4.254 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.494e-05/0.002938, allocations: 15.88 kB / 270 MB, free: 4.238 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001713/0.003109, allocations: 15.97 kB / 270.1 MB, free: 4.223 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.143e-05/0.003201, allocations: 67.72 kB / 270.1 MB, free: 4.156 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001595/0.00336, allocations: 31.91 kB / 270.2 MB, free: 4.125 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.003478, allocations: 43.89 kB / 270.2 MB, free: 4.082 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.615e-05/0.003534, allocations: 15.92 kB / 270.2 MB, free: 4.066 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.06e-05/0.003555, allocations: 8 kB / 270.2 MB, free: 4.059 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.999e-06/0.003565, allocations: 4 kB / 270.2 MB, free: 4.055 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.429e-05/0.003589, allocations: 19.91 kB / 270.2 MB, free: 4.035 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.645e-05/0.003616, allocations: 12 kB / 270.3 MB, free: 4.023 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001166/0.003732, allocations: 55.75 kB / 270.3 MB, free: 3.969 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.003736, allocations: 7.938 kB / 270.3 MB, free: 3.961 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.003737, allocations: 0 / 270.3 MB, free: 3.961 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.003742, allocations: 0 / 270.3 MB, free: 3.961 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.0004335/0.004175, allocations: 400.4 kB / 270.7 MB, free: 3.535 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.004217, allocations: 8.922 kB / 270.7 MB, free: 3.527 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.058e-05/0.004258, allocations: 12.89 kB / 270.7 MB, free: 3.516 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.623e-05/0.004354, allocations: 120.5 kB / 270.9 MB, free: 3.371 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.745e-05/0.004381, allocations: 12.36 kB / 270.9 MB, free: 3.359 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.424e-05/0.004395, allocations: 4.375 kB / 270.9 MB, free: 3.355 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001788/0.004574, allocations: 136.9 kB / 271 MB, free: 3.191 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.004585, allocations: 0 / 271 MB, free: 3.191 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.004595, allocations: 0 / 271 MB, free: 3.191 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.478e-06/0.004605, allocations: 4 kB / 271 MB, free: 3.188 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.108e-05/0.004656, allocations: 27.91 kB / 271 MB, free: 3.16 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005022/0.005158, allocations: 0.8001 MB / 271.8 MB, free: 2.305 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001137/0.005272, allocations: 143.4 kB / 272 MB, free: 2.102 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.649e-05/0.005318, allocations: 50.56 kB / 272 MB, free: 2.031 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.005336, allocations: 4 kB / 272 MB, free: 2.027 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.005362, allocations: 45.33 kB / 272.1 MB, free: 1.973 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.353e-06/0.005364, allocations: 0 / 272.1 MB, free: 1.973 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002221/0.005586, allocations: 81.5 kB / 272.2 MB, free: 1.887 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.702e-05/0.005643, allocations: 154.2 kB / 272.3 MB, free: 1.699 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.919e-05/0.005732, allocations: 181.9 kB / 272.5 MB, free: 1.504 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.017e-05/0.005742, allocations: 26.33 kB / 272.5 MB, free: 1.473 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.312e-05/0.005805, allocations: 150.8 kB / 272.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.765e-05/0.005823, allocations: 11.91 kB / 272.7 MB, free: 1.309 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.592e-05/0.005859, allocations: 31.36 kB / 272.7 MB, free: 1.27 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.005988, allocations: 0.4883 MB / 273.2 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.219e-05/0.00601, allocations: 7.938 kB / 273.2 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.715e-05/0.006047, allocations: 58.36 kB / 273.2 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.66e-05/0.006103, allocations: 58.38 kB / 273.3 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.006106, allocations: 0 / 273.3 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 8.822e-05/0.006194, allocations: 77.64 kB / 273.4 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.006207, allocations: 4 kB / 273.4 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.006215, allocations: 15.97 kB / 273.4 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.00623, allocations: 0 / 273.4 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.808e-05/0.006308, allocations: 8 kB / 273.4 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.006314, allocations: 0 / 273.4 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.58e-05/0.00635, allocations: 15.92 kB / 273.4 MB, free: 492 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.006356, allocations: 160 / 273.4 MB, free: 492 kB / 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 7.851e-05/0.006434, allocations: 164.6 kB / 273.6 MB, free: 316 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.781e-05/0.006492, allocations: 11.89 kB / 273.6 MB, free: 304 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.521e-05/0.006527, allocations: 11.62 kB / 273.6 MB, free: 288 kB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.00653, allocations: 0 / 273.6 MB, free: 288 kB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.006534, allocations: 4 kB / 273.6 MB, free: 284 kB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.006539, allocations: 3.984 kB / 273.6 MB, free: 280 kB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002288/0.006767, allocations: 140.5 kB / 273.8 MB, free: 104 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.006771, allocations: 4 kB / 273.8 MB, free: 100 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.668e-05/0.006817, allocations: 11.98 kB / 273.8 MB, free: 88 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.00682, allocations: 0 / 273.8 MB, free: 88 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.076e-06/0.006828, allocations: 4 kB / 273.8 MB, free: 84 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.00683, allocations: 4 kB / 273.8 MB, free: 80 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.006832, allocations: 0 / 273.8 MB, free: 80 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003069/0.007138, allocations: 0.6802 MB / 274.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.242e-05/0.007151, allocations: 4 kB / 274.5 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.007164, allocations: 0 / 274.5 MB, free: 15.37 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.007282, allocations: 11.97 kB / 274.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.926e-05/0.007332, allocations: 15.92 kB / 274.5 MB, free: 15.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.508e-06/0.007336, allocations: 4 kB / 274.5 MB, free: 15.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.646e-05/0.007383, allocations: 135.2 kB / 274.6 MB, free: 15.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.007383, allocations: 0 / 274.6 MB, free: 15.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002525/0.007635, allocations: 19.89 kB / 274.6 MB, free: 15.19 MB / 266.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 8.199e-05/0.007717, allocations: 95.19 kB / 274.7 MB, free: 15.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001109/0.007828, allocations: 35.61 kB / 274.8 MB, free: 15.05 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.007831, allocations: 4 kB / 274.8 MB, free: 15.04 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.898e-05/0.00786, allocations: 24.12 kB / 274.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.008194, allocations: 8.125 kB / 274.8 MB, free: 15.01 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005843/0.008779, allocations: 224.5 kB / 275 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.302e-05/0.008832, allocations: 59.34 kB / 275.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.429e-05/0.008856, allocations: 4 kB / 275.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.081e-05/0.008887, allocations: 8.5 kB / 275.1 MB, free: 14.65 MB / 266.7 MB Notification: Performance of SimCode: time 9.71e-07/0.008888, allocations: 0 / 275.1 MB, free: 14.65 MB / 266.7 MB Notification: Performance of Templates: time 0.002264/0.01115, allocations: 0.5645 MB / 275.7 MB, free: 14.09 MB / 266.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 -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.9883555700071156]