Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001826/0.001826, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009347/0.0009347, allocations: 109.5 kB / 296.7 MB, free: 6.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009352/0.0009354, allocations: 52.16 kB / 356.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1883/0.1893, allocations: 50.46 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002209/0.1915, allocations: 1.741 MB / 408.8 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000665/0.1922, allocations: 0.5338 MB / 409.3 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.378e-05/0.1923, allocations: 4 kB / 409.3 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.883e-05/0.1924, allocations: 11.86 kB / 409.3 MB, free: 25.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.1925, allocations: 23.84 kB / 409.4 MB, free: 25.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001353/0.1927, allocations: 35.95 kB / 409.4 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.1928, allocations: 95.64 kB / 409.5 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.161e-05/0.1929, allocations: 41.08 kB / 409.5 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001042/0.193, allocations: 47.84 kB / 409.6 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.282e-05/0.1931, allocations: 35.78 kB / 409.6 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.669e-05/0.1931, allocations: 4 kB / 409.6 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.993e-05/0.1932, allocations: 11.98 kB / 409.6 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.518e-05/0.1932, allocations: 19.86 kB / 409.6 MB, free: 25.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.771e-05/0.1932, allocations: 39.73 kB / 409.7 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001/0.1934, allocations: 85.23 kB / 409.8 MB, free: 25.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1934, allocations: 4 kB / 409.8 MB, free: 25.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.1934, allocations: 0 / 409.8 MB, free: 25.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.1934, allocations: 4 kB / 409.8 MB, free: 25.09 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.0003892/0.1938, allocations: 403.1 kB / 410.2 MB, free: 24.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.843e-05/0.1938, allocations: 8.031 kB / 410.2 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001164/0.1939, allocations: 20.75 kB / 410.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.1941, allocations: 204.2 kB / 410.4 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.809e-06/0.1941, allocations: 8.375 kB / 410.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.873e-05/0.1941, allocations: 16.11 kB / 410.4 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001424/0.1943, allocations: 74.38 kB / 410.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.1943, allocations: 0 / 410.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.1943, allocations: 8 kB / 410.5 MB, free: 24.28 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.1943, allocations: 0 / 410.5 MB, free: 24.28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001015/0.1944, allocations: 44.75 kB / 410.5 MB, free: 24.24 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000398/0.1948, allocations: 415.8 kB / 410.9 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001184/0.195, allocations: 62.52 kB / 411 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.661e-05/0.195, allocations: 28.89 kB / 411 MB, free: 23.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.597e-05/0.1951, allocations: 4 kB / 411 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.363e-05/0.1951, allocations: 34.56 kB / 411.1 MB, free: 23.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.152e-06/0.1951, allocations: 0 / 411.1 MB, free: 23.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002293/0.1953, allocations: 93.52 kB / 411.2 MB, free: 23.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.762e-05/0.1953, allocations: 59.34 kB / 411.2 MB, free: 23.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.67e-05/0.1954, allocations: 141.8 kB / 411.4 MB, free: 23.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.434e-06/0.1954, allocations: 25.7 kB / 411.4 MB, free: 23.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.157e-05/0.1955, allocations: 108 kB / 411.5 MB, free: 23.16 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.1955, allocations: 19.8 kB / 411.5 MB, free: 23.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.249e-05/0.1955, allocations: 29.7 kB / 411.5 MB, free: 23.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.746e-05/0.1956, allocations: 318.8 kB / 411.9 MB, free: 22.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.244e-05/0.1956, allocations: 19.98 kB / 411.9 MB, free: 22.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.376e-05/0.1957, allocations: 23.98 kB / 411.9 MB, free: 22.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.436e-05/0.1958, allocations: 48.84 kB / 411.9 MB, free: 22.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.1958, allocations: 0 / 411.9 MB, free: 22.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001341/0.1959, allocations: 85.52 kB / 412 MB, free: 22.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.196, allocations: 8 kB / 412 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.196, allocations: 3.938 kB / 412 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.201e-05/0.196, allocations: 4 kB / 412 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001963/0.1962, allocations: 35.97 kB / 412.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.208e-06/0.1962, allocations: 0 / 412.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.002e-05/0.1963, allocations: 8.25 kB / 412.1 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.733e-06/0.1963, allocations: 0 / 412.1 MB, free: 22.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.339e-05/0.1963, allocations: 119.3 kB / 412.2 MB, free: 22.42 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.878e-05/0.1964, allocations: 19.83 kB / 412.2 MB, free: 22.4 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.817e-05/0.1964, allocations: 16.31 kB / 412.2 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1964, allocations: 0 / 412.2 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1964, allocations: 0 / 412.2 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.1964, allocations: 3.984 kB / 412.2 MB, free: 22.38 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001343/0.1966, allocations: 197.6 kB / 412.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1966, allocations: 0 / 412.4 MB, free: 22.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.1967, allocations: 27.91 kB / 412.5 MB, free: 22.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1967, allocations: 3.938 kB / 412.5 MB, free: 22.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.1967, allocations: 8 kB / 412.5 MB, free: 22.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1967, allocations: 4 kB / 412.5 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1968, allocations: 3.938 kB / 412.5 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009989/0.1978, allocations: 1.196 MB / 413.7 MB, free: 20.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.189e-05/0.1978, allocations: 89.03 kB / 413.8 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.1978, allocations: 3.938 kB / 413.8 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.794e-05/0.1979, allocations: 4 kB / 413.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.1e-05/0.1979, allocations: 3.984 kB / 413.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.1979, allocations: 4 kB / 413.8 MB, free: 20.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.632e-05/0.198, allocations: 110.1 kB / 413.9 MB, free: 20.53 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.198, allocations: 4.062 kB / 413.9 MB, free: 20.53 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003367/0.1983, allocations: 27.78 kB / 413.9 MB, free: 20.5 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 7.411e-05/0.1984, allocations: 99.23 kB / 414 MB, free: 20.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001503/0.1986, allocations: 43.98 kB / 414.1 MB, free: 20.35 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.145e-06/0.1986, allocations: 0 / 414.1 MB, free: 20.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.664e-05/0.1987, allocations: 31.98 kB / 414.1 MB, free: 20.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003355/0.199, allocations: 18.95 kB / 414.1 MB, free: 20.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005108/0.1995, allocations: 397.4 kB / 414.5 MB, free: 19.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001077/0.1996, allocations: 0.7122 MB / 415.2 MB, free: 19.14 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.163e-05/0.1997, allocations: 7.938 kB / 415.2 MB, free: 19.13 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.106e-05/0.1997, allocations: 15.42 kB / 415.2 MB, free: 19.11 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.1997, allocations: 0 / 415.2 MB, free: 19.11 MB / 298.7 MB Notification: Performance of Templates: time 0.002577/0.2023, allocations: 0.9497 MB / 416.2 MB, free: 18.17 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_trunk_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches