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.001037/0.001037, allocations: 107.2 kB / 17.06 MB, free: 5.793 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.000985/0.000985, allocations: 200 kB / 18.01 MB, free: 4.918 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.427/1.427, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001034/0.001034, allocations: 47.94 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2455, allocations: 49.43 MB / 400.2 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002641/0.2482, allocations: 1.603 MB / 401.8 MB, free: 7.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006377/0.2489, allocations: 422.4 kB / 402.2 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.085e-05/0.2489, allocations: 4 kB / 402.2 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.723e-05/0.249, allocations: 11.86 kB / 402.2 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.54e-05/0.2491, allocations: 7.875 kB / 402.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001339/0.2492, allocations: 19.97 kB / 402.3 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000103/0.2493, allocations: 67.7 kB / 402.3 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.2495, allocations: 43.97 kB / 402.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.13e-05/0.2496, allocations: 31.8 kB / 402.4 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.884e-05/0.2497, allocations: 31.84 kB / 402.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.28e-05/0.2497, allocations: 4 kB / 402.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.212e-05/0.2497, allocations: 11.94 kB / 402.5 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.367e-05/0.2497, allocations: 15.92 kB / 402.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.306e-05/0.2498, allocations: 31.8 kB / 402.5 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00013/0.2499, allocations: 62.89 kB / 402.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.2499, allocations: 0 / 402.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2499, allocations: 0 / 402.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.2499, allocations: 0 / 402.6 MB, free: 6.438 MB / 318.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.0004707/0.2504, allocations: 383.1 kB / 402.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.2505, allocations: 12.03 kB / 403 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.831e-05/0.2505, allocations: 38.73 kB / 403 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.601e-05/0.2505, allocations: 8.891 kB / 403 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.2507, allocations: 176.3 kB / 403.2 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.521e-05/0.2507, allocations: 16.12 kB / 403.2 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.2507, allocations: 7.938 kB / 403.2 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002136/0.2509, allocations: 114 kB / 403.3 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.2509, allocations: 0 / 403.3 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.251, allocations: 4 kB / 403.3 MB, free: 5.578 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.251, allocations: 4 kB / 403.3 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001822/0.2512, allocations: 59.83 kB / 403.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005928/0.2518, allocations: 0.6381 MB / 404 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.2519, allocations: 112.9 kB / 404.1 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000116/0.2521, allocations: 60.39 kB / 404.2 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/0.2521, allocations: 4 kB / 404.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.2521, allocations: 34.56 kB / 404.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.132e-06/0.2521, allocations: 4 kB / 404.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004333/0.2526, allocations: 125.6 kB / 404.3 MB, free: 4.402 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.739e-05/0.2526, allocations: 158.2 kB / 404.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.2528, allocations: 121.8 kB / 404.6 MB, free: 4.082 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.2528, allocations: 29.7 kB / 404.6 MB, free: 4.047 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5e-05/0.2528, allocations: 96.09 kB / 404.7 MB, free: 3.949 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.714e-05/0.2529, allocations: 28.2 kB / 404.8 MB, free: 3.922 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.951e-05/0.2529, allocations: 25.72 kB / 404.8 MB, free: 3.891 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.253, allocations: 314.8 kB / 405.1 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.963e-05/0.2531, allocations: 19.98 kB / 405.1 MB, free: 3.555 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.649e-05/0.2532, allocations: 48.28 kB / 405.2 MB, free: 3.492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001736/0.2534, allocations: 80.2 kB / 405.2 MB, free: 3.398 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2534, allocations: 0 / 405.2 MB, free: 3.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002125/0.2536, allocations: 101.5 kB / 405.3 MB, free: 3.293 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.2536, allocations: 7.984 kB / 405.4 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2537, allocations: 7.938 kB / 405.4 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.2537, allocations: 3.938 kB / 405.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.428e-05/0.2538, allocations: 8 kB / 405.4 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.2538, allocations: 7.938 kB / 405.4 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.796e-05/0.2539, allocations: 11.94 kB / 405.4 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.2539, allocations: 12.09 kB / 405.4 MB, free: 3.234 MB / 318.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.56e-05/0.254, allocations: 113.8 kB / 405.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.902e-05/0.2541, allocations: 4 kB / 405.5 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.29e-05/0.2541, allocations: 19.45 kB / 405.5 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.2541, allocations: 0 / 405.5 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.2541, allocations: 3.984 kB / 405.5 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.2541, allocations: 4 kB / 405.5 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003845/0.2545, allocations: 185.6 kB / 405.7 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.2545, allocations: 0 / 405.7 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.934e-05/0.2546, allocations: 16.11 kB / 405.7 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.2546, allocations: 4 kB / 405.7 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.2546, allocations: 11.94 kB / 405.8 MB, free: 2.816 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.2546, allocations: 3.938 kB / 405.8 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.2546, allocations: 4 kB / 405.8 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003506/0.255, allocations: 484.6 kB / 406.2 MB, free: 2.316 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.658e-05/0.2551, allocations: 89 kB / 406.3 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.657e-05/0.2551, allocations: 3.938 kB / 406.3 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.2553, allocations: 11.98 kB / 406.3 MB, free: 2.195 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.071e-05/0.2553, allocations: 15.92 kB / 406.4 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.479e-06/0.2553, allocations: 0 / 406.4 MB, free: 2.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.53e-05/0.2554, allocations: 95.27 kB / 406.5 MB, free: 2.086 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2554, allocations: 0 / 406.5 MB, free: 2.086 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003782/0.2558, allocations: 12 kB / 406.5 MB, free: 2.074 MB / 318.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.0006605/0.2565, allocations: 1.026 MB / 407.5 MB, free: 1.02 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002147/0.2567, allocations: 55.89 kB / 407.5 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.2567, allocations: 320 / 407.5 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.523e-05/0.2568, allocations: 35.92 kB / 407.6 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005009/0.2573, allocations: 8 kB / 407.6 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006391/0.2579, allocations: 232.4 kB / 407.8 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.2582, allocations: 0.7 MB / 408.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.244e-05/0.2583, allocations: 0 / 408.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.228e-05/0.2583, allocations: 27.42 kB / 408.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2583, allocations: 3.938 kB / 408.5 MB, free: 15.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01826/0.2766, allocations: 1.641 MB / 410.2 MB, free: 14.3 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.647/7.924, allocations: 11.84 kB / 410.2 MB, free: 14.29 MB / 334.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