Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 104.2 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 241.2 MB, free: 13.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001244, allocations: 48.7 kB / 300.2 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1042, allocations: 49.44 MB / 349.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.003118/0.1073, allocations: 1.638 MB / 351.3 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007263/0.1081, allocations: 422.9 kB / 351.7 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.235e-05/0.1081, allocations: 0 / 351.7 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.234e-05/0.1082, allocations: 7.922 kB / 351.7 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.14e-05/0.1083, allocations: 7.938 kB / 351.7 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001559/0.1085, allocations: 15.98 kB / 351.8 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.879e-05/0.1086, allocations: 59.78 kB / 351.8 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001904/0.1088, allocations: 59.84 kB / 351.9 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.1089, allocations: 27.86 kB / 351.9 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.73e-05/0.109, allocations: 27.86 kB / 351.9 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.915e-05/0.109, allocations: 4 kB / 351.9 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.334e-05/0.109, allocations: 4 kB / 351.9 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.686e-05/0.109, allocations: 19.92 kB / 352 MB, free: 2.129 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.184e-05/0.1091, allocations: 35.78 kB / 352 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001226/0.1092, allocations: 60.08 kB / 352.1 MB, free: 2.035 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1092, allocations: 0 / 352.1 MB, free: 2.035 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1092, allocations: 4 kB / 352.1 MB, free: 2.031 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1093, allocations: 0 / 352.1 MB, free: 2.031 MB / 286.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.0005472/0.1098, allocations: 387.1 kB / 352.4 MB, free: 1.605 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.1099, allocations: 8.031 kB / 352.4 MB, free: 1.598 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.931e-05/0.1099, allocations: 38.75 kB / 352.5 MB, free: 1.551 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.201e-05/0.1099, allocations: 12.83 kB / 352.5 MB, free: 1.539 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.1101, allocations: 172.3 kB / 352.7 MB, free: 1.332 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.306e-05/0.1101, allocations: 8.375 kB / 352.7 MB, free: 1.324 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.1101, allocations: 11.94 kB / 352.7 MB, free: 1.312 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.1104, allocations: 111.6 kB / 352.8 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.904e-06/0.1104, allocations: 0 / 352.8 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.1104, allocations: 4 kB / 352.8 MB, free: 1.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.1104, allocations: 0 / 352.8 MB, free: 1.18 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.1106, allocations: 59.89 kB / 352.9 MB, free: 1.121 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006474/0.1113, allocations: 0.6536 MB / 353.5 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.1114, allocations: 112.9 kB / 353.6 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.1116, allocations: 56.34 kB / 353.7 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.1116, allocations: 7.984 kB / 353.7 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.1116, allocations: 38.5 kB / 353.7 MB, free: 124 kB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.1116, allocations: 4 kB / 353.7 MB, free: 120 kB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004369/0.1121, allocations: 117.5 kB / 353.8 MB, free: 15.99 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.804e-05/0.1121, allocations: 158.2 kB / 354 MB, free: 15.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.733e-05/0.1122, allocations: 122.3 kB / 354.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.1123, allocations: 29.7 kB / 354.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.647e-05/0.1123, allocations: 99.98 kB / 354.2 MB, free: 15.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.156e-05/0.1124, allocations: 15.81 kB / 354.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.996e-05/0.1124, allocations: 21.7 kB / 354.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.1125, allocations: 314.8 kB / 354.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.758e-05/0.1126, allocations: 23.97 kB / 354.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.559e-05/0.1127, allocations: 52.22 kB / 354.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.1129, allocations: 84.2 kB / 354.7 MB, free: 14.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1129, allocations: 128 / 354.7 MB, free: 14.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002073/0.1131, allocations: 97.59 kB / 354.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.1132, allocations: 4 kB / 354.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1132, allocations: 0 / 354.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.1132, allocations: 11.88 kB / 354.8 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.73e-05/0.1133, allocations: 16.14 kB / 354.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.1133, allocations: 0 / 354.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.422e-05/0.1134, allocations: 15.89 kB / 354.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-06/0.1134, allocations: 0 / 354.9 MB, free: 14.84 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.244e-05/0.1135, allocations: 121.8 kB / 355 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.287e-05/0.1136, allocations: 7.938 kB / 355 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.121e-05/0.1136, allocations: 11.52 kB / 355 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1136, allocations: 7.938 kB / 355 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1136, allocations: 0 / 355 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1136, allocations: 4 kB / 355 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000409/0.1141, allocations: 185.6 kB / 355.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.1141, allocations: 7.938 kB / 355.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.819e-05/0.1141, allocations: 15.92 kB / 355.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.1142, allocations: 0 / 355.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.1142, allocations: 8 kB / 355.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.1142, allocations: 3.938 kB / 355.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.1142, allocations: 4 kB / 355.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004547/0.1146, allocations: 492.5 kB / 355.7 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.596e-05/0.1147, allocations: 85.02 kB / 355.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.1147, allocations: 0 / 355.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003803/0.1151, allocations: 15.92 kB / 355.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.323e-05/0.1152, allocations: 11.98 kB / 355.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.1152, allocations: 4 kB / 355.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.614e-05/0.1153, allocations: 91.66 kB / 355.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1153, allocations: 0 / 355.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003806/0.1156, allocations: 8 kB / 355.9 MB, free: 13.68 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.0006938/0.1163, allocations: 1.034 MB / 357 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002241/0.1166, allocations: 63.97 kB / 357 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1166, allocations: 0 / 357 MB, free: 12.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.623e-05/0.1167, allocations: 35.91 kB / 357.1 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004973/0.1172, allocations: 8 kB / 357.1 MB, free: 12.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006822/0.1179, allocations: 252.9 kB / 357.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.1182, allocations: 0.6924 MB / 358 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.235e-05/0.1182, allocations: 4 kB / 358 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.747e-05/0.1183, allocations: 27.42 kB / 358.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of SimCode: time 1.002e-06/0.1183, allocations: 0 / 358.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1515/0.2698, allocations: 1.432 MB / 359.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002538/0.2701, allocations: 185.9 kB / 359.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.92/2.19, allocations: 0 / 359.7 MB, free: 9.855 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches