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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.BusUsage") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00107/0.001075, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.174/1.174, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009442/0.0009442, allocations: 102 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008044/0.0008045, allocations: 39.95 kB / 327.2 MB, free: 348 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1876/0.1885, allocations: 46.62 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.002648/0.1911, allocations: 1.647 MB / 375.5 MB, free: 44.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006305/0.1918, allocations: 464.9 kB / 375.9 MB, free: 44.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.879e-05/0.1919, allocations: 1.156 kB / 375.9 MB, free: 44.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.647e-05/0.1919, allocations: 5.5 kB / 375.9 MB, free: 44.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.327e-05/0.192, allocations: 13.33 kB / 375.9 MB, free: 44.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001239/0.1922, allocations: 10.75 kB / 375.9 MB, free: 44.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.787e-05/0.1922, allocations: 68.47 kB / 376 MB, free: 44.09 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.1924, allocations: 43.2 kB / 376 MB, free: 44.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.228e-05/0.1925, allocations: 25.48 kB / 376.1 MB, free: 44.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.134e-05/0.1925, allocations: 30.72 kB / 376.1 MB, free: 44.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.726e-05/0.1926, allocations: 8.062 kB / 376.1 MB, free: 44.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.319e-05/0.1926, allocations: 4.125 kB / 376.1 MB, free: 44.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.517e-05/0.1926, allocations: 13.31 kB / 376.1 MB, free: 44.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.584e-05/0.1927, allocations: 30.67 kB / 376.2 MB, free: 43.98 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.155e-05/0.1927, allocations: 64.33 kB / 376.2 MB, free: 43.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.1927, allocations: 1.375 kB / 376.2 MB, free: 43.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1928, allocations: 0 / 376.2 MB, free: 43.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.1928, allocations: 0 / 376.2 MB, free: 43.93 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.0003714/0.1931, allocations: 377.3 kB / 376.6 MB, free: 43.54 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.1932, allocations: 9.625 kB / 376.6 MB, free: 43.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.424e-05/0.1932, allocations: 12.95 kB / 376.6 MB, free: 43.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.826e-05/0.1933, allocations: 176.4 kB / 376.8 MB, free: 43.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.1933, allocations: 7.125 kB / 376.8 MB, free: 43.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.1933, allocations: 4.5 kB / 376.8 MB, free: 43.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001864/0.1935, allocations: 116.8 kB / 376.9 MB, free: 43.22 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.1935, allocations: 0 / 376.9 MB, free: 43.22 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.1936, allocations: 5.344 kB / 376.9 MB, free: 43.21 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1936, allocations: 5.656 kB / 376.9 MB, free: 43.21 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001674/0.1937, allocations: 54.2 kB / 377 MB, free: 43.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004895/0.1942, allocations: 0.646 MB / 377.6 MB, free: 42.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.1944, allocations: 117.3 kB / 377.7 MB, free: 42.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.281e-05/0.1945, allocations: 52.64 kB / 377.8 MB, free: 42.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.1945, allocations: 5.234 kB / 377.8 MB, free: 42.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.972e-05/0.1945, allocations: 44.75 kB / 377.8 MB, free: 42.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.1945, allocations: 0 / 377.8 MB, free: 42.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004121/0.195, allocations: 117.6 kB / 377.9 MB, free: 42.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.195, allocations: 165.2 kB / 378.1 MB, free: 42 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.611e-05/0.1951, allocations: 126.9 kB / 378.2 MB, free: 41.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.967e-06/0.1951, allocations: 25.7 kB / 378.3 MB, free: 41.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.496e-05/0.1951, allocations: 95.3 kB / 378.4 MB, free: 41.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.1952, allocations: 14.12 kB / 378.4 MB, free: 41.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.482e-05/0.1952, allocations: 27.67 kB / 378.4 MB, free: 41.72 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.576e-05/0.1953, allocations: 312.1 kB / 378.7 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.092e-05/0.1953, allocations: 28.5 kB / 378.7 MB, free: 41.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.601e-05/0.1954, allocations: 51.56 kB / 378.8 MB, free: 41.34 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.1956, allocations: 81.2 kB / 378.9 MB, free: 41.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1956, allocations: 3.938 kB / 378.9 MB, free: 41.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002209/0.1958, allocations: 100.8 kB / 379 MB, free: 41.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.1958, allocations: 5.75 kB / 379 MB, free: 41.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.591e-06/0.1959, allocations: 5.406 kB / 379 MB, free: 41.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.1959, allocations: 2.344 kB / 379 MB, free: 41.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.961e-05/0.196, allocations: 12.42 kB / 379 MB, free: 41.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.196, allocations: 6.25 kB / 379 MB, free: 41.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.176e-05/0.1961, allocations: 12.73 kB / 379 MB, free: 41.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.1961, allocations: 2.25 kB / 379 MB, free: 41.18 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.401e-05/0.1961, allocations: 119 kB / 379.1 MB, free: 41.06 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.822e-05/0.1962, allocations: 7.656 kB / 379.1 MB, free: 41.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.474e-05/0.1963, allocations: 21.66 kB / 379.1 MB, free: 41.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1963, allocations: 2.25 kB / 379.2 MB, free: 41.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1963, allocations: 1.125 kB / 379.2 MB, free: 41.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.1963, allocations: 6.25 kB / 379.2 MB, free: 41.04 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003011/0.1966, allocations: 188.4 kB / 379.3 MB, free: 40.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1966, allocations: 1.281 kB / 379.3 MB, free: 40.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.562e-05/0.1967, allocations: 13.08 kB / 379.4 MB, free: 40.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.1967, allocations: 1.219 kB / 379.4 MB, free: 40.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.1967, allocations: 6.25 kB / 379.4 MB, free: 40.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1967, allocations: 1.594 kB / 379.4 MB, free: 40.81 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1967, allocations: 5.156 kB / 379.4 MB, free: 40.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004182/0.1971, allocations: 1.059 MB / 380.4 MB, free: 39.75 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.154e-05/0.1972, allocations: 89.45 kB / 380.5 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.493e-05/0.1972, allocations: 5.25 kB / 380.5 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001953/0.1974, allocations: 9.078 kB / 380.5 MB, free: 39.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.148e-05/0.1974, allocations: 7.797 kB / 380.5 MB, free: 39.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-06/0.1974, allocations: 2.594 kB / 380.5 MB, free: 39.63 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.307e-05/0.1975, allocations: 95.3 kB / 380.6 MB, free: 39.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1975, allocations: 0 / 380.6 MB, free: 39.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004465/0.1979, allocations: 14.16 kB / 380.6 MB, free: 39.54 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.687e-05/0.198, allocations: 93.12 kB / 380.7 MB, free: 39.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001978/0.1982, allocations: 58.09 kB / 380.8 MB, free: 39.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1982, allocations: 4.25 kB / 380.8 MB, free: 39.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.113e-05/0.1983, allocations: 39.94 kB / 380.8 MB, free: 39.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004782/0.1988, allocations: 11.25 kB / 380.8 MB, free: 39.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003804/0.1992, allocations: 338.4 kB / 381.2 MB, free: 39.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000116/0.1993, allocations: 0.6918 MB / 381.9 MB, free: 38.37 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.242e-05/0.1994, allocations: 1.281 kB / 381.9 MB, free: 38.37 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.431e-05/0.1994, allocations: 9.5 kB / 381.9 MB, free: 38.36 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1994, allocations: 7.938 kB / 381.9 MB, free: 38.35 MB / 298.7 MB Notification: Performance of Templates: time 0.001956/0.2014, allocations: 482.7 kB / 382.4 MB, free: 38.11 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.makefile (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 & ./Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.BusUsage_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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