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.000794/0.0007939, allocations: 92.05 kB / 16.65 MB, free: 6.59 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.0009903/0.0009903, allocations: 180.4 kB / 17.56 MB, free: 6.203 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.558/1.558, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004266/0.0004264, allocations: 8 kB / 301.5 MB, free: 5.816 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.144, allocations: 50.41 MB / 351.9 MB, free: 3.395 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002279/0.1463, allocations: 1.309 MB / 353.2 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009898/0.1474, allocations: 423 kB / 353.7 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.1475, allocations: 0 / 353.7 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.283e-05/0.1475, allocations: 3.938 kB / 353.7 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001662/0.1478, allocations: 11.92 kB / 353.7 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.148, allocations: 11.98 kB / 353.7 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.1481, allocations: 59.78 kB / 353.7 MB, free: 1.566 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002159/0.1483, allocations: 39.92 kB / 353.8 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000141/0.1485, allocations: 27.84 kB / 353.8 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.969e-05/0.1486, allocations: 23.86 kB / 353.8 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.722e-05/0.1486, allocations: 0 / 353.8 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.703e-05/0.1486, allocations: 4 kB / 353.8 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.235e-05/0.1486, allocations: 3.938 kB / 353.8 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.618e-05/0.1487, allocations: 53.5 kB / 353.9 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001248/0.1489, allocations: 56.05 kB / 353.9 MB, free: 1.355 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1489, allocations: 0 / 353.9 MB, free: 1.355 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1489, allocations: 4 kB / 353.9 MB, free: 1.352 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.1489, allocations: 4 kB / 354 MB, free: 1.348 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.000553/0.1495, allocations: 375.3 kB / 354.3 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/0.1495, allocations: 12.03 kB / 354.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.122e-05/0.1496, allocations: 34.75 kB / 354.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.863e-05/0.1496, allocations: 8.844 kB / 354.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001652/0.1498, allocations: 180.2 kB / 354.6 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.1498, allocations: 8.375 kB / 354.6 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.244e-05/0.1499, allocations: 11.94 kB / 354.6 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002835/0.1501, allocations: 113.9 kB / 354.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.1502, allocations: 0 / 354.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.1502, allocations: 7.984 kB / 354.7 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.096e-06/0.1502, allocations: 4 kB / 354.7 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002109/0.1504, allocations: 63.89 kB / 354.8 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008774/0.1513, allocations: 0.6342 MB / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002168/0.1515, allocations: 133 kB / 355.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.1517, allocations: 56.28 kB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.296e-05/0.1517, allocations: 3.984 kB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/0.1518, allocations: 46.5 kB / 355.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.352e-06/0.1518, allocations: 4 kB / 355.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005285/0.1523, allocations: 141.9 kB / 355.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.1524, allocations: 162.2 kB / 355.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.1525, allocations: 121.7 kB / 356 MB, free: 14.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.1526, allocations: 25.7 kB / 356.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.459e-05/0.1526, allocations: 103.9 kB / 356.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.61e-05/0.1527, allocations: 15.81 kB / 356.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.425e-05/0.1527, allocations: 17.66 kB / 356.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.1529, allocations: 318.8 kB / 356.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.062e-05/0.153, allocations: 28.02 kB / 356.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001037/0.1531, allocations: 56.22 kB / 356.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002293/0.1533, allocations: 100.2 kB / 356.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1533, allocations: 0 / 356.7 MB, free: 14.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002474/0.1536, allocations: 101.5 kB / 356.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.1536, allocations: 8.156 kB / 356.8 MB, free: 14.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.1536, allocations: 7.938 kB / 356.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.1536, allocations: 3.938 kB / 356.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.1537, allocations: 19.98 kB / 356.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.351e-06/0.1538, allocations: 0 / 356.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.943e-05/0.1538, allocations: 8 kB / 356.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.819e-06/0.1538, allocations: 4 kB / 356.8 MB, free: 14.09 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 0.000112/0.154, allocations: 125.8 kB / 357 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.1541, allocations: 7.906 kB / 357 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.01e-05/0.1541, allocations: 11.53 kB / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1541, allocations: 3.938 kB / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.1541, allocations: 4 kB / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1542, allocations: 0 / 357 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004213/0.1546, allocations: 181.6 kB / 357.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1546, allocations: 0 / 357.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.77e-05/0.1547, allocations: 19.92 kB / 357.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.1547, allocations: 4 kB / 357.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.1547, allocations: 4 kB / 357.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.1547, allocations: 3.938 kB / 357.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.1547, allocations: 3.984 kB / 357.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005198/0.1553, allocations: 0.4927 MB / 357.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.999e-05/0.1553, allocations: 89.09 kB / 357.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.1554, allocations: 3.938 kB / 357.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.1556, allocations: 11.94 kB / 357.8 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.944e-05/0.1557, allocations: 11.98 kB / 357.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.895e-06/0.1557, allocations: 4.188 kB / 357.8 MB, free: 13.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.668e-05/0.1557, allocations: 95.27 kB / 357.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1557, allocations: 0 / 357.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003854/0.1561, allocations: 11.91 kB / 357.9 MB, free: 12.91 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.0008481/0.157, allocations: 1.038 MB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002621/0.1573, allocations: 71.89 kB / 359 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1573, allocations: 0 / 359 MB, free: 11.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.1574, allocations: 44.23 kB / 359.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005217/0.1579, allocations: 4 kB / 359.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008445/0.1588, allocations: 271.8 kB / 359.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003701/0.1592, allocations: 0.6887 MB / 360 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.487e-05/0.1592, allocations: 7.984 kB / 360 MB, free: 10.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.37e-05/0.1593, allocations: 23.42 kB / 360.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1593, allocations: 0 / 360.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01216/0.1715, allocations: 1.319 MB / 361.4 MB, free: 9.441 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/0.1717, allocations: 190.9 kB / 361.6 MB, free: 9.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.972/2.144, allocations: 0 / 361.6 MB, free: 9.18 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