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) 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) 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007076/0.000708, allocations: 88.69 kB / 17.31 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007507/0.0007507, allocations: 179.9 kB / 18.21 MB, free: 5.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.262/1.262, allocations: 223.3 MB / 242.3 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003429/0.000343, allocations: 8.625 kB / 302.1 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07188/0.07225, allocations: 50.42 MB / 352.5 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001429/0.07369, allocations: 1.309 MB / 353.8 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005335/0.07424, allocations: 411 kB / 354.2 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.048e-05/0.07429, allocations: 4 kB / 354.2 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.468e-05/0.07432, allocations: 3.984 kB / 354.2 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.513e-05/0.0744, allocations: 7.875 kB / 354.2 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001075/0.07451, allocations: 19.98 kB / 354.2 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.778e-05/0.0746, allocations: 59.78 kB / 354.3 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001399/0.07474, allocations: 47.89 kB / 354.3 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.68e-05/0.07483, allocations: 23.86 kB / 354.4 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.174e-05/0.07489, allocations: 19.86 kB / 354.4 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.603e-05/0.07491, allocations: 4 kB / 354.4 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.636e-06/0.07492, allocations: 0 / 354.4 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.701e-05/0.07495, allocations: 7.938 kB / 354.4 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4e-05/0.075, allocations: 53.5 kB / 354.4 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 6.635e-05/0.07507, allocations: 43.91 kB / 354.5 MB, free: 1.438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.07508, allocations: 0 / 354.5 MB, free: 1.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.07508, allocations: 4 kB / 354.5 MB, free: 1.434 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.865e-06/0.07509, allocations: 0 / 354.5 MB, free: 1.434 MB / 286.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.0003774/0.07547, allocations: 367.5 kB / 354.9 MB, free: 1.027 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.886e-05/0.07551, allocations: 8.031 kB / 354.9 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.751e-05/0.07554, allocations: 12.84 kB / 354.9 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.531e-05/0.07565, allocations: 180.2 kB / 355 MB, free: 0.793 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.07567, allocations: 8.375 kB / 355.1 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.07569, allocations: 8.125 kB / 355.1 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002099/0.07591, allocations: 117.3 kB / 355.2 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.07592, allocations: 3.938 kB / 355.2 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.07594, allocations: 4 kB / 355.2 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.07595, allocations: 0 / 355.2 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001917/0.07614, allocations: 67.89 kB / 355.3 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005617/0.07671, allocations: 0.6459 MB / 355.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001655/0.07689, allocations: 125 kB / 356 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.07701, allocations: 60.34 kB / 356.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.07704, allocations: 4 kB / 356.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.07707, allocations: 34.56 kB / 356.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 2.445e-06/0.07707, allocations: 0 / 356.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004453/0.07752, allocations: 149.8 kB / 356.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.522e-05/0.07759, allocations: 158.2 kB / 356.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.078e-05/0.07768, allocations: 125.7 kB / 356.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.166e-05/0.0777, allocations: 25.7 kB / 356.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.822e-05/0.07775, allocations: 111.9 kB / 356.7 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.778e-05/0.07777, allocations: 7.812 kB / 356.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.753e-05/0.07781, allocations: 21.84 kB / 356.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.996e-05/0.07789, allocations: 314.8 kB / 357 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.697e-05/0.07798, allocations: 27.98 kB / 357 MB, free: 14.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.521e-05/0.07809, allocations: 60.27 kB / 357.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001837/0.07828, allocations: 92.14 kB / 357.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.07829, allocations: 0 / 357.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002303/0.07853, allocations: 109.6 kB / 357.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.07855, allocations: 8 kB / 357.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.07856, allocations: 3.984 kB / 357.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.07858, allocations: 4 kB / 357.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.578e-05/0.07868, allocations: 19.86 kB / 357.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.07869, allocations: 4 kB / 357.3 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.672e-05/0.07876, allocations: 8 kB / 357.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.321e-06/0.07878, allocations: 4.094 kB / 357.3 MB, free: 14.23 MB / 302.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 7.29e-05/0.07886, allocations: 125.8 kB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.084e-05/0.07895, allocations: 7.906 kB / 357.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.424e-05/0.07898, allocations: 11.53 kB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.07899, allocations: 7.938 kB / 357.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.079, allocations: 0 / 357.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.07901, allocations: 0 / 357.5 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003541/0.07937, allocations: 185.6 kB / 357.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.07938, allocations: 0 / 357.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.101e-05/0.07945, allocations: 23.92 kB / 357.7 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.07947, allocations: 4 kB / 357.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.07948, allocations: 0 / 357.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.07949, allocations: 3.938 kB / 357.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.07949, allocations: 4 kB / 357.7 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003225/0.07982, allocations: 0.4888 MB / 358.2 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.019e-05/0.07986, allocations: 85.28 kB / 358.3 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.614e-05/0.07988, allocations: 8 kB / 358.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.0801, allocations: 15.94 kB / 358.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.255e-05/0.08015, allocations: 11.98 kB / 358.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.08017, allocations: 0 / 358.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.609e-05/0.08022, allocations: 95.2 kB / 358.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.08022, allocations: 0 / 358.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003828/0.08061, allocations: 19.84 kB / 358.4 MB, free: 13.04 MB / 302.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 6.577e-05/0.08068, allocations: 103.2 kB / 358.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002165/0.08091, allocations: 67.89 kB / 358.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.08092, allocations: 0 / 358.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.08103, allocations: 40.36 kB / 358.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000509/0.08155, allocations: 8 kB / 358.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003676/0.08192, allocations: 263.8 kB / 358.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.08215, allocations: 0.6887 MB / 359.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.253e-05/0.08218, allocations: 15.42 kB / 359.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.08219, allocations: 0 / 359.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of Templates: time 0.00187/0.08406, allocations: 0.856 MB / 360.5 MB, free: 10.93 MB / 302.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches