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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001018/0.001018, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008191/0.0008192, allocations: 101.9 kB / 286.7 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.684e-05/1.685e-05, allocations: 4 kB / 343.7 MB, free: 8.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1043, allocations: 51.47 MB / 395.2 MB, free: 4.785 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3172/0.4216, allocations: 77.06 MB / 472.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001642/0.4218, allocations: 65.88 kB / 472.3 MB, free: 14.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003758/0.4256, allocations: 1.613 MB / 473.9 MB, free: 13.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4256, allocations: 0.6094 kB / 473.9 MB, free: 13.33 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.4256, allocations: 0 / 473.9 MB, free: 13.33 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.0002788/0.4259, allocations: 367.6 kB / 474.2 MB, free: 12.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.4259, allocations: 8.031 kB / 474.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.4261, allocations: 23.91 kB / 474.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.978e-05/0.4261, allocations: 167.9 kB / 474.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.4262, allocations: 5.562 kB / 474.4 MB, free: 12.72 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.4262, allocations: 4 kB / 474.4 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.608e-05/0.4263, allocations: 22.86 kB / 474.5 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.4264, allocations: 91.38 kB / 474.6 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.4264, allocations: 8 kB / 474.6 MB, free: 12.6 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.4264, allocations: 0.5156 kB / 474.6 MB, free: 12.6 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.967e-06/0.4264, allocations: 0 / 474.6 MB, free: 12.6 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003909/0.4268, allocations: 0.6108 MB / 475.2 MB, free: 11.99 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.378e-05/0.4269, allocations: 105.5 kB / 475.3 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.17e-05/0.427, allocations: 40.7 kB / 475.3 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.801e-05/0.427, allocations: 0 / 475.3 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.573e-05/0.427, allocations: 43.05 kB / 475.4 MB, free: 11.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 8.82e-07/0.427, allocations: 4 kB / 475.4 MB, free: 11.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002103/0.4272, allocations: 65.05 kB / 475.4 MB, free: 11.69 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.021e-05/0.4273, allocations: 159 kB / 475.6 MB, free: 11.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.84e-05/0.4274, allocations: 108.7 kB / 475.7 MB, free: 11.4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.009e-05/0.4274, allocations: 26.36 kB / 475.7 MB, free: 11.37 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.098e-05/0.4274, allocations: 98.16 kB / 475.8 MB, free: 11.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.737e-05/0.4274, allocations: 15.7 kB / 475.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-06/0.4274, allocations: 0 / 475.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.85e-05/0.4275, allocations: 325.5 kB / 476.1 MB, free: 10.94 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.23e-05/0.4275, allocations: 7.312 kB / 476.2 MB, free: 10.94 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.755e-05/0.4276, allocations: 40.88 kB / 476.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.005e-05/0.4276, allocations: 19.58 kB / 476.2 MB, free: 10.88 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.4276, allocations: 0 / 476.2 MB, free: 10.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.127e-05/0.4277, allocations: 68.95 kB / 476.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.4277, allocations: 4.984 kB / 476.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.4277, allocations: 0 / 476.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.4277, allocations: 4 kB / 476.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.495e-05/0.4278, allocations: 25.72 kB / 476.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.4278, allocations: 0.75 kB / 476.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.31e-05/0.4279, allocations: 14.14 kB / 476.3 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.4279, allocations: 0 / 476.3 MB, free: 10.77 MB / 346.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 () * 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 4.422e-05/0.428, allocations: 109.7 kB / 476.4 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.075e-05/0.4281, allocations: 8.422 kB / 476.4 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.246e-05/0.4281, allocations: 12.41 kB / 476.5 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.4281, allocations: 0 / 476.5 MB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.4281, allocations: 4 kB / 476.5 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.4281, allocations: 4.609 kB / 476.5 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002796/0.4284, allocations: 163.3 kB / 476.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.4284, allocations: 0 / 476.6 MB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.813e-05/0.4285, allocations: 22.83 kB / 476.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.4285, allocations: 0 / 476.6 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.4285, allocations: 4.656 kB / 476.7 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.4285, allocations: 0.6094 kB / 476.7 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.4285, allocations: 7.375 kB / 476.7 MB, free: 10.44 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001512/0.4287, allocations: 0.5023 MB / 477.2 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.213e-05/0.4287, allocations: 85.75 kB / 477.2 MB, free: 9.812 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.4287, allocations: 4.594 kB / 477.3 MB, free: 9.809 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.4289, allocations: 10.02 kB / 477.3 MB, free: 9.801 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.85e-05/0.429, allocations: 11.28 kB / 477.3 MB, free: 9.793 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.429, allocations: 11.5 kB / 477.3 MB, free: 9.789 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.705e-05/0.429, allocations: 88.97 kB / 477.4 MB, free: 9.707 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.429, allocations: 4 kB / 477.4 MB, free: 9.703 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003546/0.4294, allocations: 11.91 kB / 477.4 MB, free: 9.691 MB / 346.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 () * 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 8.553e-05/0.4295, allocations: 91.91 kB / 477.5 MB, free: 9.59 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.095e-05/0.4296, allocations: 32.23 kB / 477.5 MB, free: 9.566 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.4296, allocations: 0 / 477.5 MB, free: 9.566 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.807e-05/0.4296, allocations: 23.95 kB / 477.5 MB, free: 9.551 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.4299, allocations: 8.672 kB / 477.5 MB, free: 9.547 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002641/0.4302, allocations: 124.6 kB / 477.7 MB, free: 9.41 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001411/0.4303, allocations: 0.6947 MB / 478.4 MB, free: 8.699 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.202e-05/0.4304, allocations: 0.8438 kB / 478.4 MB, free: 8.699 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.135e-05/0.4304, allocations: 11.44 kB / 478.4 MB, free: 8.688 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4304, allocations: 4 kB / 478.4 MB, free: 8.684 MB / 346.7 MB Notification: Performance of Templates: time 0.001902/0.4323, allocations: 405.3 kB / 478.8 MB, free: 8.473 MB / 346.7 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","../files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches