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.001128/0.001128, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001161/0.001161, allocations: 183.1 kB / 18.66 MB, free: 4.414 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.437/1.437, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001545/0.001545, allocations: 59.92 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08401/0.08556, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.00286/0.08846, allocations: 1.583 MB / 376.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000825/0.08931, allocations: 472.3 kB / 376.7 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.363e-05/0.0894, allocations: 4 kB / 376.7 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.352e-05/0.0895, allocations: 7.875 kB / 376.7 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.31e-05/0.0896, allocations: 11.86 kB / 376.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001514/0.08976, allocations: 19.98 kB / 376.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001132/0.08988, allocations: 63.77 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.09008, allocations: 47.91 kB / 376.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001223/0.09021, allocations: 27.86 kB / 376.9 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.338e-05/0.09029, allocations: 31.84 kB / 376.9 MB, free: 2.824 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.863e-05/0.09032, allocations: 4 kB / 376.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.359e-05/0.09034, allocations: 8 kB / 376.9 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.113e-05/0.09036, allocations: 7.984 kB / 376.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.59e-05/0.09041, allocations: 31.81 kB / 376.9 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.09056, allocations: 79.58 kB / 377 MB, free: 2.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.09057, allocations: 0 / 377 MB, free: 2.695 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.09058, allocations: 4 kB / 377 MB, free: 2.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.0906, allocations: 0 / 377 MB, free: 2.691 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.0005307/0.09113, allocations: 379.2 kB / 377.4 MB, free: 2.273 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.09118, allocations: 8.031 kB / 377.4 MB, free: 2.266 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.366e-05/0.09123, allocations: 34.75 kB / 377.4 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.154e-05/0.09127, allocations: 8.891 kB / 377.4 MB, free: 2.215 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.0914, allocations: 180.2 kB / 377.6 MB, free: 2 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.09144, allocations: 8.375 kB / 377.6 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/0.09146, allocations: 8.359 kB / 377.6 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002413/0.0917, allocations: 122 kB / 377.8 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.09172, allocations: 0 / 377.8 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.09174, allocations: 8 kB / 377.8 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.09175, allocations: 3.938 kB / 377.8 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001854/0.09194, allocations: 59.89 kB / 377.8 MB, free: 1.773 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006556/0.09261, allocations: 0.6342 MB / 378.5 MB, free: 1.074 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.09279, allocations: 121 kB / 378.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.09291, allocations: 64.28 kB / 378.6 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.818e-05/0.09294, allocations: 0 / 378.6 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.512e-05/0.09298, allocations: 42.48 kB / 378.7 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.012e-06/0.09299, allocations: 0 / 378.7 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004435/0.09344, allocations: 125.6 kB / 378.8 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.053e-05/0.09353, allocations: 158.2 kB / 379 MB, free: 472 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.752e-05/0.09362, allocations: 129.6 kB / 379.1 MB, free: 332 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.09365, allocations: 25.7 kB / 379.1 MB, free: 300 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.728e-05/0.09371, allocations: 104.6 kB / 379.2 MB, free: 192 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.09374, allocations: 15.84 kB / 379.2 MB, free: 176 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.09381, allocations: 25.7 kB / 379.2 MB, free: 144 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.16/0.2538, allocations: 314.8 kB / 379.6 MB, free: 12.55 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001412/0.254, allocations: 18.75 kB / 379.6 MB, free: 12.55 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.2541, allocations: 48.09 kB / 379.6 MB, free: 12.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001754/0.2543, allocations: 83.05 kB / 379.7 MB, free: 12.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2543, allocations: 0 / 379.7 MB, free: 12.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002402/0.2546, allocations: 100.5 kB / 379.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.2546, allocations: 6.469 kB / 379.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.2546, allocations: 1.188 kB / 379.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.2546, allocations: 4.938 kB / 379.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.2547, allocations: 12.91 kB / 379.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.2548, allocations: 6 kB / 379.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.122e-05/0.2548, allocations: 6.516 kB / 379.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.057e-06/0.2549, allocations: 3.312 kB / 379.8 MB, free: 12.45 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 7.463e-05/0.2549, allocations: 120.4 kB / 380 MB, free: 12.33 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.662e-05/0.255, allocations: 9 kB / 380 MB, free: 12.33 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.997e-05/0.2551, allocations: 16.45 kB / 380 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/0.2551, allocations: 3.453 kB / 380 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.2551, allocations: 5.125 kB / 380 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.2551, allocations: 1.938 kB / 380 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003524/0.2555, allocations: 182 kB / 380.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.2555, allocations: 4.281 kB / 380.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.825e-05/0.2555, allocations: 14.81 kB / 380.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.2556, allocations: 2.75 kB / 380.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.2556, allocations: 1.891 kB / 380.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.2556, allocations: 7.375 kB / 380.2 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2556, allocations: 1.375 kB / 380.2 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002464/0.2558, allocations: 494.3 kB / 380.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.214e-05/0.2559, allocations: 84.52 kB / 380.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.2559, allocations: 3.359 kB / 380.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002077/0.2561, allocations: 14.08 kB / 380.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.823e-05/0.2562, allocations: 10.09 kB / 380.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.2562, allocations: 6.984 kB / 380.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.313e-05/0.2562, allocations: 92.34 kB / 380.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2562, allocations: 1.375 kB / 380.9 MB, free: 11.54 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003735/0.2566, allocations: 11.48 kB / 380.9 MB, free: 11.54 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.0004273/0.257, allocations: 1.019 MB / 381.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002356/0.2573, allocations: 60.98 kB / 382 MB, free: 10.58 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.2573, allocations: 0.7812 kB / 382 MB, free: 10.58 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.2574, allocations: 40.12 kB / 382 MB, free: 10.57 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005151/0.2579, allocations: 6.656 kB / 382 MB, free: 10.57 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006453/0.2586, allocations: 241.6 kB / 382.3 MB, free: 10.37 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.2587, allocations: 0.6943 MB / 383 MB, free: 9.676 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.809e-05/0.2588, allocations: 2.031 kB / 383 MB, free: 9.676 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.655e-05/0.2588, allocations: 18.53 kB / 383 MB, free: 9.668 MB / 318.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2588, allocations: 1.375 kB / 383 MB, free: 9.668 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.2784, allocations: 1.639 MB / 384.6 MB, free: 9.191 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.751/8.029, allocations: 12.86 kB / 384.6 MB, free: 9.18 MB / 318.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