Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00099/0.00099, allocations: 108.7 kB / 17.16 MB, free: 6.305 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.0009576/0.0009575, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.24/1.24, allocations: 205.1 MB / 223.9 MB, free: 12.39 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 47.92 kB / 280.1 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07702/0.07815, allocations: 46.62 MB / 326.7 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002405/0.08059, allocations: 1.641 MB / 328.3 MB, free: 3.133 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005821/0.08119, allocations: 467.8 kB / 328.8 MB, free: 2.668 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.046e-05/0.08124, allocations: 4 kB / 328.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.762e-05/0.08129, allocations: 3.938 kB / 328.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.317e-05/0.08136, allocations: 7.922 kB / 328.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001285/0.0815, allocations: 15.98 kB / 328.8 MB, free: 2.637 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 7.994e-05/0.08159, allocations: 59.78 kB / 328.9 MB, free: 2.578 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.08175, allocations: 51.91 kB / 328.9 MB, free: 2.527 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.647e-05/0.08184, allocations: 23.86 kB / 328.9 MB, free: 2.504 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.31e-05/0.08192, allocations: 31.84 kB / 329 MB, free: 2.473 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.32e-05/0.08195, allocations: 4 kB / 329 MB, free: 2.469 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.399e-05/0.08197, allocations: 4 kB / 329 MB, free: 2.465 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.08199, allocations: 7.938 kB / 329 MB, free: 2.457 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 3.243e-05/0.08203, allocations: 27.86 kB / 329 MB, free: 2.43 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 8.273e-05/0.08212, allocations: 64 kB / 329.1 MB, free: 2.367 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.08213, allocations: 7.938 kB / 329.1 MB, free: 2.359 MB / 270.1 MB Notification: Performance of FrontEnd: time 7.02e-07/0.08213, allocations: 3.938 kB / 329.1 MB, free: 2.355 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.166e-06/0.08214, allocations: 0 / 329.1 MB, free: 2.355 MB / 270.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.0004235/0.08257, allocations: 379.2 kB / 329.5 MB, free: 1.938 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.08261, allocations: 8.031 kB / 329.5 MB, free: 1.93 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.622e-05/0.08265, allocations: 38.75 kB / 329.5 MB, free: 1.883 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.63e-05/0.08268, allocations: 12.83 kB / 329.5 MB, free: 1.871 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.838e-05/0.08279, allocations: 172.3 kB / 329.7 MB, free: 1.664 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.08281, allocations: 4.375 kB / 329.7 MB, free: 1.66 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.08283, allocations: 8.375 kB / 329.7 MB, free: 1.652 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.08303, allocations: 114 kB / 329.8 MB, free: 1.52 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.08305, allocations: 0 / 329.8 MB, free: 1.52 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.08306, allocations: 7.984 kB / 329.8 MB, free: 1.512 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.217e-06/0.08307, allocations: 0 / 329.8 MB, free: 1.512 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001597/0.08324, allocations: 63.89 kB / 329.9 MB, free: 1.449 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000572/0.08381, allocations: 0.6457 MB / 330.5 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001665/0.08399, allocations: 121 kB / 330.6 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.0841, allocations: 52.33 kB / 330.7 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.08412, allocations: 4 kB / 330.7 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.08415, allocations: 46.5 kB / 330.8 MB, free: 460 kB / 270.1 MB Notification: Performance of pre-optimization done (n=6): time 1.072e-06/0.08416, allocations: 0 / 330.8 MB, free: 460 kB / 270.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004054/0.08457, allocations: 117.5 kB / 330.9 MB, free: 336 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.828e-05/0.08465, allocations: 154.8 kB / 331 MB, free: 144 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.08476, allocations: 133.7 kB / 331.1 MB, free: 0 / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.08478, allocations: 25.81 kB / 331.2 MB, free: 15.96 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.264e-05/0.08484, allocations: 95.98 kB / 331.3 MB, free: 15.87 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.08486, allocations: 15.81 kB / 331.3 MB, free: 15.85 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.096e-05/0.08491, allocations: 21.7 kB / 331.3 MB, free: 15.82 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.08502, allocations: 318.7 kB / 331.6 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.57e-05/0.0851, allocations: 23.97 kB / 331.6 MB, free: 15.48 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.952e-05/0.08519, allocations: 52.28 kB / 331.7 MB, free: 15.42 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001585/0.08536, allocations: 80.2 kB / 331.8 MB, free: 15.32 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.08537, allocations: 4 kB / 331.8 MB, free: 15.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001974/0.08557, allocations: 89.53 kB / 331.9 MB, free: 15.23 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.08559, allocations: 8 kB / 331.9 MB, free: 15.22 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.0856, allocations: 0 / 331.9 MB, free: 15.22 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.08562, allocations: 288 / 331.9 MB, free: 15.22 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.812e-05/0.08571, allocations: 23.98 kB / 331.9 MB, free: 15.2 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.08573, allocations: 7.922 kB / 331.9 MB, free: 15.19 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.411e-05/0.0858, allocations: 15.83 kB / 331.9 MB, free: 15.17 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.08582, allocations: 4 kB / 331.9 MB, free: 15.17 MB / 286.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 8.799e-05/0.08591, allocations: 121.8 kB / 332 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.605e-05/0.086, allocations: 4 kB / 332 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.795e-05/0.08604, allocations: 19.47 kB / 332.1 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.08604, allocations: 0 / 332.1 MB, free: 15.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.08605, allocations: 11.94 kB / 332.1 MB, free: 15 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.08606, allocations: 3.938 kB / 332.1 MB, free: 15 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003539/0.08642, allocations: 185.6 kB / 332.3 MB, free: 14.77 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.08643, allocations: 0 / 332.3 MB, free: 14.77 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.772e-05/0.0865, allocations: 15.98 kB / 332.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.08651, allocations: 0 / 332.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.08652, allocations: 0 / 332.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.08653, allocations: 4 kB / 332.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.08654, allocations: 3.938 kB / 332.3 MB, free: 14.75 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003194/0.08686, allocations: 492.5 kB / 332.8 MB, free: 14.25 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.965e-05/0.08691, allocations: 85.02 kB / 332.8 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.08693, allocations: 4 kB / 332.8 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.08714, allocations: 15.98 kB / 332.9 MB, free: 14.12 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.221e-05/0.08719, allocations: 11.92 kB / 332.9 MB, free: 14.11 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.0872, allocations: 4 kB / 332.9 MB, free: 14.11 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.68e-05/0.08726, allocations: 95.2 kB / 333 MB, free: 14.02 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.08726, allocations: 0 / 333 MB, free: 14.02 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003668/0.08763, allocations: 8 kB / 333 MB, free: 14.01 MB / 286.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.0005599/0.0882, allocations: 1.019 MB / 334 MB, free: 12.96 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001905/0.0884, allocations: 59.84 kB / 334.1 MB, free: 12.9 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.08841, allocations: 4 kB / 334.1 MB, free: 12.9 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.208e-05/0.08851, allocations: 35.91 kB / 334.1 MB, free: 12.86 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00049/0.08901, allocations: 7.375 kB / 334.1 MB, free: 12.86 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00062/0.08963, allocations: 254.6 kB / 334.4 MB, free: 12.56 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.08991, allocations: 0.6965 MB / 335 MB, free: 11.84 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.488e-05/0.08995, allocations: 7.984 kB / 335.1 MB, free: 11.83 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.594e-05/0.09, allocations: 19.42 kB / 335.1 MB, free: 11.81 MB / 286.1 MB Notification: Performance of SimCode: time 2.91e-07/0.09001, allocations: 0 / 335.1 MB, free: 11.81 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02043/0.1104, allocations: 1.406 MB / 336.5 MB, free: 10.38 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002718/0.1108, allocations: 173.8 kB / 336.6 MB, free: 10.13 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.742/1.852, allocations: 0 / 336.6 MB, free: 10.13 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches