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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 181.9 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008761/0.0008761, allocations: 95.31 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002687/0.0002687, allocations: 15.94 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2463, allocations: 50.41 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.108/0.3543, allocations: 76.97 MB / 478.5 MB, free: 3.492 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.3546, allocations: 67.97 kB / 478.5 MB, free: 3.426 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004173/0.3587, allocations: 1.513 MB / 480 MB, free: 1.914 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3588, allocations: 0 / 480 MB, free: 1.914 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.808e-06/0.3588, allocations: 4 kB / 480 MB, free: 1.91 MB / 346.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.0004495/0.3592, allocations: 378 kB / 480.4 MB, free: 1.496 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.3593, allocations: 12.02 kB / 480.4 MB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.179e-05/0.3593, allocations: 11.86 kB / 480.4 MB, free: 1.473 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.3595, allocations: 167.1 kB / 480.6 MB, free: 1.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.867e-05/0.3595, allocations: 11.88 kB / 480.6 MB, free: 1.258 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.3595, allocations: 8 kB / 480.6 MB, free: 1.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002435/0.3598, allocations: 106 kB / 480.7 MB, free: 1.125 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.3598, allocations: 8 kB / 480.7 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.3598, allocations: 0 / 480.7 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.3598, allocations: 3.953 kB / 480.7 MB, free: 1.113 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.36, allocations: 63.89 kB / 480.8 MB, free: 1.051 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006563/0.3607, allocations: 0.6458 MB / 481.4 MB, free: 348 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001781/0.3609, allocations: 121.1 kB / 481.6 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.3609, allocations: 4 kB / 481.6 MB, free: 176 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.361, allocations: 38.56 kB / 481.6 MB, free: 128 kB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.573e-06/0.361, allocations: 0 / 481.6 MB, free: 128 kB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004827/0.3615, allocations: 141.8 kB / 481.7 MB, free: 15.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.94e-05/0.3616, allocations: 154.2 kB / 481.9 MB, free: 15.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.3617, allocations: 121.1 kB / 482 MB, free: 15.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.3617, allocations: 33.7 kB / 482 MB, free: 15.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.874e-05/0.3618, allocations: 91.98 kB / 482.1 MB, free: 15.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.883e-05/0.3618, allocations: 19.8 kB / 482.2 MB, free: 15.51 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.9e-06/0.3618, allocations: 0 / 482.2 MB, free: 15.51 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.362, allocations: 318.8 kB / 482.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.463e-05/0.3621, allocations: 19.98 kB / 482.5 MB, free: 15.17 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001025/0.3622, allocations: 60.27 kB / 482.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.555e-05/0.3623, allocations: 31.98 kB / 482.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.3623, allocations: 0 / 482.6 MB, free: 15.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002433/0.3626, allocations: 109.5 kB / 482.7 MB, free: 14.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.3626, allocations: 12.03 kB / 482.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.3626, allocations: 0 / 482.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.3627, allocations: 4 kB / 482.7 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.3628, allocations: 15.98 kB / 482.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.3628, allocations: 4 kB / 482.7 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.852e-05/0.3629, allocations: 11.98 kB / 482.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-06/0.3629, allocations: 0 / 482.7 MB, free: 14.91 MB / 362.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 (part.booleanExpression.y,booleanStep.y,integerStep.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001158/0.363, allocations: 121.8 kB / 482.8 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.469e-05/0.3631, allocations: 15.84 kB / 482.9 MB, free: 14.76 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.605e-05/0.3632, allocations: 11.53 kB / 482.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.3632, allocations: 128 / 482.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/0.3632, allocations: 8 kB / 482.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.3632, allocations: 3.984 kB / 482.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003732/0.3636, allocations: 185.5 kB / 483.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3636, allocations: 0 / 483.1 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.932e-05/0.3637, allocations: 12 kB / 483.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.65e-06/0.3637, allocations: 11.95 kB / 483.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.3637, allocations: 3.938 kB / 483.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.3637, allocations: 7.922 kB / 483.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.3637, allocations: 7.938 kB / 483.1 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004259/0.3642, allocations: 0.5268 MB / 483.6 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.365e-05/0.3642, allocations: 89.02 kB / 483.7 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.3642, allocations: 8 kB / 483.7 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001992/0.3645, allocations: 7.984 kB / 483.7 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.634e-05/0.3645, allocations: 7.953 kB / 483.7 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-06/0.3645, allocations: 11.92 kB / 483.8 MB, free: 13.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.31e-05/0.3646, allocations: 87.28 kB / 483.8 MB, free: 13.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3646, allocations: 0 / 483.8 MB, free: 13.67 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000348/0.365, allocations: 19.94 kB / 483.9 MB, free: 13.65 MB / 362.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 (part.booleanExpression.y,booleanStep.y,integerStep.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001172/0.3651, allocations: 99.23 kB / 484 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002431/0.3653, allocations: 64.09 kB / 484 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3653, allocations: 4.125 kB / 484 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.3655, allocations: 39.92 kB / 484.1 MB, free: 13.44 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002708/0.3657, allocations: 7.984 kB / 484.1 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000464/0.3662, allocations: 236.2 kB / 484.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002704/0.3665, allocations: 0.6887 MB / 485 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.946e-05/0.3665, allocations: 11.91 kB / 485 MB, free: 12.44 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.575e-05/0.3666, allocations: 11.38 kB / 485 MB, free: 12.43 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3666, allocations: 0 / 485 MB, free: 12.43 MB / 362.7 MB Notification: Performance of Templates: time 0.002249/0.3688, allocations: 447.7 kB / 485.5 MB, free: 11.99 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches