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: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_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.001241/0.001241, allocations: 107 kB / 16.92 MB, free: 5.684 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.001291/0.001292, allocations: 190.1 kB / 17.85 MB, free: 5.176 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.343/1.343, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001047/0.001047, allocations: 43.03 kB / 300.7 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09025/0.09132, allocations: 49.45 MB / 350.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002593/0.09394, allocations: 1.583 MB / 351.7 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005791/0.09454, allocations: 420.4 kB / 352.1 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.282e-05/0.09459, allocations: 0 / 352.1 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.989e-05/0.09465, allocations: 15.88 kB / 352.2 MB, free: 2.324 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.42e-05/0.09472, allocations: 11.86 kB / 352.2 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001197/0.09484, allocations: 23.86 kB / 352.2 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.205e-05/0.09494, allocations: 59.78 kB / 352.3 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.09511, allocations: 47.89 kB / 352.3 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.164e-05/0.09521, allocations: 27.92 kB / 352.3 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.838e-05/0.09527, allocations: 31.84 kB / 352.4 MB, free: 2.125 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.996e-05/0.0953, allocations: 8 kB / 352.4 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.407e-05/0.09532, allocations: 11.94 kB / 352.4 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.197e-05/0.09534, allocations: 15.92 kB / 352.4 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.684e-05/0.09539, allocations: 31.8 kB / 352.4 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.726e-05/0.09549, allocations: 56.08 kB / 352.5 MB, free: 2.004 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.0955, allocations: 4 kB / 352.5 MB, free: 2 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.0955, allocations: 0 / 352.5 MB, free: 2 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.09552, allocations: 0 / 352.5 MB, free: 2 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.0004365/0.09596, allocations: 383.1 kB / 352.9 MB, free: 1.578 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.096, allocations: 16.03 kB / 352.9 MB, free: 1.562 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.139e-05/0.09604, allocations: 34.73 kB / 352.9 MB, free: 1.52 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.693e-05/0.09608, allocations: 12.84 kB / 352.9 MB, free: 1.508 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001067/0.09619, allocations: 176.3 kB / 353.1 MB, free: 1.297 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.09621, allocations: 4.375 kB / 353.1 MB, free: 1.293 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.09623, allocations: 7.938 kB / 353.1 MB, free: 1.285 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/0.09644, allocations: 116 kB / 353.2 MB, free: 1.152 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.09646, allocations: 0 / 353.2 MB, free: 1.152 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.09647, allocations: 7.984 kB / 353.2 MB, free: 1.145 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.09648, allocations: 4 kB / 353.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/0.09666, allocations: 47.91 kB / 353.3 MB, free: 1.094 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005642/0.09723, allocations: 0.6535 MB / 353.9 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.09741, allocations: 117.1 kB / 354 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.09752, allocations: 56.27 kB / 354.1 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.09755, allocations: 7.938 kB / 354.1 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.603e-05/0.09759, allocations: 34.56 kB / 354.1 MB, free: 96 kB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.0976, allocations: 4 kB / 354.1 MB, free: 92 kB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004263/0.09803, allocations: 122 kB / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.492e-05/0.09811, allocations: 158.2 kB / 354.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.844e-05/0.09821, allocations: 125.7 kB / 354.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.09823, allocations: 33.7 kB / 354.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.601e-05/0.09828, allocations: 95.98 kB / 354.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.113e-05/0.09831, allocations: 19.78 kB / 354.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.856e-05/0.09835, allocations: 21.84 kB / 354.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.09846, allocations: 318.8 kB / 355 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.948e-05/0.09855, allocations: 19.98 kB / 355 MB, free: 15.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.807e-05/0.09864, allocations: 52.28 kB / 355.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001623/0.09881, allocations: 76.2 kB / 355.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.09882, allocations: 3.938 kB / 355.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002213/0.09905, allocations: 101.5 kB / 355.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/0.09908, allocations: 7.984 kB / 355.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.09909, allocations: 4 kB / 355.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.09911, allocations: 3.938 kB / 355.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.019e-05/0.0992, allocations: 8 kB / 355.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.09922, allocations: 7.984 kB / 355.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.523e-05/0.09929, allocations: 7.906 kB / 355.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.045e-06/0.0993, allocations: 4 kB / 355.3 MB, free: 14.81 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.651e-05/0.09938, allocations: 125.9 kB / 355.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.91e-05/0.09948, allocations: 4 kB / 355.4 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.726e-05/0.09951, allocations: 15.52 kB / 355.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.09952, allocations: 7.938 kB / 355.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.09953, allocations: 0 / 355.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.09954, allocations: 7.938 kB / 355.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000352/0.0999, allocations: 177.8 kB / 355.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.09991, allocations: 4 kB / 355.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.882e-05/0.09998, allocations: 15.98 kB / 355.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.09999, allocations: 8 kB / 355.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.1, allocations: 0 / 355.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.1, allocations: 3.938 kB / 355.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.1, allocations: 7.938 kB / 355.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000318/0.1003, allocations: 488.6 kB / 356.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.359e-05/0.1004, allocations: 85.02 kB / 356.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.1004, allocations: 3.984 kB / 356.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002121/0.1006, allocations: 11.94 kB / 356.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.424e-05/0.1007, allocations: 11.98 kB / 356.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.1007, allocations: 3.938 kB / 356.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.674e-05/0.1007, allocations: 95.27 kB / 356.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1007, allocations: 0 / 356.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003766/0.1011, allocations: 12 kB / 356.4 MB, free: 13.64 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 0.0005585/0.1017, allocations: 1.03 MB / 357.4 MB, free: 12.58 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002106/0.1019, allocations: 55.89 kB / 357.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1019, allocations: 320 / 357.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.463e-05/0.102, allocations: 39.86 kB / 357.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000507/0.1025, allocations: 8 kB / 357.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006604/0.1032, allocations: 240.5 kB / 357.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002617/0.1035, allocations: 0.6885 MB / 358.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.207e-05/0.1035, allocations: 4 kB / 358.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.884e-05/0.1036, allocations: 19.42 kB / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1036, allocations: 0 / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01667/0.1203, allocations: 1.605 MB / 360.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.289/7.409, allocations: 10.94 kB / 360.1 MB, free: 9.883 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.csv","/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