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.00155/0.00155, allocations: 118.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001953/0.001953, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 59.89 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2726/0.2739, allocations: 50.56 MB / 408.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002774/0.2767, allocations: 1.609 MB / 410.4 MB, free: 68 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008686/0.2776, allocations: 494.7 kB / 410.8 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.934e-05/0.2777, allocations: 0 / 410.8 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.321e-05/0.2778, allocations: 11.88 kB / 410.9 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.409e-05/0.2779, allocations: 11.86 kB / 410.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002253/0.2781, allocations: 27.91 kB / 410.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001357/0.2782, allocations: 55.84 kB / 410.9 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.2784, allocations: 48.14 kB / 411 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.2786, allocations: 35.86 kB / 411 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.076e-05/0.2787, allocations: 31.83 kB / 411.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.2787, allocations: 8 kB / 411.1 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.364e-05/0.2788, allocations: 15.94 kB / 411.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.578e-05/0.2788, allocations: 7.984 kB / 411.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.294e-05/0.2788, allocations: 31.81 kB / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001619/0.279, allocations: 77.39 kB / 411.2 MB, free: 15.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.279, allocations: 4 kB / 411.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.279, allocations: 0 / 411.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.279, allocations: 0 / 411.2 MB, free: 15.21 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.0005599/0.2796, allocations: 379.2 kB / 411.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.2797, allocations: 15.97 kB / 411.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.715e-05/0.2797, allocations: 34.75 kB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001554/0.2799, allocations: 16.83 kB / 411.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000257/0.2801, allocations: 188.2 kB / 411.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.2802, allocations: 12.38 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.813e-05/0.2802, allocations: 4.375 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002563/0.2804, allocations: 118 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.2805, allocations: 3.984 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.281e-05/0.2805, allocations: 0 / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.567e-06/0.2805, allocations: 4 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001961/0.2807, allocations: 59.89 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007623/0.2815, allocations: 0.6419 MB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001853/0.2817, allocations: 116.9 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.2818, allocations: 60.41 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.2818, allocations: 4 kB / 412.8 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.2819, allocations: 34.5 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 4.93e-06/0.2819, allocations: 0 / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005019/0.2824, allocations: 129.4 kB / 413 MB, free: 13.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.385e-05/0.2825, allocations: 158.2 kB / 413.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.2826, allocations: 126.3 kB / 413.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.2827, allocations: 25.7 kB / 413.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.648e-05/0.2827, allocations: 104 kB / 413.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.467e-05/0.2828, allocations: 11.75 kB / 413.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.494e-05/0.2828, allocations: 29.7 kB / 413.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.283, allocations: 314.8 kB / 413.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.067e-05/0.283, allocations: 19.98 kB / 413.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.231e-05/0.2831, allocations: 56.27 kB / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001743/0.2833, allocations: 76.2 kB / 413.9 MB, free: 12.15 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2833, allocations: 4 kB / 413.9 MB, free: 12.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002206/0.2836, allocations: 97.53 kB / 414 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.2836, allocations: 8 kB / 414 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.2836, allocations: 0 / 414 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.2836, allocations: 0 / 414 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00011/0.2837, allocations: 15.98 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.2838, allocations: 8.094 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.363e-05/0.2838, allocations: 11.89 kB / 414 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.308e-06/0.2839, allocations: 4 kB / 414 MB, free: 12 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 0.0001081/0.284, allocations: 117.8 kB / 414.2 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.403e-05/0.2841, allocations: 4 kB / 414.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.2e-05/0.2841, allocations: 15.48 kB / 414.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.2841, allocations: 3.938 kB / 414.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/0.2841, allocations: 7.938 kB / 414.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.2841, allocations: 11.92 kB / 414.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000419/0.2846, allocations: 189.5 kB / 414.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.2846, allocations: 0 / 414.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.517e-05/0.2847, allocations: 16 kB / 414.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.2847, allocations: 0 / 414.4 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.2847, allocations: 3.984 kB / 414.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.2847, allocations: 7.938 kB / 414.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.2847, allocations: 4.062 kB / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003886/0.2851, allocations: 492.6 kB / 414.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.42e-05/0.2852, allocations: 85.02 kB / 415 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.677e-05/0.2852, allocations: 4 kB / 415 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.2854, allocations: 7.984 kB / 415 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.234e-05/0.2855, allocations: 15.94 kB / 415 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.2855, allocations: 4 kB / 415 MB, free: 10.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.828e-05/0.2855, allocations: 95.64 kB / 415.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2855, allocations: 0 / 415.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003805/0.2859, allocations: 8 kB / 415.1 MB, free: 10.83 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.0006557/0.2866, allocations: 1.018 MB / 416.1 MB, free: 9.781 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002182/0.2868, allocations: 63.84 kB / 416.2 MB, free: 9.719 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2868, allocations: 3.938 kB / 416.2 MB, free: 9.715 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.212e-05/0.2869, allocations: 31.97 kB / 416.2 MB, free: 9.684 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005046/0.2874, allocations: 8 kB / 416.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001945/0.2894, allocations: 1.77 MB / 418 MB, free: 7.789 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.2897, allocations: 0.6924 MB / 418.7 MB, free: 7.07 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.077e-05/0.2898, allocations: 7.984 kB / 418.7 MB, free: 7.062 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.236e-05/0.2898, allocations: 23.42 kB / 418.7 MB, free: 7.039 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2898, allocations: 4 kB / 418.7 MB, free: 7.035 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01799/0.3078, allocations: 1.668 MB / 420.4 MB, free: 5.422 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.554/7.862, allocations: 19.5 kB / 420.4 MB, free: 5.406 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_trunk_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.BusUsage_res.mat","/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