Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008904/0.0008905, allocations: 182.6 kB / 16.71 MB, free: 4.84 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 225.7 MB / 243.2 MB, free: 10.22 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007738/0.0007739, allocations: 101.2 kB / 294.4 MB, free: 9.734 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002487/0.0002487, allocations: 15.94 kB / 354.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.183/0.1832, allocations: 50.4 MB / 404.6 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BusUsage): time 0.001289/0.1846, allocations: 1.29 MB / 405.8 MB, free: 30.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005311/0.1851, allocations: 402.7 kB / 406.2 MB, free: 29.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.66e-05/0.1852, allocations: 4 kB / 406.2 MB, free: 29.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.155e-05/0.1852, allocations: 3.938 kB / 406.2 MB, free: 29.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.195e-05/0.1853, allocations: 7.922 kB / 406.3 MB, free: 29.65 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000121/0.1854, allocations: 15.98 kB / 406.3 MB, free: 29.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.866e-05/0.1855, allocations: 66.19 kB / 406.3 MB, free: 29.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001464/0.1856, allocations: 39.97 kB / 406.4 MB, free: 29.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.228e-05/0.1857, allocations: 23.84 kB / 406.4 MB, free: 29.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.146e-05/0.1858, allocations: 19.86 kB / 406.4 MB, free: 29.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.886e-05/0.1858, allocations: 4.625 kB / 406.4 MB, free: 29.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.778e-06/0.1858, allocations: 3.938 kB / 406.4 MB, free: 29.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.711e-05/0.1859, allocations: 16.45 kB / 406.4 MB, free: 29.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.266e-05/0.1859, allocations: 46.7 kB / 406.5 MB, free: 29.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.251e-05/0.186, allocations: 59.77 kB / 406.5 MB, free: 29.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.186, allocations: 0 / 406.5 MB, free: 29.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.532e-06/0.186, allocations: 0 / 406.5 MB, free: 29.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.186, allocations: 3.094 kB / 406.6 MB, free: 29.36 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.0003529/0.1864, allocations: 372.8 kB / 406.9 MB, free: 28.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.1864, allocations: 8.031 kB / 406.9 MB, free: 28.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.658e-05/0.1864, allocations: 8.844 kB / 406.9 MB, free: 28.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.187e-05/0.1865, allocations: 178.3 kB / 407.1 MB, free: 28.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.1865, allocations: 8.375 kB / 407.1 MB, free: 28.71 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.419e-05/0.1866, allocations: 8.125 kB / 407.1 MB, free: 28.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001789/0.1867, allocations: 125.9 kB / 407.2 MB, free: 28.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.1868, allocations: 3.938 kB / 407.2 MB, free: 28.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.1868, allocations: 0 / 407.2 MB, free: 28.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.1868, allocations: 4 kB / 407.3 MB, free: 28.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001542/0.1869, allocations: 71.89 kB / 407.3 MB, free: 28.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004231/0.1874, allocations: 0.6342 MB / 408 MB, free: 27.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.1875, allocations: 124.9 kB / 408.1 MB, free: 27.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.593e-05/0.1876, allocations: 60.47 kB / 408.1 MB, free: 27.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.1876, allocations: 7.984 kB / 408.1 MB, free: 27.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.622e-05/0.1876, allocations: 38.5 kB / 408.2 MB, free: 27.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.1877, allocations: 0 / 408.2 MB, free: 27.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003681/0.188, allocations: 137.5 kB / 408.3 MB, free: 27.35 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.812e-05/0.1881, allocations: 166.1 kB / 408.5 MB, free: 27.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.489e-05/0.1881, allocations: 122.3 kB / 408.6 MB, free: 27.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.413e-06/0.1882, allocations: 29.7 kB / 408.6 MB, free: 26.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.979e-05/0.1882, allocations: 104 kB / 408.7 MB, free: 26.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.572e-05/0.1882, allocations: 15.75 kB / 408.7 MB, free: 26.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.647e-06/0.1882, allocations: 0 / 408.7 MB, free: 26.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.728e-05/0.1883, allocations: 318.8 kB / 409.1 MB, free: 26.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.911e-05/0.1883, allocations: 23.98 kB / 409.1 MB, free: 26.52 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.904e-05/0.1884, allocations: 56.28 kB / 409.1 MB, free: 26.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001352/0.1885, allocations: 92.2 kB / 409.2 MB, free: 26.34 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1886, allocations: 0 / 409.2 MB, free: 26.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001771/0.1887, allocations: 109.4 kB / 409.3 MB, free: 26.23 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.1888, allocations: 4 kB / 409.3 MB, free: 26.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.1888, allocations: 3.984 kB / 409.3 MB, free: 26.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.1888, allocations: 4 kB / 409.3 MB, free: 26.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.853e-05/0.1889, allocations: 24.08 kB / 409.4 MB, free: 26.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.1889, allocations: 4 kB / 409.4 MB, free: 26.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.867e-05/0.189, allocations: 11.98 kB / 409.4 MB, free: 26.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.189, allocations: 4 kB / 409.4 MB, free: 26.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.078e-05/0.189, allocations: 121.7 kB / 409.5 MB, free: 26.05 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.821e-05/0.1891, allocations: 7.906 kB / 409.5 MB, free: 26.04 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.233e-05/0.1891, allocations: 11.52 kB / 409.5 MB, free: 26.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1891, allocations: 7.938 kB / 409.5 MB, free: 26.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1892, allocations: 4 kB / 409.5 MB, free: 26.01 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.1892, allocations: 4 kB / 409.5 MB, free: 26.01 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000278/0.1894, allocations: 177.6 kB / 409.7 MB, free: 25.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.1895, allocations: 4 kB / 409.7 MB, free: 25.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.135e-05/0.1895, allocations: 11.98 kB / 409.7 MB, free: 25.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1895, allocations: 7.938 kB / 409.7 MB, free: 25.76 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.443e-06/0.1895, allocations: 0 / 409.7 MB, free: 25.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.1895, allocations: 7.938 kB / 409.7 MB, free: 25.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1896, allocations: 0 / 409.7 MB, free: 25.75 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002239/0.1898, allocations: 0.5005 MB / 410.2 MB, free: 25.23 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.824e-05/0.1898, allocations: 81.05 kB / 410.3 MB, free: 25.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.588e-05/0.1898, allocations: 8 kB / 410.3 MB, free: 25.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00019/0.19, allocations: 20.05 kB / 410.4 MB, free: 25.11 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.079e-05/0.1901, allocations: 7.984 kB / 410.4 MB, free: 25.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-06/0.1901, allocations: 4 kB / 410.4 MB, free: 25.1 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.7e-05/0.1901, allocations: 91.27 kB / 410.5 MB, free: 25.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.1901, allocations: 8 kB / 410.5 MB, free: 25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003405/0.1905, allocations: 19.84 kB / 410.5 MB, free: 24.98 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.436e-05/0.1905, allocations: 99.25 kB / 410.6 MB, free: 24.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001908/0.1907, allocations: 68.09 kB / 410.6 MB, free: 24.81 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1907, allocations: 0 / 410.6 MB, free: 24.81 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.567e-05/0.1908, allocations: 43.91 kB / 410.7 MB, free: 24.77 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004374/0.1913, allocations: 4 kB / 410.7 MB, free: 24.76 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003161/0.1916, allocations: 230.4 kB / 410.9 MB, free: 24.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001193/0.1917, allocations: 0.6926 MB / 411.6 MB, free: 23.78 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.075e-05/0.1918, allocations: 4 kB / 411.6 MB, free: 23.78 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.463e-05/0.1918, allocations: 7.438 kB / 411.6 MB, free: 23.77 MB / 298.7 MB Notification: Performance of SimCode: time 4.41e-07/0.1918, allocations: 0 / 411.6 MB, free: 23.77 MB / 298.7 MB Notification: Performance of Templates: time 0.001971/0.1938, allocations: 454.7 kB / 412.1 MB, free: 23.33 MB / 298.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/BusUsage/BusUsage.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.BusUsage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches