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.001148/0.001148, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001269/0.001269, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 59.94 kB / 306.3 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1027, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003071/0.1058, allocations: 1.665 MB / 358.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009627/0.1068, allocations: 0.4909 MB / 359 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.205e-05/0.1069, allocations: 0 / 359 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.155e-05/0.107, allocations: 7.938 kB / 359 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.988e-05/0.1071, allocations: 11.91 kB / 359 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.1074, allocations: 19.98 kB / 359.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001454/0.1075, allocations: 63.72 kB / 359.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001893/0.1077, allocations: 52.17 kB / 359.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.1079, allocations: 23.92 kB / 359.2 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.443e-05/0.108, allocations: 31.8 kB / 359.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.096e-05/0.108, allocations: 7.938 kB / 359.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.661e-05/0.1081, allocations: 7.984 kB / 359.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.072e-05/0.1081, allocations: 15.94 kB / 359.3 MB, free: 12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.899e-05/0.1081, allocations: 31.78 kB / 359.3 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001431/0.1083, allocations: 67.95 kB / 359.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.1083, allocations: 0 / 359.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1083, allocations: 0 / 359.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1083, allocations: 4 kB / 359.4 MB, free: 11.9 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.0005347/0.1089, allocations: 383.2 kB / 359.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.1089, allocations: 8.031 kB / 359.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.263e-05/0.109, allocations: 42.73 kB / 359.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001518/0.1091, allocations: 16.83 kB / 359.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001791/0.1093, allocations: 188.2 kB / 360 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/0.1093, allocations: 384 / 360 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.1094, allocations: 8.375 kB / 360 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000229/0.1096, allocations: 117.5 kB / 360.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.1096, allocations: 4 kB / 360.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.1096, allocations: 4 kB / 360.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.1096, allocations: 0 / 360.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001764/0.1098, allocations: 59.89 kB / 360.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006262/0.1105, allocations: 0.6419 MB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.1106, allocations: 109 kB / 360.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.1108, allocations: 52.41 kB / 361 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.1108, allocations: 7.938 kB / 361 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.1108, allocations: 42.55 kB / 361 MB, free: 9.988 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.442e-06/0.1108, allocations: 4 kB / 361 MB, free: 9.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.000435/0.1113, allocations: 117.4 kB / 361.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.159e-05/0.1114, allocations: 162.2 kB / 361.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.1115, allocations: 134.3 kB / 361.4 MB, free: 9.527 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.1115, allocations: 29.7 kB / 361.5 MB, free: 9.492 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.571e-05/0.1115, allocations: 92.05 kB / 361.6 MB, free: 9.398 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.1116, allocations: 19.73 kB / 361.6 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.172e-05/0.1116, allocations: 25.7 kB / 361.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.1117, allocations: 314.8 kB / 361.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.423e-05/0.1118, allocations: 19.97 kB / 361.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.091e-05/0.1119, allocations: 56.28 kB / 362 MB, free: 8.941 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001701/0.1121, allocations: 76.2 kB / 362.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1121, allocations: 0 / 362.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002244/0.1123, allocations: 101.4 kB / 362.2 MB, free: 8.746 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1124, allocations: 6.344 kB / 362.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.1124, allocations: 4 kB / 362.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.1124, allocations: 3.984 kB / 362.2 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.1125, allocations: 20.08 kB / 362.2 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.1125, allocations: 7.938 kB / 362.2 MB, free: 8.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.935e-05/0.1126, allocations: 11.92 kB / 362.2 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.1126, allocations: 4 kB / 362.2 MB, free: 8.691 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.03e-05/0.1127, allocations: 125.7 kB / 362.3 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.243e-05/0.1128, allocations: 7.906 kB / 362.3 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.623e-05/0.1128, allocations: 19.47 kB / 362.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.1129, allocations: 0 / 362.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.1129, allocations: 7.938 kB / 362.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.1129, allocations: 4 kB / 362.4 MB, free: 8.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003681/0.1133, allocations: 181.6 kB / 362.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1133, allocations: 0 / 362.6 MB, free: 8.293 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.935e-05/0.1133, allocations: 11.98 kB / 362.6 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.1134, allocations: 4 kB / 362.6 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.295e-06/0.1134, allocations: 0 / 362.6 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1134, allocations: 4 kB / 362.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1134, allocations: 7.875 kB / 362.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003698/0.1138, allocations: 488.7 kB / 363.1 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.434e-05/0.1138, allocations: 81.11 kB / 363.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.1138, allocations: 8 kB / 363.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.1141, allocations: 15.98 kB / 363.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.119e-05/0.1141, allocations: 11.92 kB / 363.2 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-06/0.1141, allocations: 4 kB / 363.2 MB, free: 7.633 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.508e-05/0.1142, allocations: 99.14 kB / 363.3 MB, free: 7.535 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1142, allocations: 0 / 363.3 MB, free: 7.535 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004074/0.1146, allocations: 15.91 kB / 363.3 MB, free: 7.52 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.0006937/0.1153, allocations: 1.01 MB / 364.3 MB, free: 6.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000232/0.1156, allocations: 67.77 kB / 364.4 MB, free: 6.414 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1156, allocations: 4 kB / 364.4 MB, free: 6.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.1157, allocations: 35.92 kB / 364.4 MB, free: 6.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005282/0.1162, allocations: 0 / 364.4 MB, free: 6.375 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001896/0.1181, allocations: 1.783 MB / 366.2 MB, free: 4.473 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003103/0.1185, allocations: 0.6887 MB / 366.9 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.847e-05/0.1185, allocations: 4 kB / 366.9 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.236e-05/0.1186, allocations: 19.42 kB / 366.9 MB, free: 3.734 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1186, allocations: 4 kB / 366.9 MB, free: 3.73 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01159/0.1302, allocations: 1.416 MB / 368.3 MB, free: 2.375 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002295/0.1304, allocations: 190.5 kB / 368.5 MB, free: 2.105 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.791/1.921, allocations: 4.062 kB / 368.5 MB, free: 2.102 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