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.001384/0.001384, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001815/0.001815, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 55.28 kB / 307 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09216/0.09343, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003349/0.09681, allocations: 1.614 MB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008689/0.0977, allocations: 498.7 kB / 359.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.503e-05/0.09781, allocations: 4 kB / 359.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.521e-05/0.09789, allocations: 11.86 kB / 359.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.799e-05/0.09798, allocations: 11.86 kB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002026/0.09819, allocations: 31.91 kB / 359.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.09831, allocations: 59.78 kB / 359.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/0.0985, allocations: 56.16 kB / 359.8 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.09864, allocations: 31.86 kB / 359.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.307e-05/0.09871, allocations: 35.78 kB / 359.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.07e-05/0.09874, allocations: 4 kB / 359.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.109e-05/0.09881, allocations: 12 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.011e-05/0.09883, allocations: 7.984 kB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.136e-05/0.09888, allocations: 35.8 kB / 360 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.09905, allocations: 71.94 kB / 360 MB, free: 11.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.09906, allocations: 0 / 360 MB, free: 11.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.09907, allocations: 0 / 360 MB, free: 11.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.7e-06/0.09908, allocations: 4 kB / 360 MB, free: 11.52 MB / 302.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.0004942/0.09958, allocations: 383.2 kB / 360.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.09963, allocations: 12.03 kB / 360.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.516e-05/0.09967, allocations: 34.75 kB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001456/0.09982, allocations: 20.83 kB / 360.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.09998, allocations: 188.1 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.1, allocations: 4.375 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.854e-05/0.1, allocations: 8.375 kB / 360.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00021/0.1003, allocations: 118 kB / 360.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.664e-06/0.1003, allocations: 0 / 360.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.1003, allocations: 3.984 kB / 360.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.1003, allocations: 4 kB / 360.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.1005, allocations: 55.91 kB / 360.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006389/0.1011, allocations: 0.642 MB / 361.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001774/0.1013, allocations: 117 kB / 361.6 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.1014, allocations: 64.27 kB / 361.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.1015, allocations: 0 / 361.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.1015, allocations: 38.5 kB / 361.7 MB, free: 9.602 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 8.92e-07/0.1015, allocations: 0 / 361.7 MB, free: 9.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004295/0.102, allocations: 125.4 kB / 361.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.456e-05/0.102, allocations: 154.2 kB / 362 MB, free: 9.285 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.918e-05/0.1021, allocations: 138.2 kB / 362.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.1022, allocations: 25.7 kB / 362.1 MB, free: 9.109 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.535e-05/0.1022, allocations: 104 kB / 362.2 MB, free: 9.004 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.007e-05/0.1023, allocations: 15.8 kB / 362.3 MB, free: 8.988 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.863e-05/0.1023, allocations: 17.72 kB / 362.3 MB, free: 8.965 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.1024, allocations: 318.8 kB / 362.6 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.975e-05/0.1025, allocations: 19.98 kB / 362.6 MB, free: 8.625 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.514e-05/0.1026, allocations: 56.22 kB / 362.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.1028, allocations: 80.19 kB / 362.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1028, allocations: 8 kB / 362.7 MB, free: 8.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002537/0.1031, allocations: 89.5 kB / 362.8 MB, free: 8.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.1031, allocations: 8 kB / 362.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.1031, allocations: 0 / 362.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.1031, allocations: 7.938 kB / 362.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.84e-05/0.1032, allocations: 15.98 kB / 362.9 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.1032, allocations: 8.094 kB / 362.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.563e-05/0.1033, allocations: 11.94 kB / 362.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.681e-06/0.1033, allocations: 0 / 362.9 MB, free: 8.309 MB / 302.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 9.342e-05/0.1034, allocations: 121.8 kB / 363 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.313e-05/0.1035, allocations: 7.906 kB / 363 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.918e-05/0.1036, allocations: 15.48 kB / 363 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.1036, allocations: 4 kB / 363 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1036, allocations: 3.938 kB / 363 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.434e-06/0.1036, allocations: 4 kB / 363 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003813/0.104, allocations: 181.6 kB / 363.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.104, allocations: 0 / 363.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.927e-05/0.1041, allocations: 19.92 kB / 363.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1041, allocations: 0 / 363.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.1041, allocations: 8 kB / 363.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1041, allocations: 0 / 363.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.1041, allocations: 4.062 kB / 363.2 MB, free: 7.887 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004023/0.1045, allocations: 0.4887 MB / 363.7 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.28e-05/0.1046, allocations: 89.03 kB / 363.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.752e-05/0.1046, allocations: 4 kB / 363.8 MB, free: 7.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.1048, allocations: 7.938 kB / 363.8 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.434e-05/0.1049, allocations: 19.92 kB / 363.9 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.851e-06/0.1049, allocations: 4 kB / 363.9 MB, free: 7.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.031e-05/0.1049, allocations: 91.27 kB / 363.9 MB, free: 7.148 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1049, allocations: 0 / 363.9 MB, free: 7.148 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003825/0.1053, allocations: 15.91 kB / 364 MB, free: 7.133 MB / 302.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.0006111/0.1059, allocations: 1.01 MB / 365 MB, free: 6.094 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002322/0.1062, allocations: 67.83 kB / 365 MB, free: 6.027 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1062, allocations: 0 / 365 MB, free: 6.027 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.713e-05/0.1063, allocations: 31.92 kB / 365.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000507/0.1068, allocations: 11.98 kB / 365.1 MB, free: 5.984 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.1087, allocations: 1.758 MB / 366.8 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.109, allocations: 0.6924 MB / 367.5 MB, free: 3.391 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.279e-05/0.1091, allocations: 3.984 kB / 367.5 MB, free: 3.387 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.481e-05/0.1091, allocations: 19.44 kB / 367.6 MB, free: 3.367 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1091, allocations: 0 / 367.6 MB, free: 3.367 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.1264, allocations: 1.635 MB / 369.2 MB, free: 1.773 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.742/7.869, allocations: 1.094 kB / 369.2 MB, free: 1.773 MB / 302.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