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.001498/0.001498, allocations: 106.5 kB / 17.58 MB, free: 5.559 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.001632/0.001632, allocations: 192 kB / 18.51 MB, free: 4.641 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.392/1.392, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001362/0.001362, allocations: 51.92 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08777/0.08914, allocations: 46.64 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.00377/0.09295, allocations: 1.579 MB / 329 MB, free: 2.789 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008945/0.09389, allocations: 472.6 kB / 329.4 MB, free: 2.32 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.214e-05/0.09401, allocations: 0 / 329.4 MB, free: 2.32 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.077e-05/0.09411, allocations: 11.86 kB / 329.4 MB, free: 2.309 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001077/0.09423, allocations: 11.88 kB / 329.4 MB, free: 2.297 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001735/0.09441, allocations: 11.98 kB / 329.5 MB, free: 2.285 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000127/0.09455, allocations: 63.72 kB / 329.5 MB, free: 2.223 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002034/0.09476, allocations: 55.95 kB / 329.6 MB, free: 2.168 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.0949, allocations: 27.86 kB / 329.6 MB, free: 2.141 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.327e-05/0.09499, allocations: 35.78 kB / 329.6 MB, free: 2.105 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.22e-05/0.09502, allocations: 4 kB / 329.6 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.586e-05/0.09504, allocations: 4 kB / 329.6 MB, free: 2.098 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.067e-05/0.09508, allocations: 11.94 kB / 329.6 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.571e-05/0.09513, allocations: 27.86 kB / 329.7 MB, free: 2.059 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001465/0.09528, allocations: 71.94 kB / 329.7 MB, free: 1.988 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.0953, allocations: 4 kB / 329.8 MB, free: 1.984 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.0953, allocations: 0 / 329.8 MB, free: 1.984 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.09532, allocations: 0 / 329.8 MB, free: 1.984 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.0005358/0.09586, allocations: 383.1 kB / 330.1 MB, free: 1.562 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.09591, allocations: 8.031 kB / 330.1 MB, free: 1.555 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.035e-05/0.09596, allocations: 42.73 kB / 330.2 MB, free: 1.504 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.195e-05/0.09599, allocations: 8.844 kB / 330.2 MB, free: 1.496 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.09612, allocations: 168.3 kB / 330.3 MB, free: 1.293 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.09615, allocations: 8.375 kB / 330.4 MB, free: 1.285 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.772e-05/0.09617, allocations: 8.312 kB / 330.4 MB, free: 1.277 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000247/0.09642, allocations: 118.1 kB / 330.5 MB, free: 1.141 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.09644, allocations: 4 kB / 330.5 MB, free: 1.137 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.09646, allocations: 0 / 330.5 MB, free: 1.137 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.09647, allocations: 0 / 330.5 MB, free: 1.137 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.09665, allocations: 63.89 kB / 330.5 MB, free: 1.074 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006204/0.09728, allocations: 0.6457 MB / 331.2 MB, free: 372 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001828/0.09747, allocations: 117 kB / 331.3 MB, free: 208 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.0976, allocations: 56.39 kB / 331.4 MB, free: 136 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.09763, allocations: 3.938 kB / 331.4 MB, free: 132 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.415e-05/0.09766, allocations: 38.56 kB / 331.4 MB, free: 84 kB / 270.1 MB Notification: Performance of pre-optimization done (n=6): time 1.382e-06/0.09766, allocations: 0 / 331.4 MB, free: 84 kB / 270.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004828/0.09815, allocations: 117.5 kB / 331.5 MB, free: 15.96 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.346e-05/0.09825, allocations: 166.8 kB / 331.7 MB, free: 15.76 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.09836, allocations: 125.7 kB / 331.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.09839, allocations: 29.64 kB / 331.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.867e-05/0.09847, allocations: 100 kB / 331.9 MB, free: 15.49 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.196e-05/0.09849, allocations: 11.81 kB / 331.9 MB, free: 15.48 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.139e-05/0.09854, allocations: 17.72 kB / 332 MB, free: 15.46 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.09869, allocations: 326.8 kB / 332.3 MB, free: 15.13 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.346e-05/0.09878, allocations: 19.98 kB / 332.3 MB, free: 15.11 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.52e-05/0.09888, allocations: 48.28 kB / 332.3 MB, free: 15.05 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001745/0.09906, allocations: 88.19 kB / 332.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.09907, allocations: 0 / 332.4 MB, free: 14.95 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000228/0.09931, allocations: 93.53 kB / 332.5 MB, free: 14.85 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/0.09933, allocations: 4 kB / 332.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.09934, allocations: 0 / 332.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.09937, allocations: 4.156 kB / 332.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.09948, allocations: 15.98 kB / 332.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.0995, allocations: 3.938 kB / 332.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.441e-05/0.09958, allocations: 19.97 kB / 332.6 MB, free: 14.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.366e-06/0.09959, allocations: 7.938 kB / 332.6 MB, free: 14.79 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 0.0001076/0.09971, allocations: 121.8 kB / 332.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.403e-05/0.09981, allocations: 7.938 kB / 332.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.839e-05/0.09984, allocations: 11.48 kB / 332.7 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.09985, allocations: 4 kB / 332.7 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.09986, allocations: 7.938 kB / 332.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.09987, allocations: 0 / 332.7 MB, free: 14.63 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003695/0.1002, allocations: 185.6 kB / 332.9 MB, free: 14.4 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1003, allocations: 0 / 332.9 MB, free: 14.4 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.652e-05/0.1003, allocations: 15.98 kB / 332.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.1003, allocations: 0 / 332.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.1004, allocations: 4 kB / 332.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1004, allocations: 0 / 332.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.1004, allocations: 7.875 kB / 332.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003382/0.1007, allocations: 492.6 kB / 333.4 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.666e-05/0.1008, allocations: 85 kB / 333.5 MB, free: 13.77 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.894e-05/0.1008, allocations: 8 kB / 333.5 MB, free: 13.77 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.101, allocations: 8 kB / 333.5 MB, free: 13.76 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.154e-05/0.1011, allocations: 19.8 kB / 333.5 MB, free: 13.74 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-06/0.1011, allocations: 4 kB / 333.5 MB, free: 13.73 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.367e-05/0.1011, allocations: 99.64 kB / 333.6 MB, free: 13.64 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1011, allocations: 0 / 333.6 MB, free: 13.64 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004028/0.1015, allocations: 8 kB / 333.6 MB, free: 13.63 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.0006382/0.1022, allocations: 1.018 MB / 334.7 MB, free: 12.58 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002288/0.1024, allocations: 71.83 kB / 334.7 MB, free: 12.51 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1024, allocations: 0 / 334.7 MB, free: 12.51 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.804e-05/0.1026, allocations: 31.92 kB / 334.8 MB, free: 12.48 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005009/0.1031, allocations: 8 kB / 334.8 MB, free: 12.47 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000713/0.1038, allocations: 224.9 kB / 335 MB, free: 12.2 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003081/0.1041, allocations: 0.6963 MB / 335.7 MB, free: 11.48 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.502e-05/0.1041, allocations: 3.984 kB / 335.7 MB, free: 11.47 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.971e-05/0.1042, allocations: 19.44 kB / 335.7 MB, free: 11.45 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1042, allocations: 0 / 335.7 MB, free: 11.45 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01637/0.1206, allocations: 1.601 MB / 337.3 MB, free: 9.801 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.317/7.437, allocations: 3.75 kB / 337.3 MB, free: 9.797 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches