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.001363/0.001363, allocations: 118.1 kB / 17.78 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.001389/0.001389, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 63.89 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2833, allocations: 50.54 MB / 408.8 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002886/0.2862, allocations: 1.617 MB / 410.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009545/0.2872, allocations: 494.6 kB / 410.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.047e-05/0.2873, allocations: 0 / 410.9 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.728e-05/0.2873, allocations: 15.88 kB / 410.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.931e-05/0.2874, allocations: 11.86 kB / 410.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002106/0.2876, allocations: 31.95 kB / 411 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.2878, allocations: 63.72 kB / 411 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.288, allocations: 44.19 kB / 411.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000133/0.2881, allocations: 35.84 kB / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.779e-05/0.2882, allocations: 35.78 kB / 411.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.784e-05/0.2882, allocations: 12 kB / 411.2 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.477e-05/0.2882, allocations: 8 kB / 411.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.978e-05/0.2883, allocations: 8 kB / 411.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.861e-05/0.2883, allocations: 31.8 kB / 411.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001663/0.2885, allocations: 74.8 kB / 411.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2885, allocations: 0 / 411.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2885, allocations: 0 / 411.3 MB, free: 15.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.2885, allocations: 0 / 411.3 MB, free: 15.12 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.0005947/0.2891, allocations: 387.1 kB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.2892, allocations: 12.03 kB / 411.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.824e-05/0.2892, allocations: 38.75 kB / 411.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001487/0.2894, allocations: 16.88 kB / 411.7 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/0.2897, allocations: 188.2 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.2897, allocations: 4.375 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.649e-05/0.2897, allocations: 12.31 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.29, allocations: 129.5 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.016e-06/0.29, allocations: 0 / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.2901, allocations: 0 / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.2901, allocations: 7.938 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001929/0.2903, allocations: 51.91 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008364/0.2911, allocations: 0.642 MB / 412.7 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002129/0.2913, allocations: 116.9 kB / 412.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.2915, allocations: 60.39 kB / 412.9 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.2915, allocations: 4 kB / 412.9 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.2915, allocations: 42.5 kB / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.543e-06/0.2915, allocations: 0 / 413 MB, free: 13.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004804/0.292, allocations: 122 kB / 413.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.2922, allocations: 162.3 kB / 413.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.2923, allocations: 125.8 kB / 413.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.272e-05/0.2923, allocations: 25.7 kB / 413.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.888e-05/0.2924, allocations: 104 kB / 413.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.461e-05/0.2924, allocations: 7.906 kB / 413.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.517e-05/0.2925, allocations: 21.72 kB / 413.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.2926, allocations: 318.8 kB / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.56e-05/0.2927, allocations: 23.98 kB / 413.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/0.2929, allocations: 56.2 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.2931, allocations: 80.2 kB / 414 MB, free: 12.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.2931, allocations: 0 / 414 MB, free: 12.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000251/0.2933, allocations: 97.67 kB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.2934, allocations: 8.031 kB / 414.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2934, allocations: 4 kB / 414.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.2934, allocations: 0 / 414.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/0.2935, allocations: 15.92 kB / 414.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.2935, allocations: 7.938 kB / 414.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.365e-05/0.2936, allocations: 4 kB / 414.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.2936, allocations: 4 kB / 414.1 MB, free: 11.91 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.0001111/0.2937, allocations: 121.8 kB / 414.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.867e-05/0.2938, allocations: 11.95 kB / 414.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.7e-05/0.2939, allocations: 15.48 kB / 414.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-06/0.2939, allocations: 3.938 kB / 414.3 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.2939, allocations: 7.938 kB / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.2939, allocations: 0 / 414.3 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004127/0.2943, allocations: 189.6 kB / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2943, allocations: 3.938 kB / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.935e-05/0.2944, allocations: 15.92 kB / 414.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.2944, allocations: 4 kB / 414.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.2944, allocations: 4 kB / 414.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.2944, allocations: 8 kB / 414.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.2945, allocations: 3.938 kB / 414.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000484/0.2949, allocations: 488.6 kB / 415 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.985e-05/0.295, allocations: 89.05 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.295, allocations: 4.188 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002048/0.2952, allocations: 8 kB / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.582e-05/0.2953, allocations: 15.92 kB / 415.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.086e-06/0.2953, allocations: 4 kB / 415.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.202e-05/0.2954, allocations: 91.7 kB / 415.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2954, allocations: 0 / 415.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000377/0.2959, allocations: 12 kB / 415.2 MB, free: 10.73 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.0007697/0.2966, allocations: 1.014 MB / 416.2 MB, free: 9.684 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002633/0.2969, allocations: 63.83 kB / 416.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2969, allocations: 0 / 416.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.297, allocations: 36.48 kB / 416.3 MB, free: 9.586 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000532/0.2976, allocations: 15.92 kB / 416.3 MB, free: 9.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.2999, allocations: 1.762 MB / 418.1 MB, free: 7.691 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004224/0.3004, allocations: 0.6924 MB / 418.8 MB, free: 6.973 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.55e-05/0.3004, allocations: 0 / 418.8 MB, free: 6.973 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.665e-05/0.3005, allocations: 27.42 kB / 418.8 MB, free: 6.945 MB / 334.1 MB Notification: Performance of SimCode: time 9.61e-07/0.3005, allocations: 3.938 kB / 418.8 MB, free: 6.941 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.3252, allocations: 1.666 MB / 420.5 MB, free: 5.332 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.846/9.171, allocations: 7.938 kB / 420.5 MB, free: 5.324 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.1.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