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.001567/0.001568, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000824/0.0008242, allocations: 94.2 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.384e-05/1.396e-05, allocations: 4 kB / 343.7 MB, free: 8.289 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1034, allocations: 51.48 MB / 395.2 MB, free: 4.766 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3314/0.4349, allocations: 77.07 MB / 472.2 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000168/0.4351, allocations: 62.98 kB / 472.3 MB, free: 14.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006121/0.4412, allocations: 2.366 MB / 474.7 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4412, allocations: 0 / 474.7 MB, free: 12.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.4413, allocations: 0 / 474.7 MB, free: 12.89 MB / 346.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.0003317/0.4416, allocations: 383.4 kB / 475 MB, free: 12.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.4416, allocations: 12.03 kB / 475 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.4418, allocations: 27.09 kB / 475.1 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002034/0.442, allocations: 209.3 kB / 475.3 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.133e-05/0.442, allocations: 4.859 kB / 475.3 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.281e-05/0.442, allocations: 4 kB / 475.3 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.426e-05/0.4421, allocations: 31.03 kB / 475.3 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.4422, allocations: 63.34 kB / 475.4 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.4423, allocations: 0 / 475.4 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.4423, allocations: 0 / 475.4 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.4423, allocations: 8 kB / 475.4 MB, free: 12.15 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004598/0.4427, allocations: 384.2 kB / 475.8 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.211e-05/0.4429, allocations: 57.98 kB / 475.8 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.27e-05/0.4429, allocations: 22.67 kB / 475.8 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.4429, allocations: 0 / 475.8 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.629e-05/0.4429, allocations: 37.7 kB / 475.9 MB, free: 11.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.4429, allocations: 3.719 kB / 475.9 MB, free: 11.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001535/0.4431, allocations: 66.48 kB / 475.9 MB, free: 11.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.618e-05/0.4431, allocations: 52.95 kB / 476 MB, free: 11.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.263e-05/0.4432, allocations: 118.2 kB / 476.1 MB, free: 11.45 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.576e-06/0.4432, allocations: 29.7 kB / 476.1 MB, free: 11.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.679e-05/0.4433, allocations: 110.8 kB / 476.2 MB, free: 11.31 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.721e-05/0.4433, allocations: 12.73 kB / 476.3 MB, free: 11.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.228e-06/0.4433, allocations: 0 / 476.3 MB, free: 11.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.518e-05/0.4433, allocations: 327.1 kB / 476.6 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.518e-05/0.4434, allocations: 12.52 kB / 476.6 MB, free: 10.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.144e-05/0.4434, allocations: 18.06 kB / 476.6 MB, free: 10.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.908e-05/0.4434, allocations: 16.17 kB / 476.6 MB, free: 10.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.4434, allocations: 0 / 476.6 MB, free: 10.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.055e-05/0.4435, allocations: 83.56 kB / 476.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.4436, allocations: 4 kB / 476.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-06/0.4436, allocations: 0 / 476.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.4436, allocations: 0 / 476.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002056/0.4438, allocations: 40.39 kB / 476.7 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.4438, allocations: 2.109 kB / 476.7 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.774e-05/0.4439, allocations: 1.266 kB / 476.7 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.4439, allocations: 4 kB / 476.8 MB, free: 10.84 MB / 346.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 () * 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 4.723e-05/0.4439, allocations: 119.6 kB / 476.9 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.559e-05/0.444, allocations: 9.125 kB / 476.9 MB, free: 10.72 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.048e-05/0.444, allocations: 12.73 kB / 476.9 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.444, allocations: 0 / 476.9 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.444, allocations: 3.062 kB / 476.9 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.444, allocations: 0 / 476.9 MB, free: 10.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001416/0.4442, allocations: 173.6 kB / 477.1 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.4442, allocations: 0 / 477.1 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.4443, allocations: 26.38 kB / 477.1 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.4443, allocations: 4 kB / 477.1 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.4444, allocations: 0 / 477.1 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.4444, allocations: 0 / 477.1 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.4444, allocations: 0 / 477.1 MB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000149/0.4445, allocations: 182.8 kB / 477.3 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.812e-05/0.4446, allocations: 90.88 kB / 477.4 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.4446, allocations: 3.938 kB / 477.4 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.814e-05/0.4447, allocations: 1.5 kB / 477.4 MB, free: 10.23 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.339e-05/0.4447, allocations: 13.55 kB / 477.4 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.4447, allocations: 0 / 477.4 MB, free: 10.22 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.708e-05/0.4448, allocations: 110.2 kB / 477.5 MB, free: 10.13 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4448, allocations: 0 / 477.5 MB, free: 10.13 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002131/0.445, allocations: 15.91 kB / 477.5 MB, free: 10.11 MB / 346.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 () * 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 9.982e-05/0.4451, allocations: 100.7 kB / 477.6 MB, free: 10.01 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.142e-05/0.4452, allocations: 33.12 kB / 477.6 MB, free: 9.988 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4452, allocations: 4 kB / 477.6 MB, free: 9.984 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.006e-05/0.4452, allocations: 20.48 kB / 477.7 MB, free: 9.969 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.4455, allocations: 25.12 kB / 477.7 MB, free: 9.957 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004316/0.4459, allocations: 165.6 kB / 477.8 MB, free: 9.812 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001301/0.4461, allocations: 0.7066 MB / 478.5 MB, free: 9.094 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.667e-05/0.4461, allocations: 14.75 kB / 478.6 MB, free: 9.082 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.583e-05/0.4461, allocations: 11.44 kB / 478.6 MB, free: 9.07 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4462, allocations: 0 / 478.6 MB, free: 9.07 MB / 346.7 MB Notification: Performance of Templates: time 0.002481/0.4486, allocations: 0.7303 MB / 479.3 MB, free: 8.672 MB / 346.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/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