Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_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_trunk_cpp_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009357/0.0009357, allocations: 194 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.389/1.389, allocations: 226.6 MB / 244.3 MB, free: 6.578 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007776/0.0007776, allocations: 99.45 kB / 296.4 MB, free: 6.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002095/0.0002096, allocations: 8 kB / 356.2 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1943/0.1946, allocations: 51.3 MB / 407.5 MB, free: 27.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001362/0.196, allocations: 1.368 MB / 408.9 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006277/0.1966, allocations: 0.4972 MB / 409.4 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.626e-05/0.1967, allocations: 3.938 kB / 409.4 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.351e-05/0.1968, allocations: 4.625 kB / 409.4 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001496/0.1969, allocations: 22.64 kB / 409.4 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001295/0.1971, allocations: 43.94 kB / 409.4 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.1972, allocations: 83.7 kB / 409.5 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.428e-05/0.1973, allocations: 21.98 kB / 409.5 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.1974, allocations: 47.72 kB / 409.6 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.483e-05/0.1975, allocations: 29.06 kB / 409.6 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.1975, allocations: 4 kB / 409.6 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.825e-05/0.1975, allocations: 4 kB / 409.6 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.433e-05/0.1976, allocations: 16.8 kB / 409.6 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.617e-05/0.1976, allocations: 41.64 kB / 409.7 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.414e-05/0.1977, allocations: 59.88 kB / 409.7 MB, free: 25.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1977, allocations: 0.75 kB / 409.7 MB, free: 25.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1977, allocations: 0 / 409.7 MB, free: 25.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.1977, allocations: 1.281 kB / 409.7 MB, free: 25.52 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.0004433/0.1982, allocations: 397.1 kB / 410.1 MB, free: 25.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.014e-05/0.1982, allocations: 12.97 kB / 410.1 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.1984, allocations: 24.95 kB / 410.2 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001493/0.1985, allocations: 198.4 kB / 410.4 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.1985, allocations: 4 kB / 410.4 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.433e-05/0.1986, allocations: 15.33 kB / 410.4 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001503/0.1987, allocations: 89.53 kB / 410.5 MB, free: 24.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.1987, allocations: 0 / 410.5 MB, free: 24.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.1988, allocations: 0 / 410.5 MB, free: 24.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.1988, allocations: 4 kB / 410.5 MB, free: 24.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000104/0.1989, allocations: 51 kB / 410.5 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004108/0.1993, allocations: 413.7 kB / 410.9 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001184/0.1994, allocations: 58.62 kB / 411 MB, free: 24.13 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.879e-05/0.1995, allocations: 28.86 kB / 411 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.622e-05/0.1995, allocations: 3.984 kB / 411 MB, free: 24.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.685e-05/0.1995, allocations: 42.56 kB / 411 MB, free: 24.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.763e-06/0.1995, allocations: 0 / 411 MB, free: 24.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002419/0.1998, allocations: 97.52 kB / 411.1 MB, free: 23.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.452e-05/0.1998, allocations: 59.36 kB / 411.2 MB, free: 23.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.734e-05/0.1999, allocations: 138.4 kB / 411.3 MB, free: 23.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.1999, allocations: 33.7 kB / 411.4 MB, free: 23.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.544e-05/0.2, allocations: 108.2 kB / 411.5 MB, free: 23.58 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.2, allocations: 15.8 kB / 411.5 MB, free: 23.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-06/0.2, allocations: 4 kB / 411.5 MB, free: 23.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.385e-05/0.2, allocations: 322.8 kB / 411.8 MB, free: 23.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.297e-05/0.2001, allocations: 19.98 kB / 411.8 MB, free: 23.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.316e-05/0.2002, allocations: 16 kB / 411.8 MB, free: 23.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.628e-05/0.2002, allocations: 35.97 kB / 411.9 MB, free: 23.17 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2002, allocations: 0 / 411.9 MB, free: 23.17 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001369/0.2004, allocations: 89.53 kB / 412 MB, free: 23.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.303e-05/0.2004, allocations: 8.766 kB / 412 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.2004, allocations: 0 / 412 MB, free: 23.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.2004, allocations: 7.938 kB / 412 MB, free: 23.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.2006, allocations: 36.22 kB / 412 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.2006, allocations: 4 kB / 412 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.361e-05/0.2007, allocations: 11.95 kB / 412 MB, free: 23.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.2007, allocations: 4 kB / 412 MB, free: 23 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.489e-05/0.2008, allocations: 113.8 kB / 412.2 MB, free: 22.88 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.634e-05/0.2008, allocations: 11.91 kB / 412.2 MB, free: 22.87 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.639e-05/0.2008, allocations: 12.3 kB / 412.2 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.2008, allocations: 0 / 412.2 MB, free: 22.86 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.2008, allocations: 3.938 kB / 412.2 MB, free: 22.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.2009, allocations: 8 kB / 412.2 MB, free: 22.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001374/0.201, allocations: 197.5 kB / 412.4 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.201, allocations: 4 kB / 412.4 MB, free: 22.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.2011, allocations: 19.98 kB / 412.4 MB, free: 22.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.2012, allocations: 3.938 kB / 412.4 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.2012, allocations: 3.984 kB / 412.4 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2012, allocations: 0 / 412.4 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2012, allocations: 4 kB / 412.4 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002194/0.2014, allocations: 207.4 kB / 412.6 MB, free: 22.35 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.495e-05/0.2014, allocations: 88.94 kB / 412.7 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.2015, allocations: 4.031 kB / 412.7 MB, free: 22.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.186e-05/0.2015, allocations: 4 kB / 412.7 MB, free: 22.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.016e-05/0.2016, allocations: 7.984 kB / 412.7 MB, free: 22.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.2016, allocations: 3.938 kB / 412.7 MB, free: 22.22 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.512e-05/0.2016, allocations: 110.1 kB / 412.8 MB, free: 22.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2017, allocations: 0 / 412.8 MB, free: 22.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001942/0.2019, allocations: 12 kB / 412.8 MB, free: 22.11 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.244e-05/0.2019, allocations: 95.25 kB / 412.9 MB, free: 22 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001635/0.2021, allocations: 51.97 kB / 413 MB, free: 21.95 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2021, allocations: 0 / 413 MB, free: 21.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.358e-05/0.2022, allocations: 31.92 kB / 413 MB, free: 21.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.2025, allocations: 26.17 kB / 413 MB, free: 21.9 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004765/0.203, allocations: 315.3 kB / 413.4 MB, free: 21.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001058/0.2031, allocations: 0.7043 MB / 414.1 MB, free: 20.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.31e-05/0.2031, allocations: 19.42 kB / 414.1 MB, free: 20.8 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2031, allocations: 0 / 414.1 MB, free: 20.8 MB / 298.7 MB Notification: Performance of Templates: time 0.002008/0.2051, allocations: 1.169 MB / 415.2 MB, free: 19.64 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches