Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Blocks_Examples_BusUsage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.BusUsage,fileNamePrefix="Modelica_3_2_3_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.001504/0.001504, allocations: 118.5 kB / 17.28 MB, free: 6.219 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.001444/0.001444, allocations: 193.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.68/1.68, allocations: 205.1 MB / 224 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001305, allocations: 52.16 kB / 280.2 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1332, allocations: 46.62 MB / 326.9 MB, free: 4.707 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.00344/0.1367, allocations: 1.653 MB / 328.5 MB, free: 3.035 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008525/0.1376, allocations: 459.8 kB / 329 MB, free: 2.578 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.389e-05/0.1377, allocations: 4 kB / 329 MB, free: 2.574 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 5.581e-05/0.1378, allocations: 3.938 kB / 329 MB, free: 2.57 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001105/0.1379, allocations: 7.938 kB / 329 MB, free: 2.562 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002027/0.1381, allocations: 23.97 kB / 329 MB, free: 2.539 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001143/0.1382, allocations: 59.78 kB / 329.1 MB, free: 2.48 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002447/0.1385, allocations: 43.91 kB / 329.1 MB, free: 2.438 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001256/0.1386, allocations: 31.84 kB / 329.1 MB, free: 2.406 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.12e-05/0.1387, allocations: 31.84 kB / 329.2 MB, free: 2.375 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.707e-05/0.1387, allocations: 8 kB / 329.2 MB, free: 2.367 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.778e-05/0.1387, allocations: 4 kB / 329.2 MB, free: 2.363 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.011e-05/0.1388, allocations: 11.94 kB / 329.2 MB, free: 2.352 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.043e-05/0.1389, allocations: 27.86 kB / 329.2 MB, free: 2.324 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.139, allocations: 75.94 kB / 329.3 MB, free: 2.25 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.139, allocations: 0 / 329.3 MB, free: 2.25 MB / 270.1 MB Notification: Performance of FrontEnd: time 5.16e-06/0.139, allocations: 0 / 329.3 MB, free: 2.25 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.968e-05/0.1391, allocations: 3.938 kB / 329.3 MB, free: 2.246 MB / 270.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.0007199/0.1398, allocations: 375.2 kB / 329.7 MB, free: 1.832 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.258e-05/0.1399, allocations: 12.03 kB / 329.7 MB, free: 1.82 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.1e-05/0.1399, allocations: 38.73 kB / 329.7 MB, free: 1.773 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.375e-05/0.14, allocations: 16.84 kB / 329.7 MB, free: 1.758 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000195/0.1402, allocations: 172.3 kB / 329.9 MB, free: 1.551 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.1402, allocations: 4.375 kB / 329.9 MB, free: 1.547 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.488e-05/0.1402, allocations: 8.375 kB / 329.9 MB, free: 1.539 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002842/0.1405, allocations: 118 kB / 330 MB, free: 1.402 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1406, allocations: 4 kB / 330 MB, free: 1.398 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.1406, allocations: 0 / 330 MB, free: 1.398 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.228e-06/0.1406, allocations: 4 kB / 330 MB, free: 1.395 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001844/0.1408, allocations: 55.91 kB / 330.1 MB, free: 1.34 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000822/0.1416, allocations: 0.6457 MB / 330.7 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001844/0.1418, allocations: 121 kB / 330.9 MB, free: 476 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.1419, allocations: 52.33 kB / 330.9 MB, free: 408 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.1419, allocations: 0 / 330.9 MB, free: 408 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.142, allocations: 46.5 kB / 330.9 MB, free: 352 kB / 270.1 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.142, allocations: 0 / 330.9 MB, free: 352 kB / 270.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004608/0.1425, allocations: 114 kB / 331.1 MB, free: 232 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.536e-05/0.1426, allocations: 162.3 kB / 331.2 MB, free: 32 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/0.1427, allocations: 133.6 kB / 331.3 MB, free: 15.89 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.1428, allocations: 25.7 kB / 331.4 MB, free: 15.86 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.383e-05/0.1428, allocations: 99.97 kB / 331.5 MB, free: 15.76 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.667e-05/0.1429, allocations: 15.8 kB / 331.5 MB, free: 15.74 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.093e-05/0.1429, allocations: 21.72 kB / 331.5 MB, free: 15.71 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.1431, allocations: 318.8 kB / 331.8 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.837e-05/0.1432, allocations: 19.98 kB / 331.8 MB, free: 15.38 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.175e-05/0.1433, allocations: 52.28 kB / 331.9 MB, free: 15.31 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002043/0.1435, allocations: 80.19 kB / 332 MB, free: 15.21 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1435, allocations: 0 / 332 MB, free: 15.21 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002084/0.1437, allocations: 97.66 kB / 332.1 MB, free: 15.11 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.1437, allocations: 12.03 kB / 332.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1437, allocations: 0 / 332.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.1437, allocations: 0 / 332.1 MB, free: 15.1 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.1438, allocations: 12 kB / 332.1 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.739e-06/0.1439, allocations: 7.922 kB / 332.1 MB, free: 15.08 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.386e-05/0.1439, allocations: 11.84 kB / 332.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.144, allocations: 4 kB / 332.1 MB, free: 15.07 MB / 286.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.0001021/0.1441, allocations: 121.8 kB / 332.2 MB, free: 14.94 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.061e-05/0.1442, allocations: 11.98 kB / 332.2 MB, free: 14.93 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.36e-05/0.1442, allocations: 15.48 kB / 332.3 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.1442, allocations: 0 / 332.3 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.1442, allocations: 7.938 kB / 332.3 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1442, allocations: 3.938 kB / 332.3 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003714/0.1446, allocations: 181.6 kB / 332.4 MB, free: 14.67 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1446, allocations: 4.125 kB / 332.4 MB, free: 14.67 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.368e-05/0.1447, allocations: 11.98 kB / 332.5 MB, free: 14.66 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.1447, allocations: 4 kB / 332.5 MB, free: 14.65 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.1447, allocations: 0 / 332.5 MB, free: 14.65 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.379e-06/0.1447, allocations: 8 kB / 332.5 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.676e-06/0.1447, allocations: 3.938 kB / 332.5 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004445/0.1452, allocations: 492.5 kB / 333 MB, free: 14.14 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.809e-05/0.1453, allocations: 85.02 kB / 333 MB, free: 14.04 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.353e-05/0.1453, allocations: 7.984 kB / 333 MB, free: 14.03 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/0.1455, allocations: 7.938 kB / 333.1 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.173e-05/0.1456, allocations: 15.92 kB / 333.1 MB, free: 14.01 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.1456, allocations: 0 / 333.1 MB, free: 14.01 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.916e-05/0.1456, allocations: 95.27 kB / 333.2 MB, free: 13.91 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1456, allocations: 0 / 333.2 MB, free: 13.91 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003663/0.146, allocations: 16 kB / 333.2 MB, free: 13.9 MB / 286.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.0008121/0.1468, allocations: 1.014 MB / 334.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002532/0.1471, allocations: 67.77 kB / 334.3 MB, free: 12.79 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.1471, allocations: 4 kB / 334.3 MB, free: 12.79 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.551e-05/0.1472, allocations: 32.48 kB / 334.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004984/0.1477, allocations: 8.828 kB / 334.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008251/0.1486, allocations: 256.3 kB / 334.6 MB, free: 12.44 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005908/0.1492, allocations: 0.6885 MB / 335.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.752e-05/0.1492, allocations: 0 / 335.2 MB, free: 11.73 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.602e-05/0.1493, allocations: 23.42 kB / 335.3 MB, free: 11.7 MB / 286.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1493, allocations: 3.938 kB / 335.3 MB, free: 11.7 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02231/0.1716, allocations: 1.447 MB / 336.7 MB, free: 10.25 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002213/0.1719, allocations: 178.1 kB / 336.9 MB, free: 9.992 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.337/2.509, allocations: 0 / 336.9 MB, free: 9.992 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_BusUsage.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches