Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009003/0.0009038, allocations: 174.6 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.303/1.303, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008549/0.0008548, allocations: 88.98 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003033/0.0003037, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2245, allocations: 47.58 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001423/0.226, allocations: 1.285 MB / 376.5 MB, free: 44.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005222/0.2265, allocations: 447.3 kB / 376.9 MB, free: 44.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.487e-05/0.2266, allocations: 2.094 kB / 376.9 MB, free: 44.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.515e-05/0.2266, allocations: 5.188 kB / 376.9 MB, free: 44.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.137e-05/0.2267, allocations: 8.953 kB / 376.9 MB, free: 44.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001218/0.2268, allocations: 19.17 kB / 376.9 MB, free: 44.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.928e-05/0.2269, allocations: 48.3 kB / 377 MB, free: 44.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.2271, allocations: 51.27 kB / 377 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.119e-05/0.2271, allocations: 23.45 kB / 377.1 MB, free: 43.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.567e-05/0.2272, allocations: 18.11 kB / 377.1 MB, free: 43.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.549e-05/0.2272, allocations: 2.312 kB / 377.1 MB, free: 43.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.078e-05/0.2272, allocations: 0.9688 kB / 377.1 MB, free: 43.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.351e-05/0.2273, allocations: 10.83 kB / 377.1 MB, free: 43.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.286e-05/0.2273, allocations: 50.58 kB / 377.1 MB, free: 43.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.734e-05/0.2274, allocations: 46.06 kB / 377.2 MB, free: 43.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2274, allocations: 5.438 kB / 377.2 MB, free: 43.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2274, allocations: 0 / 377.2 MB, free: 43.86 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.416e-06/0.2274, allocations: 0 / 377.2 MB, free: 43.86 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.0003793/0.2278, allocations: 369 kB / 377.5 MB, free: 43.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.2278, allocations: 9.469 kB / 377.6 MB, free: 43.48 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.162e-05/0.2279, allocations: 40.91 kB / 377.6 MB, free: 43.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.538e-05/0.2279, allocations: 8.875 kB / 377.6 MB, free: 43.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.123e-05/0.228, allocations: 184.2 kB / 377.8 MB, free: 43.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.228, allocations: 7.375 kB / 377.8 MB, free: 43.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.228, allocations: 3.469 kB / 377.8 MB, free: 43.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002031/0.2282, allocations: 119.1 kB / 377.9 MB, free: 43.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.2283, allocations: 4 kB / 377.9 MB, free: 43.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.2283, allocations: 5.188 kB / 377.9 MB, free: 43.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.2283, allocations: 1.594 kB / 377.9 MB, free: 43.09 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.2285, allocations: 64.14 kB / 378 MB, free: 43.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004724/0.229, allocations: 0.6446 MB / 378.6 MB, free: 42.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.2291, allocations: 125.3 kB / 378.8 MB, free: 42.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.2292, allocations: 57.03 kB / 378.8 MB, free: 42.2 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.511e-05/0.2292, allocations: 1.219 kB / 378.8 MB, free: 42.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.2293, allocations: 44.94 kB / 378.9 MB, free: 42.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.233e-06/0.2293, allocations: 0 / 378.9 MB, free: 42.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004347/0.2297, allocations: 139.7 kB / 379 MB, free: 42.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.2298, allocations: 160.5 kB / 379.1 MB, free: 41.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.483e-05/0.2298, allocations: 118.5 kB / 379.3 MB, free: 41.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.067e-06/0.2298, allocations: 26.86 kB / 379.3 MB, free: 41.74 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.24e-05/0.2299, allocations: 99.38 kB / 379.4 MB, free: 41.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.2299, allocations: 14.09 kB / 379.4 MB, free: 41.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.5e-06/0.2299, allocations: 5 kB / 379.4 MB, free: 41.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.261e-05/0.23, allocations: 320.1 kB / 379.7 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.08e-05/0.23, allocations: 24.98 kB / 379.7 MB, free: 41.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.118e-05/0.2301, allocations: 59.06 kB / 379.8 MB, free: 41.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000163/0.2303, allocations: 86.95 kB / 379.9 MB, free: 41.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2303, allocations: 0 / 379.9 MB, free: 41.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002074/0.2305, allocations: 118.4 kB / 380 MB, free: 41.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.2306, allocations: 12.36 kB / 380 MB, free: 41.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.2306, allocations: 1.156 kB / 380 MB, free: 41.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.2306, allocations: 2.875 kB / 380 MB, free: 41.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.231e-05/0.2307, allocations: 10.56 kB / 380 MB, free: 41.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.2307, allocations: 5.188 kB / 380 MB, free: 41.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.366e-05/0.2308, allocations: 11.23 kB / 380 MB, free: 41.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.867e-06/0.2308, allocations: 2.625 kB / 380 MB, free: 41.09 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 6.475e-05/0.2308, allocations: 126.7 kB / 380.2 MB, free: 40.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.304e-05/0.2309, allocations: 8.531 kB / 380.2 MB, free: 40.96 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.816e-05/0.231, allocations: 21.72 kB / 380.2 MB, free: 40.95 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.231, allocations: 1.5 kB / 380.2 MB, free: 40.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.231, allocations: 5.375 kB / 380.2 MB, free: 40.94 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.231, allocations: 5.344 kB / 380.2 MB, free: 40.94 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002976/0.2313, allocations: 185 kB / 380.4 MB, free: 40.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2313, allocations: 1.25 kB / 380.4 MB, free: 40.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.014e-05/0.2314, allocations: 23.2 kB / 380.4 MB, free: 40.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2314, allocations: 1.156 kB / 380.4 MB, free: 40.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.498e-06/0.2314, allocations: 2.344 kB / 380.4 MB, free: 40.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.2314, allocations: 2.25 kB / 380.4 MB, free: 40.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2314, allocations: 5.094 kB / 380.4 MB, free: 40.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002647/0.2317, allocations: 0.4946 MB / 380.9 MB, free: 40.24 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.937e-05/0.2317, allocations: 80.33 kB / 381 MB, free: 40.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.2317, allocations: 1.219 kB / 381 MB, free: 40.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001949/0.2319, allocations: 15.55 kB / 381 MB, free: 40.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.232, allocations: 16.05 kB / 381 MB, free: 40.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.221e-06/0.232, allocations: 2.531 kB / 381 MB, free: 40.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.11e-05/0.232, allocations: 91.7 kB / 381.1 MB, free: 40.04 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.232, allocations: 0 / 381.1 MB, free: 40.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003391/0.2324, allocations: 12.53 kB / 381.1 MB, free: 40.04 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.0004262/0.2328, allocations: 1.023 MB / 382.2 MB, free: 39.05 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002267/0.2331, allocations: 75.02 kB / 382.2 MB, free: 39.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.2331, allocations: 5.531 kB / 382.2 MB, free: 39.01 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.2332, allocations: 39.3 kB / 382.3 MB, free: 39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004726/0.2337, allocations: 8.406 kB / 382.3 MB, free: 38.99 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000595/0.2343, allocations: 296.4 kB / 382.6 MB, free: 38.7 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000132/0.2344, allocations: 0.691 MB / 383.3 MB, free: 38 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.85e-05/0.2345, allocations: 25.66 kB / 383.3 MB, free: 37.97 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2345, allocations: 0 / 383.3 MB, free: 37.97 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.359/2.594, allocations: 1.136 MB / 384.4 MB, free: 37.41 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches