Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 191.2 kB / 17.37 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.249/1.249, allocations: 226.5 MB / 244.7 MB, free: 8.195 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000724/0.000724, allocations: 95.5 kB / 296.7 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002635/0.0002636, allocations: 8 kB / 356.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.2222, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001282/0.2236, allocations: 1.3 MB / 409.4 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004813/0.2241, allocations: 439.2 kB / 409.9 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.258e-05/0.2241, allocations: 8.438 kB / 409.9 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.216e-05/0.2241, allocations: 4.609 kB / 409.9 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.413e-05/0.2242, allocations: 8.719 kB / 409.9 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001212/0.2243, allocations: 15.98 kB / 409.9 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.85e-05/0.2244, allocations: 55.78 kB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001308/0.2245, allocations: 45.75 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001059/0.2247, allocations: 27.86 kB / 410 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.557e-05/0.2247, allocations: 21.28 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.28e-05/0.2247, allocations: 4 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.452e-05/0.2248, allocations: 8 kB / 410 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.04e-05/0.2248, allocations: 0 / 410 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.936e-05/0.2248, allocations: 58.16 kB / 410.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.073e-05/0.2249, allocations: 39.91 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2249, allocations: 4.578 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2249, allocations: 0.6562 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.997e-06/0.2249, allocations: 4 kB / 410.2 MB, free: 25.65 MB / 298.7 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.0003407/0.2253, allocations: 366.8 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.2253, allocations: 12.03 kB / 410.5 MB, free: 25.24 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.886e-05/0.2254, allocations: 41.8 kB / 410.6 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/0.2255, allocations: 20.83 kB / 410.6 MB, free: 25.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.569e-05/0.2256, allocations: 176.2 kB / 410.8 MB, free: 24.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.027e-05/0.2256, allocations: 8.375 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.311e-05/0.2256, allocations: 8.312 kB / 410.8 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.2258, allocations: 118.1 kB / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.2258, allocations: 0 / 410.9 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.2259, allocations: 3.984 kB / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.2259, allocations: 4 kB / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001615/0.226, allocations: 75.83 kB / 411 MB, free: 24.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004219/0.2265, allocations: 0.6342 MB / 411.6 MB, free: 24.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.2266, allocations: 117 kB / 411.7 MB, free: 23.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.034e-05/0.2267, allocations: 64.33 kB / 411.8 MB, free: 23.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.594e-05/0.2267, allocations: 8 kB / 411.8 MB, free: 23.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.498e-05/0.2267, allocations: 38.56 kB / 411.8 MB, free: 23.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.2268, allocations: 0 / 411.8 MB, free: 23.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004051/0.2272, allocations: 141.4 kB / 412 MB, free: 23.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.2272, allocations: 158.8 kB / 412.1 MB, free: 23.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.976e-05/0.2273, allocations: 131.1 kB / 412.2 MB, free: 23.26 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.524e-06/0.2273, allocations: 25.7 kB / 412.3 MB, free: 23.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.007e-05/0.2273, allocations: 96.05 kB / 412.4 MB, free: 23.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.752e-05/0.2273, allocations: 23.66 kB / 412.4 MB, free: 23.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-06/0.2274, allocations: 0 / 412.4 MB, free: 23.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.899e-05/0.2274, allocations: 318.8 kB / 412.7 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.411e-05/0.2275, allocations: 27.98 kB / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.283e-05/0.2276, allocations: 60.27 kB / 412.8 MB, free: 22.69 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001517/0.2277, allocations: 88.2 kB / 412.9 MB, free: 22.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2277, allocations: 4 kB / 412.9 MB, free: 22.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001941/0.2279, allocations: 113.4 kB / 413 MB, free: 22.46 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.2279, allocations: 4 kB / 413 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.228, allocations: 0 / 413 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.228, allocations: 4 kB / 413 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.097e-05/0.2281, allocations: 20.14 kB / 413 MB, free: 22.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.2281, allocations: 7.875 kB / 413 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.203e-05/0.2281, allocations: 8 kB / 413 MB, free: 22.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.575e-06/0.2282, allocations: 11.92 kB / 413 MB, free: 22.41 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.763e-05/0.2282, allocations: 113.8 kB / 413.2 MB, free: 22.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.462e-05/0.2283, allocations: 7.906 kB / 413.2 MB, free: 22.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.389e-05/0.2283, allocations: 7.531 kB / 413.2 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.644e-06/0.2284, allocations: 8 kB / 413.2 MB, free: 22.26 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2284, allocations: 3.938 kB / 413.2 MB, free: 22.26 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.2284, allocations: 4 kB / 413.2 MB, free: 22.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003026/0.2287, allocations: 181.6 kB / 413.4 MB, free: 22.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2287, allocations: 4 kB / 413.4 MB, free: 22.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.215e-05/0.2287, allocations: 11.98 kB / 413.4 MB, free: 22.01 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.2288, allocations: 4 kB / 413.4 MB, free: 22.01 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.2288, allocations: 4 kB / 413.4 MB, free: 22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.2288, allocations: 7.938 kB / 413.4 MB, free: 22 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2288, allocations: 7.922 kB / 413.4 MB, free: 21.99 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002356/0.229, allocations: 0.4888 MB / 413.9 MB, free: 21.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.966e-05/0.2291, allocations: 81.11 kB / 414 MB, free: 21.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.465e-05/0.2291, allocations: 4 kB / 414 MB, free: 21.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001899/0.2293, allocations: 8 kB / 414 MB, free: 21.37 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.467e-05/0.2293, allocations: 15.86 kB / 414 MB, free: 21.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-06/0.2293, allocations: 0 / 414 MB, free: 21.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.925e-05/0.2294, allocations: 99.27 kB / 414.1 MB, free: 21.26 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2294, allocations: 0 / 414.1 MB, free: 21.26 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000338/0.2297, allocations: 15.91 kB / 414.1 MB, free: 21.24 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004201/0.2301, allocations: 1.022 MB / 415.1 MB, free: 20.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002105/0.2304, allocations: 75.83 kB / 415.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2304, allocations: 0 / 415.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.215e-05/0.2305, allocations: 44.48 kB / 415.2 MB, free: 20.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004805/0.231, allocations: 7.234 kB / 415.3 MB, free: 20.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006035/0.2316, allocations: 293.2 kB / 415.5 MB, free: 19.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001274/0.2317, allocations: 0.6887 MB / 416.2 MB, free: 19.01 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.859e-05/0.2318, allocations: 23.42 kB / 416.3 MB, free: 18.99 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2318, allocations: 0 / 416.3 MB, free: 18.99 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.454/2.686, allocations: 1.134 MB / 417.4 MB, free: 17.85 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches