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: translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage") translateModel(Modelica.Blocks.Examples.BusUsage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|controlBus.realSignal1|controlBus.integerSignal|controlBus.booleanSignal|controlBus.subControlBus.myRealSignal|controlBus.subControlBus.myBooleanSignal",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002009/0.002009, allocations: 110 kB / 17.16 MB, free: 6.328 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.002552/0.002552, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.283/2.283, allocations: 222.9 MB / 241.7 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 48.95 kB / 300.6 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1396, allocations: 49.46 MB / 350.1 MB, free: 4.887 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.004249/0.1439, allocations: 1.645 MB / 351.7 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009264/0.1448, allocations: 423 kB / 352.1 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.663e-05/0.1449, allocations: 0 / 352.1 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.682e-05/0.145, allocations: 11.86 kB / 352.1 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.1451, allocations: 11.92 kB / 352.1 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00018/0.1453, allocations: 11.98 kB / 352.1 MB, free: 2.77 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001259/0.1455, allocations: 59.73 kB / 352.2 MB, free: 2.711 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002452/0.1457, allocations: 47.95 kB / 352.2 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001387/0.1459, allocations: 23.86 kB / 352.3 MB, free: 2.641 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.146, allocations: 31.84 kB / 352.3 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.076e-05/0.146, allocations: 7.938 kB / 352.3 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.1e-05/0.1461, allocations: 4 kB / 352.3 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.273e-05/0.1461, allocations: 15.92 kB / 352.3 MB, free: 2.582 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.324e-05/0.1462, allocations: 23.81 kB / 352.4 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.1463, allocations: 51.91 kB / 352.4 MB, free: 2.508 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1463, allocations: 4 kB / 352.4 MB, free: 2.504 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1463, allocations: 0 / 352.4 MB, free: 2.504 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.1463, allocations: 0 / 352.4 MB, free: 2.504 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.0006993/0.147, allocations: 379.5 kB / 352.8 MB, free: 2.086 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.1471, allocations: 12.03 kB / 352.8 MB, free: 2.074 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.535e-05/0.1472, allocations: 8.844 kB / 352.8 MB, free: 2.066 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001704/0.1474, allocations: 172.3 kB / 353 MB, free: 1.859 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.725e-05/0.1474, allocations: 384 / 353 MB, free: 1.859 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.406e-05/0.1474, allocations: 12.12 kB / 353 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003469/0.1478, allocations: 109.9 kB / 353.1 MB, free: 1.719 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.1478, allocations: 4 kB / 353.1 MB, free: 1.715 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.149e-05/0.1479, allocations: 4 kB / 353.1 MB, free: 1.711 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1479, allocations: 0 / 353.1 MB, free: 1.711 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002859/0.1482, allocations: 59.89 kB / 353.2 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009355/0.1491, allocations: 0.6535 MB / 353.8 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002631/0.1494, allocations: 113 kB / 353.9 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001716/0.1496, allocations: 52.41 kB / 354 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.1496, allocations: 0 / 354 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.1497, allocations: 42.5 kB / 354 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.493e-06/0.1497, allocations: 0 / 354 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0007319/0.1504, allocations: 121.5 kB / 354.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.1505, allocations: 166.1 kB / 354.3 MB, free: 344 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.1507, allocations: 118.4 kB / 354.4 MB, free: 216 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1507, allocations: 29.7 kB / 354.4 MB, free: 180 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.5e-05/0.1508, allocations: 107.9 kB / 354.5 MB, free: 68 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.185e-05/0.1508, allocations: 15.81 kB / 354.6 MB, free: 52 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.414e-05/0.1509, allocations: 21.7 kB / 354.6 MB, free: 24 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.1511, allocations: 314.8 kB / 354.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.1512, allocations: 19.98 kB / 354.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001569/0.1514, allocations: 56.27 kB / 355 MB, free: 15.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.1517, allocations: 84.14 kB / 355 MB, free: 15.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1517, allocations: 0 / 355 MB, free: 15.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003487/0.1521, allocations: 97.53 kB / 355.1 MB, free: 15.42 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.1521, allocations: 4 kB / 355.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.1521, allocations: 0 / 355.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.1521, allocations: 4 kB / 355.1 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.1523, allocations: 15.92 kB / 355.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.1523, allocations: 4.156 kB / 355.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.1525, allocations: 15.89 kB / 355.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.1525, allocations: 0 / 355.2 MB, free: 15.38 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.0001225/0.1526, allocations: 125.7 kB / 355.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/0.1528, allocations: 4 kB / 355.3 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.639e-05/0.1529, allocations: 11.53 kB / 355.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.879e-06/0.1529, allocations: 7.938 kB / 355.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.1529, allocations: 0 / 355.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.1529, allocations: 4 kB / 355.3 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007255/0.1537, allocations: 181.6 kB / 355.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.1537, allocations: 3.984 kB / 355.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.825e-05/0.1538, allocations: 12 kB / 355.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.1538, allocations: 0 / 355.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.713e-05/0.1538, allocations: 4 kB / 355.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.115e-06/0.1538, allocations: 7.922 kB / 355.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.1539, allocations: 3.984 kB / 355.5 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005145/0.1544, allocations: 0.4889 MB / 356 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.64e-05/0.1544, allocations: 81.02 kB / 356.1 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.674e-05/0.1545, allocations: 4 kB / 356.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003842/0.1549, allocations: 11.92 kB / 356.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.383e-05/0.155, allocations: 12 kB / 356.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.082e-05/0.155, allocations: 7.938 kB / 356.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.588e-05/0.1551, allocations: 91.27 kB / 356.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1551, allocations: 3.938 kB / 356.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007437/0.1558, allocations: 8 kB / 356.2 MB, free: 14.21 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.0001442/0.156, allocations: 103.2 kB / 356.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000316/0.1563, allocations: 59.89 kB / 356.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1563, allocations: 0 / 356.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.1565, allocations: 31.92 kB / 356.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009135/0.1574, allocations: 15.92 kB / 356.4 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000783/0.1582, allocations: 262.5 kB / 356.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005108/0.1587, allocations: 0.6926 MB / 357.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.887e-05/0.1588, allocations: 11.44 kB / 357.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1588, allocations: 0 / 357.4 MB, free: 12.96 MB / 302.1 MB Notification: Performance of Templates: time 0.003431/0.1623, allocations: 0.8553 MB / 358.3 MB, free: 12.11 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.makefile (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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