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.001511/0.001511, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002103/0.002103, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.472/1.472, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 60.12 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3063, allocations: 50.54 MB / 408.7 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.004086/0.3104, allocations: 1.613 MB / 410.4 MB, free: 64 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.3117, allocations: 490.6 kB / 410.8 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.457e-05/0.3118, allocations: 4 kB / 410.8 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.866e-05/0.3119, allocations: 11.92 kB / 410.8 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001166/0.312, allocations: 11.81 kB / 410.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002748/0.3123, allocations: 31.95 kB / 410.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001722/0.3125, allocations: 55.78 kB / 410.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000245/0.3128, allocations: 52.12 kB / 411 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/0.313, allocations: 35.84 kB / 411 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.142e-05/0.3131, allocations: 23.86 kB / 411.1 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.3131, allocations: 12 kB / 411.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.935e-05/0.3132, allocations: 12 kB / 411.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.187e-05/0.3132, allocations: 11.92 kB / 411.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.417e-05/0.3133, allocations: 31.8 kB / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002131/0.3135, allocations: 73.41 kB / 411.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.3135, allocations: 0 / 411.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.3135, allocations: 0 / 411.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.584e-06/0.3136, 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.0006879/0.3143, allocations: 383.2 kB / 411.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.3143, allocations: 16.03 kB / 411.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.067e-05/0.3144, allocations: 38.73 kB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.3146, allocations: 16.84 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002962/0.3149, allocations: 188.1 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.648e-05/0.315, allocations: 4.375 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.098e-05/0.315, allocations: 8.375 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003148/0.3153, allocations: 121.6 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.3153, allocations: 3.938 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.3154, allocations: 0 / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.3154, allocations: 4 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002846/0.3157, allocations: 59.89 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009303/0.3166, allocations: 0.638 MB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002502/0.3169, allocations: 112.9 kB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/0.3171, allocations: 64.41 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.3171, allocations: 4 kB / 412.8 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.3172, allocations: 38.55 kB / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/0.3172, allocations: 0 / 412.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006495/0.3179, allocations: 130 kB / 413 MB, free: 13.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001518/0.318, allocations: 162.2 kB / 413.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001712/0.3182, allocations: 129.7 kB / 413.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.3182, allocations: 25.7 kB / 413.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.85e-05/0.3183, allocations: 96.05 kB / 413.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.92e-05/0.3184, allocations: 11.75 kB / 413.4 MB, free: 12.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.832e-05/0.3184, allocations: 25.7 kB / 413.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001882/0.3186, allocations: 314.8 kB / 413.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.3187, allocations: 27.97 kB / 413.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001293/0.3189, allocations: 48.28 kB / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002607/0.3192, allocations: 84.14 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.3192, allocations: 0 / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002877/0.3195, allocations: 89.75 kB / 414 MB, free: 12.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.3195, allocations: 12 kB / 414 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.3195, allocations: 0 / 414 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.3195, allocations: 0 / 414 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.3197, allocations: 23.92 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.3197, allocations: 3.938 kB / 414 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.763e-05/0.3198, allocations: 11.89 kB / 414 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.3198, 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.0001395/0.32, allocations: 117.8 kB / 414.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.3201, allocations: 8 kB / 414.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.403e-05/0.3201, allocations: 19.47 kB / 414.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.3202, allocations: 0 / 414.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.3202, allocations: 7.938 kB / 414.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3202, allocations: 0 / 414.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000618/0.3208, allocations: 193.5 kB / 414.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.3208, allocations: 0 / 414.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.381e-05/0.3209, allocations: 23.86 kB / 414.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3209, allocations: 0 / 414.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.321, allocations: 8 kB / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.408e-06/0.321, allocations: 4 kB / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.321, allocations: 7.875 kB / 414.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005259/0.3215, allocations: 488.8 kB / 414.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.623e-05/0.3216, allocations: 85.02 kB / 415 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.619e-05/0.3216, allocations: 8 kB / 415 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003849/0.322, allocations: 7.984 kB / 415 MB, free: 10.94 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.792e-05/0.3221, allocations: 15.92 kB / 415 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.3221, allocations: 4 kB / 415 MB, free: 10.92 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.123e-05/0.3222, allocations: 91.27 kB / 415.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3222, allocations: 0 / 415.1 MB, free: 10.83 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007441/0.323, allocations: 12 kB / 415.1 MB, free: 10.82 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.0009714/0.324, allocations: 1.014 MB / 416.1 MB, free: 9.773 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003142/0.3243, allocations: 63.83 kB / 416.2 MB, free: 9.711 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3243, allocations: 0 / 416.2 MB, free: 9.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001437/0.3245, allocations: 32.42 kB / 416.2 MB, free: 9.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009729/0.3255, allocations: 12.12 kB / 416.2 MB, free: 9.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002917/0.3284, allocations: 1.766 MB / 418 MB, free: 7.785 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003905/0.3288, allocations: 0.6924 MB / 418.7 MB, free: 7.066 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.108e-05/0.3289, allocations: 4 kB / 418.7 MB, free: 7.062 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.421e-05/0.3289, allocations: 23.44 kB / 418.7 MB, free: 7.039 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3289, allocations: 0 / 418.7 MB, free: 7.039 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02514/0.3541, allocations: 1.68 MB / 420.4 MB, free: 5.414 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.749/8.103, allocations: 15.94 kB / 420.4 MB, free: 5.398 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