Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.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.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001377/0.001377, allocations: 180.5 kB / 16.41 MB, free: 5.703 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.583/1.583, allocations: 205.4 MB / 222.5 MB, free: 9.035 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.0007402/0.0007404, allocations: 82.36 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002813/0.0002813, allocations: 8 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1874/0.1877, allocations: 47.57 MB / 374.5 MB, free: 45.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001423/0.1892, allocations: 1.363 MB / 375.9 MB, free: 44.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006952/0.1899, allocations: 0.4972 MB / 376.4 MB, free: 43.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.489e-05/0.19, allocations: 2.625 kB / 376.4 MB, free: 43.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.422e-05/0.19, allocations: 7.922 kB / 376.4 MB, free: 43.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001876/0.1902, allocations: 19.12 kB / 376.4 MB, free: 43.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001562/0.1904, allocations: 37.83 kB / 376.5 MB, free: 43.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001614/0.1906, allocations: 85.02 kB / 376.6 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.1907, allocations: 33.5 kB / 376.6 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.157e-05/0.1908, allocations: 29.42 kB / 376.6 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.539e-05/0.1909, allocations: 37.33 kB / 376.6 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.91e-05/0.1909, allocations: 3.344 kB / 376.7 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.502e-05/0.1909, allocations: 2.125 kB / 376.7 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.025e-05/0.191, allocations: 16.67 kB / 376.7 MB, free: 43.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.617e-05/0.191, allocations: 34.23 kB / 376.7 MB, free: 43.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.413e-05/0.1911, allocations: 64.73 kB / 376.8 MB, free: 43.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1911, allocations: 0 / 376.8 MB, free: 43.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1911, allocations: 4 kB / 376.8 MB, free: 43.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.86e-06/0.1911, allocations: 0 / 376.8 MB, free: 43.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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004962/0.1916, allocations: 394.1 kB / 377.2 MB, free: 43.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.1917, allocations: 8.688 kB / 377.2 MB, free: 43.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.192e-05/0.1917, allocations: 13.59 kB / 377.2 MB, free: 43.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001633/0.1919, allocations: 205.1 kB / 377.4 MB, free: 43.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.1919, allocations: 22.23 kB / 377.4 MB, free: 43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.013e-05/0.192, allocations: 4.906 kB / 377.4 MB, free: 43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.1921, allocations: 75.3 kB / 377.5 MB, free: 42.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.1922, allocations: 1.25 kB / 377.5 MB, free: 42.95 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.1922, allocations: 0 / 377.5 MB, free: 42.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1922, allocations: 2.188 kB / 377.5 MB, free: 42.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001196/0.1923, allocations: 50.62 kB / 377.5 MB, free: 42.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004586/0.1928, allocations: 410.1 kB / 377.9 MB, free: 42.51 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000134/0.1929, allocations: 64.42 kB / 378 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.879e-05/0.193, allocations: 36.23 kB / 378 MB, free: 42.44 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.824e-05/0.193, allocations: 4.938 kB / 378 MB, free: 42.44 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.216e-05/0.193, allocations: 31.72 kB / 378.1 MB, free: 42.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.233e-06/0.193, allocations: 0 / 378.1 MB, free: 42.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002861/0.1933, allocations: 108.4 kB / 378.2 MB, free: 42.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.344e-05/0.1934, allocations: 52.72 kB / 378.2 MB, free: 42.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.963e-05/0.1935, allocations: 148.1 kB / 378.4 MB, free: 42.14 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.074e-05/0.1935, allocations: 29.7 kB / 378.4 MB, free: 42.11 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.195e-05/0.1935, allocations: 105.9 kB / 378.5 MB, free: 42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.158e-05/0.1936, allocations: 22.34 kB / 378.5 MB, free: 41.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.538e-06/0.1936, allocations: 0 / 378.5 MB, free: 41.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.331e-05/0.1936, allocations: 321.4 kB / 378.8 MB, free: 41.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.497e-05/0.1937, allocations: 25.08 kB / 378.9 MB, free: 41.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.533e-05/0.1938, allocations: 28.55 kB / 378.9 MB, free: 41.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.187e-05/0.1938, allocations: 17 kB / 378.9 MB, free: 41.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1938, allocations: 0 / 378.9 MB, free: 41.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001574/0.194, allocations: 95 kB / 379 MB, free: 41.57 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.194, allocations: 6.469 kB / 379 MB, free: 41.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.194, allocations: 4 kB / 379 MB, free: 41.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.1941, allocations: 1.156 kB / 379 MB, free: 41.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/0.1943, allocations: 41.11 kB / 379 MB, free: 41.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.1943, allocations: 1.031 kB / 379.1 MB, free: 41.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.67e-05/0.1944, allocations: 7.344 kB / 379.1 MB, free: 41.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.1944, allocations: 1.125 kB / 379.1 MB, free: 41.55 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.823e-05/0.1945, allocations: 122.1 kB / 379.2 MB, free: 41.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.739e-05/0.1945, allocations: 12.94 kB / 379.2 MB, free: 41.42 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.695e-05/0.1945, allocations: 10.81 kB / 379.2 MB, free: 41.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.1945, allocations: 3.938 kB / 379.2 MB, free: 41.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1945, allocations: 4.922 kB / 379.2 MB, free: 41.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-06/0.1945, allocations: 0 / 379.2 MB, free: 41.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.1947, allocations: 205.6 kB / 379.4 MB, free: 41.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1947, allocations: 0 / 379.4 MB, free: 41.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000148/0.1949, allocations: 29.41 kB / 379.4 MB, free: 41.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.1949, allocations: 1.188 kB / 379.4 MB, free: 41.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.1949, allocations: 0 / 379.4 MB, free: 41.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1949, allocations: 4.969 kB / 379.4 MB, free: 41.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1949, allocations: 0 / 379.4 MB, free: 41.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002572/0.1952, allocations: 213.3 kB / 379.7 MB, free: 40.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.71e-05/0.1952, allocations: 83.36 kB / 379.7 MB, free: 40.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.969e-05/0.1952, allocations: 9.219 kB / 379.7 MB, free: 40.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.673e-05/0.1953, allocations: 6.156 kB / 379.8 MB, free: 40.87 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.514e-05/0.1954, allocations: 6.047 kB / 379.8 MB, free: 40.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.801e-06/0.1954, allocations: 2.062 kB / 379.8 MB, free: 40.86 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.949e-05/0.1954, allocations: 108.5 kB / 379.9 MB, free: 40.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1955, allocations: 0 / 379.9 MB, free: 40.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002244/0.1957, allocations: 20.2 kB / 379.9 MB, free: 40.77 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 (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 7.376e-05/0.1958, allocations: 91.66 kB / 380 MB, free: 40.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001601/0.1959, allocations: 51.83 kB / 380 MB, free: 40.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1959, allocations: 0 / 380 MB, free: 40.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.261e-05/0.196, allocations: 28.23 kB / 380.1 MB, free: 40.65 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.1963, allocations: 17.08 kB / 380.1 MB, free: 40.64 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005295/0.1969, allocations: 330.4 kB / 380.4 MB, free: 40.37 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001071/0.197, allocations: 0.7125 MB / 381.1 MB, free: 39.65 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.245e-05/0.197, allocations: 11.94 kB / 381.1 MB, free: 39.65 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.197, allocations: 0 / 381.1 MB, free: 39.65 MB / 298.7 MB Notification: Performance of Templates: time 0.002268/0.1993, allocations: 1.167 MB / 382.3 MB, free: 39.05 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches