Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.BusUsage") translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001444/0.001444, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001804/0.001805, allocations: 198 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001299, allocations: 59.89 kB / 358.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.366, allocations: 50.55 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002791/0.3688, allocations: 1.606 MB / 410.8 MB, free: 16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008108/0.3696, allocations: 0.4907 MB / 411.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.554e-05/0.3697, allocations: 4 kB / 411.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.899e-05/0.3698, allocations: 7.875 kB / 411.3 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.227e-05/0.3699, allocations: 7.875 kB / 411.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002461/0.3701, allocations: 39.84 kB / 411.4 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001374/0.3703, allocations: 63.77 kB / 411.4 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.3705, allocations: 44.19 kB / 411.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.3706, allocations: 39.84 kB / 411.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.969e-05/0.3707, allocations: 27.86 kB / 411.6 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.551e-05/0.3707, allocations: 7.938 kB / 411.6 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.231e-05/0.3708, allocations: 8 kB / 411.6 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.373e-05/0.3708, allocations: 11.98 kB / 411.6 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.386e-05/0.3708, allocations: 31.8 kB / 411.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001464/0.371, allocations: 71.72 kB / 411.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.371, allocations: 4 kB / 411.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.371, allocations: 0 / 411.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.371, allocations: 0 / 411.7 MB, free: 15.14 MB / 334.1 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.0005406/0.3716, allocations: 388.4 kB / 412.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.3716, allocations: 8.031 kB / 412.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.3718, allocations: 20.77 kB / 412.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002148/0.372, allocations: 184.2 kB / 412.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.372, allocations: 8.359 kB / 412.3 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.3721, allocations: 8.375 kB / 412.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002323/0.3723, allocations: 122 kB / 412.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.3723, allocations: 0 / 412.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.215e-05/0.3723, allocations: 0 / 412.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.3723, allocations: 4 kB / 412.4 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.3725, allocations: 51.89 kB / 412.5 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006062/0.3732, allocations: 0.6419 MB / 413.1 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001667/0.3733, allocations: 120.9 kB / 413.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.3735, allocations: 52.41 kB / 413.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.25e-05/0.3735, allocations: 8 kB / 413.3 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.3735, allocations: 38.5 kB / 413.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 2.766e-06/0.3735, allocations: 0 / 413.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004344/0.374, allocations: 125.9 kB / 413.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.472e-05/0.374, allocations: 162.2 kB / 413.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.675e-05/0.3741, allocations: 125.7 kB / 413.7 MB, free: 12.81 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.601e-05/0.3742, allocations: 25.7 kB / 413.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.449e-05/0.3742, allocations: 96.03 kB / 413.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.3743, allocations: 15.75 kB / 413.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.853e-05/0.3743, allocations: 25.83 kB / 413.9 MB, free: 12.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.3744, allocations: 318.8 kB / 414.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.945e-05/0.3745, allocations: 19.98 kB / 414.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.014e-05/0.3746, allocations: 60.2 kB / 414.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001682/0.3748, allocations: 80.2 kB / 414.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3748, allocations: 0 / 414.4 MB, free: 12.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002164/0.375, allocations: 97.53 kB / 414.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.375, allocations: 7.938 kB / 414.5 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3751, allocations: 4 kB / 414.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.3751, allocations: 0 / 414.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.709e-05/0.3752, allocations: 11.98 kB / 414.5 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.3752, allocations: 4 kB / 414.5 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.496e-05/0.3753, allocations: 15.83 kB / 414.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.3753, allocations: 8 kB / 414.5 MB, free: 11.97 MB / 334.1 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 0.0001059/0.3754, allocations: 121.9 kB / 414.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.713e-05/0.3755, allocations: 4 kB / 414.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.416e-05/0.3755, allocations: 15.48 kB / 414.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.3755, allocations: 0 / 414.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.3756, allocations: 4 kB / 414.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3756, allocations: 7.922 kB / 414.6 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003656/0.3759, allocations: 189.6 kB / 414.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.3759, allocations: 3.984 kB / 414.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.216e-05/0.376, allocations: 11.94 kB / 414.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.376, allocations: 8 kB / 414.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.376, allocations: 3.984 kB / 414.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3761, allocations: 7.938 kB / 414.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3761, allocations: 0 / 414.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003872/0.3765, allocations: 496.4 kB / 415.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.727e-05/0.3765, allocations: 85.02 kB / 415.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.3765, allocations: 8 kB / 415.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.3768, allocations: 7.984 kB / 415.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.901e-05/0.3768, allocations: 7.938 kB / 415.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.3768, allocations: 4.188 kB / 415.5 MB, free: 10.91 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.847e-05/0.3769, allocations: 103.6 kB / 415.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3769, allocations: 0 / 415.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003628/0.3772, allocations: 8 kB / 415.6 MB, free: 10.8 MB / 334.1 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 0.0001171/0.3774, allocations: 99.23 kB / 415.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002524/0.3776, allocations: 63.84 kB / 415.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3776, allocations: 320 / 415.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.3778, allocations: 39.91 kB / 415.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005069/0.3783, allocations: 7.938 kB / 415.8 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004208/0.3787, allocations: 199 kB / 416 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.379, allocations: 0.6962 MB / 416.7 MB, free: 9.629 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.086e-05/0.379, allocations: 4 kB / 416.7 MB, free: 9.625 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.05e-05/0.3791, allocations: 7.438 kB / 416.7 MB, free: 9.617 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3791, allocations: 4 kB / 416.7 MB, free: 9.613 MB / 334.1 MB Notification: Performance of Templates: time 0.002791/0.3819, allocations: 0.5517 MB / 417.2 MB, free: 9.062 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_trunk_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches