Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001641/0.001642, allocations: 190.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 226.6 MB / 244.7 MB, free: 6.449 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007232/0.0007232, allocations: 92.78 kB / 296.8 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001951/0.0001952, allocations: 8 kB / 356.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1749/0.1752, allocations: 51.3 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.00122/0.1764, allocations: 1.302 MB / 409.3 MB, free: 26.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000484/0.1769, allocations: 446 kB / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.205e-05/0.177, allocations: 0 / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.8e-05/0.177, allocations: 3.938 kB / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.001e-05/0.1771, allocations: 11.88 kB / 409.8 MB, free: 25.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001164/0.1772, allocations: 12.73 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.503e-05/0.1773, allocations: 55.78 kB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.1774, allocations: 45.2 kB / 409.9 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.1775, allocations: 29.61 kB / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.927e-05/0.1776, allocations: 23.86 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.115e-05/0.1776, allocations: 0 / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.357e-05/0.1776, allocations: 4 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.258e-05/0.1776, allocations: 11.97 kB / 410 MB, free: 25.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.95e-05/0.1777, allocations: 50.45 kB / 410 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.262e-05/0.1778, allocations: 43.91 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1778, allocations: 0.8125 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1778, allocations: 0 / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.1778, allocations: 0 / 410.1 MB, free: 25.66 MB / 298.7 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.0003261/0.1781, allocations: 377.2 kB / 410.4 MB, free: 25.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.953e-05/0.1782, allocations: 11.97 kB / 410.4 MB, free: 25.24 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001282/0.1783, allocations: 21.83 kB / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.368e-05/0.1784, allocations: 172.2 kB / 410.6 MB, free: 25.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.1784, allocations: 10.06 kB / 410.6 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.819e-06/0.1784, allocations: 8.312 kB / 410.6 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001792/0.1786, allocations: 117.4 kB / 410.8 MB, free: 24.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.1786, allocations: 0 / 410.8 MB, free: 24.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.1786, allocations: 7.938 kB / 410.8 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.1786, allocations: 4 kB / 410.8 MB, free: 24.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001594/0.1788, allocations: 71.89 kB / 410.8 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004335/0.1792, allocations: 0.6497 MB / 411.5 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001272/0.1794, allocations: 117 kB / 411.6 MB, free: 23.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.854e-05/0.1795, allocations: 60.39 kB / 411.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.1795, allocations: 7.938 kB / 411.7 MB, free: 23.83 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.22e-05/0.1795, allocations: 38.56 kB / 411.7 MB, free: 23.78 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.1795, allocations: 0 / 411.7 MB, free: 23.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003801/0.1799, allocations: 138 kB / 411.8 MB, free: 23.64 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/0.18, allocations: 162.2 kB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.077e-05/0.18, allocations: 125.8 kB / 412.1 MB, free: 23.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.757e-06/0.18, allocations: 25.7 kB / 412.2 MB, free: 23.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.014e-05/0.1801, allocations: 96.05 kB / 412.2 MB, free: 23.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.1801, allocations: 19.73 kB / 412.3 MB, free: 23.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.819e-06/0.1801, allocations: 0 / 412.3 MB, free: 23.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.703e-05/0.1802, allocations: 314.8 kB / 412.6 MB, free: 22.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.424e-05/0.1802, allocations: 27.98 kB / 412.6 MB, free: 22.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.307e-05/0.1803, allocations: 60.27 kB / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.1805, allocations: 84.2 kB / 412.7 MB, free: 22.65 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1805, allocations: 4 kB / 412.7 MB, free: 22.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000194/0.1807, allocations: 113.4 kB / 412.9 MB, free: 22.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.036e-05/0.1807, allocations: 4 kB / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.1807, allocations: 160 / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.1807, allocations: 8 kB / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.807e-05/0.1808, allocations: 11.98 kB / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.1808, allocations: 4 kB / 412.9 MB, free: 22.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.164e-05/0.1809, allocations: 15.88 kB / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-06/0.1809, allocations: 3.984 kB / 412.9 MB, free: 22.48 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.956e-05/0.181, allocations: 117.8 kB / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.691e-05/0.1811, allocations: 15.91 kB / 413 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.143e-05/0.1811, allocations: 11.47 kB / 413 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.1811, allocations: 7.938 kB / 413.1 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.1811, allocations: 0 / 413.1 MB, free: 22.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.1811, allocations: 3.938 kB / 413.1 MB, free: 22.31 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002935/0.1814, allocations: 189.6 kB / 413.2 MB, free: 22.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1814, allocations: 7.984 kB / 413.2 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.285e-05/0.1815, allocations: 8 kB / 413.3 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.1815, allocations: 4 kB / 413.3 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.1815, allocations: 0 / 413.3 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.1815, allocations: 11.98 kB / 413.3 MB, free: 22.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1815, allocations: 3.938 kB / 413.3 MB, free: 22.04 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002236/0.1817, allocations: 0.4889 MB / 413.8 MB, free: 21.54 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.665e-05/0.1818, allocations: 85.11 kB / 413.8 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.373e-05/0.1818, allocations: 4 kB / 413.9 MB, free: 21.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000195/0.182, allocations: 11.98 kB / 413.9 MB, free: 21.42 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.913e-05/0.182, allocations: 19.88 kB / 413.9 MB, free: 21.4 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-06/0.182, allocations: 0 / 413.9 MB, free: 21.4 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.745e-05/0.1821, allocations: 91.27 kB / 414 MB, free: 21.31 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1821, allocations: 0 / 414 MB, free: 21.31 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003438/0.1824, allocations: 15.91 kB / 414 MB, free: 21.29 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.332e-05/0.1825, allocations: 95.25 kB / 414.1 MB, free: 21.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00019/0.1827, allocations: 71.89 kB / 414.2 MB, free: 21.12 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1827, allocations: 0 / 414.2 MB, free: 21.12 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.959e-05/0.1828, allocations: 36.48 kB / 414.2 MB, free: 21.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004986/0.1833, allocations: 16.75 kB / 414.2 MB, free: 21.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003115/0.1836, allocations: 251.6 kB / 414.4 MB, free: 20.78 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001168/0.1838, allocations: 0.6926 MB / 415.1 MB, free: 20.06 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.022e-05/0.1838, allocations: 7.438 kB / 415.1 MB, free: 20.05 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.1838, allocations: 0 / 415.1 MB, free: 20.05 MB / 298.7 MB Notification: Performance of Templates: time 0.001577/0.1854, allocations: 0.8614 MB / 416 MB, free: 19.19 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches