Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008283/0.0008284, allocations: 177.3 kB / 16.71 MB, free: 5.094 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.217/1.217, allocations: 225.7 MB / 243.2 MB, free: 8.461 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.0007667/0.0007669, allocations: 89.59 kB / 294.4 MB, free: 9.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002756/0.0002757, allocations: 8 kB / 354.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.184/0.1843, allocations: 50.42 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.001696/0.186, allocations: 1.502 MB / 406.1 MB, free: 29.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.1873, allocations: 1.183 MB / 407.3 MB, free: 28.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.373e-05/0.1874, allocations: 4.531 kB / 407.3 MB, free: 28.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004633/0.1879, allocations: 153.6 kB / 407.4 MB, free: 28.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002263/0.1881, allocations: 112.2 kB / 407.5 MB, free: 28.3 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003503/0.1885, allocations: 161.7 kB / 407.7 MB, free: 28.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001775/0.1886, allocations: 203.4 kB / 407.9 MB, free: 27.95 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.189e-05/0.1887, allocations: 14.75 kB / 407.9 MB, free: 27.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.74e-05/0.1888, allocations: 73.17 kB / 408 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.811e-05/0.1889, allocations: 83.61 kB / 408 MB, free: 27.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.015e-05/0.189, allocations: 4 kB / 408 MB, free: 27.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001046/0.1891, allocations: 47.95 kB / 408.1 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.402e-05/0.1891, allocations: 36.5 kB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.705e-05/0.1892, allocations: 93.25 kB / 408.2 MB, free: 27.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001975/0.1894, allocations: 209.4 kB / 408.4 MB, free: 27.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1894, allocations: 0 / 408.4 MB, free: 27.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1894, allocations: 3.531 kB / 408.4 MB, free: 27.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.1894, allocations: 3.938 kB / 408.4 MB, free: 27.39 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000569/0.19, allocations: 0.5042 MB / 408.9 MB, free: 26.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.752e-05/0.1901, allocations: 8.031 kB / 408.9 MB, free: 26.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.964e-05/0.1901, allocations: 26.22 kB / 409 MB, free: 26.8 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002053/0.1903, allocations: 254.9 kB / 409.2 MB, free: 26.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.1903, allocations: 11.86 kB / 409.2 MB, free: 26.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.1904, allocations: 12 kB / 409.2 MB, free: 26.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.1905, allocations: 110 kB / 409.3 MB, free: 26.36 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.1906, allocations: 0 / 409.3 MB, free: 26.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.1906, allocations: 4 kB / 409.3 MB, free: 26.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.1906, allocations: 7.984 kB / 409.4 MB, free: 26.35 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001195/0.1907, allocations: 47.92 kB / 409.4 MB, free: 26.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004505/0.1912, allocations: 0.6144 MB / 410 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001893/0.1914, allocations: 123.9 kB / 410.1 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.37e-05/0.1915, allocations: 50.55 kB / 410.2 MB, free: 25.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.1915, allocations: 4 kB / 410.2 MB, free: 25.42 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001752/0.1917, allocations: 129.8 kB / 410.3 MB, free: 25.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.1917, allocations: 0 / 410.3 MB, free: 25.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003585/0.192, allocations: 169.5 kB / 410.5 MB, free: 25.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.1921, allocations: 144.4 kB / 410.6 MB, free: 24.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.1923, allocations: 288.9 kB / 410.9 MB, free: 24.64 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.1923, allocations: 25.7 kB / 410.9 MB, free: 24.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.038e-05/0.1924, allocations: 128.4 kB / 411.1 MB, free: 24.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.1924, allocations: 27.64 kB / 411.1 MB, free: 24.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-06/0.1924, allocations: 0 / 411.1 MB, free: 24.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.635e-05/0.1925, allocations: 330.8 kB / 411.4 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.894e-05/0.1926, allocations: 35.98 kB / 411.4 MB, free: 24.08 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.772e-05/0.1927, allocations: 77.98 kB / 411.5 MB, free: 23.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001345/0.1928, allocations: 96.25 kB / 411.6 MB, free: 23.87 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1928, allocations: 4 kB / 411.6 MB, free: 23.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002168/0.193, allocations: 149.8 kB / 411.8 MB, free: 23.71 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.1931, allocations: 4 kB / 411.8 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.1931, allocations: 4 kB / 411.8 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.1931, allocations: 96 / 411.8 MB, free: 23.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.655e-05/0.1932, allocations: 19.98 kB / 411.8 MB, free: 23.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.1932, allocations: 11.88 kB / 411.8 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.1933, allocations: 19.92 kB / 411.8 MB, free: 23.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.1933, allocations: 4 kB / 411.8 MB, free: 23.65 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: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 8.474e-05/0.1934, allocations: 145.8 kB / 412 MB, free: 23.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.459e-05/0.1934, allocations: 19.72 kB / 412 MB, free: 23.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.344e-05/0.1935, allocations: 29.7 kB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.1935, allocations: 4 kB / 412 MB, free: 23.44 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1935, allocations: 7.875 kB / 412 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1935, allocations: 0 / 412 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001379/0.1936, allocations: 237.6 kB / 412.3 MB, free: 23.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1937, allocations: 0 / 412.3 MB, free: 23.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.647e-05/0.1937, allocations: 15.92 kB / 412.3 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.1937, allocations: 4 kB / 412.3 MB, free: 23.13 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.417e-06/0.1937, allocations: 3.938 kB / 412.3 MB, free: 23.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.1937, allocations: 4 kB / 412.3 MB, free: 23.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.1937, allocations: 3.938 kB / 412.3 MB, free: 23.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002256/0.194, allocations: 174.5 kB / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.557e-05/0.194, allocations: 104.8 kB / 412.6 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.941e-05/0.194, allocations: 0 / 412.6 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.301e-05/0.1941, allocations: 19.98 kB / 412.6 MB, free: 22.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.831e-05/0.1942, allocations: 19.86 kB / 412.6 MB, free: 22.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.1942, allocations: 8.047 kB / 412.6 MB, free: 22.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001427/0.1944, allocations: 212.5 kB / 412.8 MB, free: 22.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1944, allocations: 0 / 412.8 MB, free: 22.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002156/0.1946, allocations: 36 kB / 412.9 MB, free: 22.52 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0007734/0.1954, allocations: 493.5 kB / 413.3 MB, free: 22.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002187/0.1956, allocations: 87.91 kB / 413.4 MB, free: 22.08 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1956, allocations: 0 / 413.4 MB, free: 22.08 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.1957, allocations: 55.92 kB / 413.5 MB, free: 22.02 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002933/0.196, allocations: 40.39 kB / 413.5 MB, free: 21.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000428/0.1965, allocations: 392.5 kB / 413.9 MB, free: 21.56 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001172/0.1966, allocations: 0.736 MB / 414.6 MB, free: 20.8 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.832e-05/0.1967, allocations: 25.55 kB / 414.7 MB, free: 20.78 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.907e-05/0.1967, allocations: 19.44 kB / 414.7 MB, free: 20.76 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.1967, allocations: 0 / 414.7 MB, free: 20.76 MB / 298.7 MB Notification: Performance of Templates: time 0.004585/0.2013, allocations: 2.527 MB / 417.2 MB, free: 18.25 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches