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.001307/0.001307, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001253/0.001253, allocations: 187 kB / 18.67 MB, free: 4.402 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.483/1.483, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001736/0.001736, allocations: 55.91 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1077, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003125/0.1109, allocations: 1.583 MB / 376.2 MB, free: 3.488 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009142/0.1118, allocations: 476.3 kB / 376.7 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.454e-05/0.1119, allocations: 0 / 376.7 MB, free: 3.016 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.829e-05/0.112, allocations: 3.938 kB / 376.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.08e-05/0.1121, allocations: 11.88 kB / 376.7 MB, free: 3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001702/0.1123, allocations: 27.89 kB / 376.7 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001103/0.1124, allocations: 59.78 kB / 376.8 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001872/0.1126, allocations: 43.97 kB / 376.8 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.1127, allocations: 39.78 kB / 376.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.695e-05/0.1128, allocations: 27.84 kB / 376.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.995e-05/0.1128, allocations: 8 kB / 376.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.458e-05/0.1128, allocations: 4 kB / 376.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.91e-05/0.1129, allocations: 8 kB / 376.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.257e-05/0.1129, allocations: 31.8 kB / 376.9 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001516/0.1131, allocations: 71.66 kB / 377 MB, free: 2.684 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1131, allocations: 4 kB / 377 MB, free: 2.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1131, allocations: 0 / 377 MB, free: 2.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1131, allocations: 0 / 377 MB, free: 2.68 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.0005855/0.1137, allocations: 379.2 kB / 377.4 MB, free: 2.262 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.1138, allocations: 8.031 kB / 377.4 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.102e-05/0.1138, allocations: 46.67 kB / 377.4 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.608e-05/0.1139, allocations: 12.83 kB / 377.5 MB, free: 2.188 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001884/0.1141, allocations: 172.3 kB / 377.6 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/0.1141, allocations: 12.38 kB / 377.6 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.592e-05/0.1141, allocations: 8.375 kB / 377.6 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002721/0.1144, allocations: 118 kB / 377.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.1144, allocations: 0 / 377.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.1144, allocations: 4 kB / 377.8 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.1145, allocations: 0 / 377.8 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001907/0.1146, allocations: 59.89 kB / 377.8 MB, free: 1.762 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007917/0.1154, allocations: 0.6381 MB / 378.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002026/0.1157, allocations: 113 kB / 378.6 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001326/0.1158, allocations: 64.34 kB / 378.6 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.1158, allocations: 0 / 378.6 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.1159, allocations: 38.5 kB / 378.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of pre-optimization done (n=6): time 1.313e-06/0.1159, allocations: 0 / 378.7 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004729/0.1164, allocations: 125.5 kB / 378.8 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.859e-05/0.1165, allocations: 162.2 kB / 379 MB, free: 464 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/0.1166, allocations: 125.6 kB / 379.1 MB, free: 328 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.1166, allocations: 26.33 kB / 379.1 MB, free: 296 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.135e-05/0.1167, allocations: 104.1 kB / 379.2 MB, free: 188 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.1167, allocations: 19.84 kB / 379.2 MB, free: 168 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.293e-05/0.1168, allocations: 17.72 kB / 379.2 MB, free: 144 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.195/0.3118, allocations: 318.8 kB / 379.6 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.312, allocations: 18.34 kB / 379.6 MB, free: 12.54 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001131/0.3121, allocations: 50.73 kB / 379.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.3123, allocations: 86.77 kB / 379.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3123, allocations: 0 / 379.7 MB, free: 12.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002621/0.3126, allocations: 95.69 kB / 379.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.3126, allocations: 5.5 kB / 379.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.3127, allocations: 4.969 kB / 379.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.419e-05/0.3127, allocations: 1.375 kB / 379.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.3128, allocations: 13.42 kB / 379.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.3128, allocations: 5.781 kB / 379.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.543e-05/0.3129, allocations: 9.844 kB / 379.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.3129, allocations: 6.812 kB / 379.8 MB, free: 12.43 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 9.422e-05/0.313, allocations: 119.9 kB / 380 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.3131, allocations: 4.641 kB / 380 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.03e-05/0.3132, allocations: 19.17 kB / 380 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.3132, allocations: 2.312 kB / 380 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.3132, allocations: 4.656 kB / 380 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3132, allocations: 5.469 kB / 380 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003666/0.3136, allocations: 182.5 kB / 380.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3136, allocations: 2.062 kB / 380.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.619e-05/0.3137, allocations: 12.5 kB / 380.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.3137, allocations: 3.781 kB / 380.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.3137, allocations: 2.391 kB / 380.2 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.3137, allocations: 9.688 kB / 380.2 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3137, allocations: 1.344 kB / 380.2 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002794/0.314, allocations: 493.2 kB / 380.7 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.274e-05/0.314, allocations: 84.31 kB / 380.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.3141, allocations: 5.688 kB / 380.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.3143, allocations: 11.41 kB / 380.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.816e-05/0.3143, allocations: 9.562 kB / 380.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.3144, allocations: 5.938 kB / 380.8 MB, free: 11.59 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.779e-05/0.3144, allocations: 92.33 kB / 380.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3144, allocations: 0 / 380.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003857/0.3148, allocations: 12.86 kB / 380.9 MB, free: 11.52 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.0004516/0.3153, allocations: 1.026 MB / 381.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002478/0.3155, allocations: 58.61 kB / 382 MB, free: 10.56 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3155, allocations: 0 / 382 MB, free: 10.56 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001028/0.3156, allocations: 39.42 kB / 382 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005051/0.3161, allocations: 7.328 kB / 382 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006787/0.3168, allocations: 235.1 kB / 382.3 MB, free: 10.36 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001562/0.317, allocations: 0.6979 MB / 383 MB, free: 9.656 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.714e-05/0.317, allocations: 2.688 kB / 383 MB, free: 9.656 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.975e-05/0.3171, allocations: 22.38 kB / 383 MB, free: 9.648 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3171, allocations: 3.906 kB / 383 MB, free: 9.648 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.3409, allocations: 1.64 MB / 384.6 MB, free: 9.168 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.321/8.661, allocations: 12.92 kB / 384.6 MB, free: 9.156 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