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.001231/0.001231, allocations: 172.2 kB / 17.39 MB, free: 4.309 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.587/1.587, allocations: 223.3 MB / 241.4 MB, free: 9.891 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.0008695/0.0008696, allocations: 92.95 kB / 292.6 MB, free: 10.56 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003669/0.0003669, allocations: 11.94 kB / 352.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2806, allocations: 50.41 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1013/0.382, allocations: 77.01 MB / 479.7 MB, free: 3.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002289/0.3822, allocations: 71.91 kB / 479.8 MB, free: 3.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004093/0.3863, allocations: 1.507 MB / 481.3 MB, free: 1.766 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.3864, allocations: 7.938 kB / 481.3 MB, free: 1.758 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.3864, allocations: 7.938 kB / 481.3 MB, free: 1.75 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.0004954/0.3869, allocations: 371.2 kB / 481.7 MB, free: 1.336 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.3869, allocations: 12.03 kB / 481.7 MB, free: 1.324 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.34e-05/0.387, allocations: 8.844 kB / 481.7 MB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001978/0.3872, allocations: 172.3 kB / 481.9 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.3872, allocations: 384 / 481.9 MB, free: 1.109 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.3873, allocations: 8.375 kB / 481.9 MB, free: 1.102 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002516/0.3875, allocations: 115.3 kB / 482 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.3875, allocations: 8.172 kB / 482 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.3876, allocations: 7.938 kB / 482 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.3876, allocations: 4 kB / 482 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001957/0.3878, allocations: 67.89 kB / 482.1 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007335/0.3885, allocations: 0.642 MB / 482.7 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001928/0.3887, allocations: 125.1 kB / 482.9 MB, free: 8 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.3889, allocations: 56.28 kB / 482.9 MB, free: 15.94 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.046e-05/0.3889, allocations: 3.984 kB / 482.9 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.389, allocations: 42.5 kB / 483 MB, free: 15.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.583e-06/0.389, allocations: 0 / 483 MB, free: 15.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004705/0.3894, allocations: 130.1 kB / 483.1 MB, free: 15.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.457e-05/0.3896, allocations: 162.2 kB / 483.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.3897, allocations: 129.7 kB / 483.4 MB, free: 15.42 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.3897, allocations: 25.7 kB / 483.4 MB, free: 15.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.185e-05/0.3898, allocations: 96.08 kB / 483.5 MB, free: 15.29 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.473e-05/0.3898, allocations: 15.72 kB / 483.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.185e-05/0.3898, allocations: 0 / 483.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.39, allocations: 326.7 kB / 483.8 MB, free: 14.95 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.065e-05/0.39, allocations: 27.98 kB / 483.8 MB, free: 14.92 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.721e-05/0.3901, allocations: 56.27 kB / 483.9 MB, free: 14.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001947/0.3904, allocations: 96.2 kB / 484 MB, free: 14.74 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3904, allocations: 0 / 484 MB, free: 14.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002145/0.3906, allocations: 105.5 kB / 484.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.3906, allocations: 4 kB / 484.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.213e-06/0.3906, allocations: 8.156 kB / 484.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.3906, allocations: 0 / 484.1 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.71e-05/0.3907, allocations: 15.98 kB / 484.1 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.3908, allocations: 0 / 484.1 MB, free: 14.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.264e-05/0.3908, allocations: 8 kB / 484.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.075e-05/0.3908, allocations: 7.938 kB / 484.1 MB, free: 14.59 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 9.333e-05/0.3909, allocations: 121.8 kB / 484.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.388e-05/0.391, allocations: 11.91 kB / 484.3 MB, free: 14.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.935e-05/0.3911, allocations: 7.531 kB / 484.3 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.3911, allocations: 7.938 kB / 484.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3911, allocations: 3.938 kB / 484.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3911, allocations: 4 kB / 484.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003655/0.3915, allocations: 185.6 kB / 484.5 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3915, allocations: 4 kB / 484.5 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.854e-05/0.3916, allocations: 15.98 kB / 484.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3916, allocations: 0 / 484.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.474e-05/0.3916, allocations: 8 kB / 484.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.3916, allocations: 7.938 kB / 484.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3916, allocations: 0 / 484.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003682/0.392, allocations: 0.4927 MB / 485 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.734e-05/0.392, allocations: 89.06 kB / 485.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.563e-05/0.3921, allocations: 8 kB / 485.1 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001947/0.3923, allocations: 8 kB / 485.1 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.901e-05/0.3923, allocations: 15.92 kB / 485.1 MB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.3923, allocations: 4 kB / 485.1 MB, free: 13.5 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.719e-05/0.3924, allocations: 91.27 kB / 485.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3924, allocations: 4 kB / 485.2 MB, free: 13.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003496/0.3928, allocations: 11.94 kB / 485.2 MB, free: 13.4 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.0001113/0.3929, allocations: 95.19 kB / 485.3 MB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002275/0.3931, allocations: 75.89 kB / 485.4 MB, free: 13.22 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.3931, allocations: 0 / 485.4 MB, free: 13.22 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.551e-05/0.3932, allocations: 36.48 kB / 485.4 MB, free: 13.19 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004876/0.3937, allocations: 12.05 kB / 485.4 MB, free: 13.18 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000542/0.3943, allocations: 231.9 kB / 485.7 MB, free: 12.91 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.3947, allocations: 0.6926 MB / 486.4 MB, free: 12.19 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.029e-05/0.3947, allocations: 0 / 486.4 MB, free: 12.19 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.2e-05/0.3948, allocations: 19.36 kB / 486.4 MB, free: 12.17 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3948, allocations: 0 / 486.4 MB, free: 12.17 MB / 362.7 MB Notification: Performance of Templates: time 0.002404/0.3972, allocations: 446.5 kB / 486.8 MB, free: 11.74 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/jenkins1/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