Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001179/0.001179, allocations: 121.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001293/0.001293, allocations: 203.8 kB / 18.73 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2207/0.2221, allocations: 50.54 MB / 408.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002523/0.2246, allocations: 1.613 MB / 410.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007296/0.2254, allocations: 0.4908 MB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.118e-05/0.2254, allocations: 0 / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.392e-05/0.2255, allocations: 7.875 kB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.438e-05/0.2256, allocations: 11.88 kB / 410.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000174/0.2258, allocations: 35.89 kB / 410.9 MB, free: 15.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001082/0.2259, allocations: 63.84 kB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001515/0.226, allocations: 48.12 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001146/0.2262, allocations: 31.86 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.003e-05/0.2262, allocations: 31.84 kB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.2263, allocations: 4 kB / 411.1 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.768e-05/0.2263, allocations: 15.92 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.49e-05/0.2263, allocations: 8 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.915e-05/0.2264, allocations: 35.8 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001392/0.2265, allocations: 78.8 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2265, allocations: 0 / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2265, allocations: 0 / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.2265, allocations: 0 / 411.2 MB, free: 15.09 MB / 334.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.0004541/0.227, allocations: 387.1 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.227, allocations: 8.031 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.365e-05/0.2271, allocations: 34.75 kB / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.2272, allocations: 24.81 kB / 411.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001903/0.2274, allocations: 184.3 kB / 411.8 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.914e-05/0.2275, allocations: 8.375 kB / 411.8 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.2275, allocations: 4.375 kB / 411.8 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002077/0.2277, allocations: 122 kB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-06/0.2277, allocations: 0 / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.2277, allocations: 8 kB / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.2277, allocations: 7.984 kB / 412 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.2279, allocations: 47.91 kB / 412 MB, free: 14.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005776/0.2285, allocations: 0.6381 MB / 412.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.2287, allocations: 112.9 kB / 412.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.2288, allocations: 60.39 kB / 412.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.2288, allocations: 7.984 kB / 412.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.2289, allocations: 38.5 kB / 412.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 3.978e-06/0.2289, allocations: 4 kB / 412.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004305/0.2293, allocations: 121.4 kB / 413 MB, free: 13.03 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.901e-05/0.2294, allocations: 158.8 kB / 413.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.069e-05/0.2295, allocations: 125.8 kB / 413.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.2295, allocations: 33.7 kB / 413.3 MB, free: 12.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.749e-05/0.2296, allocations: 96.03 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.118e-05/0.2296, allocations: 15.89 kB / 413.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.911e-05/0.2296, allocations: 21.72 kB / 413.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.2298, allocations: 314.8 kB / 413.7 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.164e-05/0.2298, allocations: 19.98 kB / 413.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.397e-05/0.2299, allocations: 64.22 kB / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.2301, allocations: 80.19 kB / 413.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2301, allocations: 0 / 413.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002217/0.2304, allocations: 97.55 kB / 414 MB, free: 11.92 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.2304, allocations: 7.938 kB / 414 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.2304, allocations: 4 kB / 414 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.2304, allocations: 3.984 kB / 414 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.154e-05/0.2305, allocations: 16.14 kB / 414 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.2305, allocations: 7.938 kB / 414 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.774e-05/0.2306, allocations: 7.938 kB / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.748e-06/0.2306, allocations: 4 kB / 414 MB, free: 11.87 MB / 334.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.317e-05/0.2307, allocations: 117.8 kB / 414.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.775e-05/0.2308, allocations: 15.94 kB / 414.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.617e-05/0.2308, allocations: 15.48 kB / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.2309, allocations: 0 / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.2309, allocations: 11.94 kB / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.2309, allocations: 0 / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003732/0.2313, allocations: 185.6 kB / 414.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.2313, allocations: 0 / 414.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.908e-05/0.2313, allocations: 19.86 kB / 414.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.2314, allocations: 4 kB / 414.4 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.806e-06/0.2314, allocations: 0 / 414.4 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.2314, allocations: 7.938 kB / 414.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.2314, allocations: 3.938 kB / 414.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003359/0.2317, allocations: 488.6 kB / 414.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.541e-05/0.2318, allocations: 89.05 kB / 415 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.2318, allocations: 4 kB / 415 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002207/0.232, allocations: 8 kB / 415 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.208e-05/0.2321, allocations: 15.92 kB / 415 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.082e-06/0.2321, allocations: 4.188 kB / 415 MB, free: 10.8 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.979e-05/0.2322, allocations: 91.27 kB / 415.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2322, allocations: 0 / 415.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003925/0.2326, allocations: 12 kB / 415.1 MB, free: 10.7 MB / 334.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.0005631/0.2331, allocations: 1.018 MB / 416.1 MB, free: 9.648 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002281/0.2334, allocations: 67.83 kB / 416.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2334, allocations: 0 / 416.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.2335, allocations: 35.92 kB / 416.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005183/0.234, allocations: 0 / 416.2 MB, free: 9.547 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001744/0.2358, allocations: 1.78 MB / 418 MB, free: 7.652 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/0.2361, allocations: 0.6996 MB / 418.7 MB, free: 6.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.499e-05/0.2361, allocations: 0 / 418.7 MB, free: 6.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.292e-05/0.2362, allocations: 23.42 kB / 418.7 MB, free: 6.906 MB / 334.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2362, allocations: 0 / 418.7 MB, free: 6.906 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01578/0.252, allocations: 1.661 MB / 420.4 MB, free: 5.301 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.473/7.725, allocations: 11.88 kB / 420.4 MB, free: 5.289 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.BusUsage.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches