Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.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.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008494/0.0008495, allocations: 183.3 kB / 16.71 MB, free: 4.961 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.193/1.193, allocations: 225.7 MB / 243.2 MB, free: 8.496 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.0008178/0.0008178, allocations: 92.34 kB / 294.4 MB, free: 9.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002289/0.000229, allocations: 11.94 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1871/0.1874, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001342/0.1887, allocations: 1.368 MB / 405.9 MB, free: 29.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005672/0.1893, allocations: 464.3 kB / 406.4 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.17e-05/0.1894, allocations: 1.406 kB / 406.4 MB, free: 29.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.1895, allocations: 15.86 kB / 406.4 MB, free: 29.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001555/0.1897, allocations: 19.86 kB / 406.4 MB, free: 29.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000133/0.1898, allocations: 46.36 kB / 406.5 MB, free: 29.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001152/0.19, allocations: 91.7 kB / 406.6 MB, free: 29.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.111e-05/0.1901, allocations: 32.95 kB / 406.6 MB, free: 29.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.938e-05/0.1901, allocations: 37.06 kB / 406.6 MB, free: 29.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.921e-05/0.1902, allocations: 39.78 kB / 406.7 MB, free: 29.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.1902, allocations: 4.469 kB / 406.7 MB, free: 29.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.254e-05/0.1903, allocations: 4 kB / 406.7 MB, free: 29.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.762e-05/0.1903, allocations: 13.05 kB / 406.7 MB, free: 29.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.661e-05/0.1904, allocations: 65.42 kB / 406.7 MB, free: 29.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.995e-05/0.1904, allocations: 69.27 kB / 406.8 MB, free: 29.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.1905, allocations: 7.328 kB / 406.8 MB, free: 29.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1905, allocations: 0 / 406.8 MB, free: 29.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.507e-06/0.1905, allocations: 0 / 406.8 MB, free: 29.07 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003742/0.1909, allocations: 391.1 kB / 407.2 MB, free: 28.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.884e-05/0.1909, allocations: 12.03 kB / 407.2 MB, free: 28.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.721e-05/0.1909, allocations: 15.97 kB / 407.2 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.1911, allocations: 201.8 kB / 407.4 MB, free: 28.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.957e-06/0.1911, allocations: 11.94 kB / 407.4 MB, free: 28.37 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.562e-05/0.1911, allocations: 11.91 kB / 407.4 MB, free: 28.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001416/0.1913, allocations: 77.66 kB / 407.5 MB, free: 28.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.1913, allocations: 0 / 407.5 MB, free: 28.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.1913, allocations: 5.969 kB / 407.5 MB, free: 28.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.1913, allocations: 7.938 kB / 407.5 MB, free: 28.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.884e-05/0.1914, allocations: 39.97 kB / 407.6 MB, free: 28.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004149/0.1918, allocations: 416 kB / 408 MB, free: 27.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001139/0.192, allocations: 58.58 kB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.824e-05/0.192, allocations: 36.89 kB / 408.1 MB, free: 27.65 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.283e-05/0.192, allocations: 0 / 408.1 MB, free: 27.65 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.447e-05/0.1921, allocations: 38.5 kB / 408.1 MB, free: 27.6 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 7.91e-07/0.1921, allocations: 0 / 408.1 MB, free: 27.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002268/0.1923, allocations: 97.52 kB / 408.2 MB, free: 27.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.146e-05/0.1923, allocations: 63.41 kB / 408.3 MB, free: 27.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.081e-05/0.1924, allocations: 140.8 kB / 408.4 MB, free: 27.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.204e-06/0.1924, allocations: 25.7 kB / 408.4 MB, free: 27.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.166e-05/0.1925, allocations: 108 kB / 408.5 MB, free: 27.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.799e-05/0.1925, allocations: 23.78 kB / 408.6 MB, free: 27.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.948e-06/0.1925, allocations: 3.938 kB / 408.6 MB, free: 27.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.732e-05/0.1925, allocations: 322.8 kB / 408.9 MB, free: 26.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.292e-05/0.1926, allocations: 27.98 kB / 408.9 MB, free: 26.76 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.228e-05/0.1926, allocations: 16 kB / 408.9 MB, free: 26.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.364e-05/0.1927, allocations: 56.78 kB / 409 MB, free: 26.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.1928, allocations: 0 / 409 MB, free: 26.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001306/0.1929, allocations: 93.45 kB / 409.1 MB, free: 26.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.1929, allocations: 12 kB / 409.1 MB, free: 26.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.1929, allocations: 0 / 409.1 MB, free: 26.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.1929, allocations: 3.984 kB / 409.1 MB, free: 26.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001975/0.1931, allocations: 39.97 kB / 409.1 MB, free: 26.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.1932, allocations: 4 kB / 409.1 MB, free: 26.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.959e-05/0.1932, allocations: 3.984 kB / 409.1 MB, free: 26.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.205e-06/0.1932, allocations: 4 kB / 409.1 MB, free: 26.52 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 4.92e-05/0.1933, allocations: 121.7 kB / 409.3 MB, free: 26.39 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.438e-05/0.1933, allocations: 11.91 kB / 409.3 MB, free: 26.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.376e-05/0.1933, allocations: 8.312 kB / 409.3 MB, free: 26.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.1934, allocations: 4 kB / 409.3 MB, free: 26.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1934, allocations: 0 / 409.3 MB, free: 26.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.1934, allocations: 7.922 kB / 409.3 MB, free: 26.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001455/0.1935, allocations: 201.5 kB / 409.5 MB, free: 26.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1935, allocations: 0 / 409.5 MB, free: 26.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001298/0.1937, allocations: 23.98 kB / 409.5 MB, free: 26.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.1937, allocations: 0 / 409.5 MB, free: 26.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.628e-06/0.1937, allocations: 8 kB / 409.5 MB, free: 26.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1937, allocations: 0 / 409.5 MB, free: 26.08 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1937, allocations: 0 / 409.5 MB, free: 26.08 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.1939, allocations: 211.3 kB / 409.7 MB, free: 25.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.308e-05/0.1939, allocations: 85.36 kB / 409.8 MB, free: 25.76 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.194, allocations: 0 / 409.8 MB, free: 25.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.833e-05/0.194, allocations: 16.05 kB / 409.8 MB, free: 25.74 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.798e-05/0.1941, allocations: 0 / 409.8 MB, free: 25.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.68e-06/0.1941, allocations: 4 kB / 409.8 MB, free: 25.74 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.506e-05/0.1941, allocations: 115.2 kB / 409.9 MB, free: 25.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1941, allocations: 0 / 409.9 MB, free: 25.62 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001906/0.1943, allocations: 12 kB / 410 MB, free: 25.61 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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.393e-05/0.1944, allocations: 104 kB / 410.1 MB, free: 25.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001386/0.1946, allocations: 55.95 kB / 410.1 MB, free: 25.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.1946, allocations: 4 kB / 410.1 MB, free: 25.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.178e-05/0.1946, allocations: 31.92 kB / 410.1 MB, free: 25.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.1949, allocations: 19.92 kB / 410.2 MB, free: 25.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004505/0.1954, allocations: 303.3 kB / 410.5 MB, free: 25.07 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.1955, allocations: 0.7043 MB / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.849e-05/0.1955, allocations: 4 kB / 411.2 MB, free: 24.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.942e-05/0.1956, allocations: 11.44 kB / 411.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of SimCode: time 2.7e-07/0.1956, allocations: 3.938 kB / 411.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of Templates: time 0.002431/0.198, allocations: 0.8129 MB / 412 MB, free: 23.52 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches