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.0009654/0.0009655, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.143/1.143, allocations: 227.2 MB / 245 MB, free: 7.57 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008426/0.0008426, allocations: 107 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000202/0.000202, allocations: 4 kB / 357.9 MB, free: 9.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1816, allocations: 51.48 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08074/0.2624, allocations: 77.8 MB / 487.2 MB, free: 12.81 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001847/0.2626, allocations: 71.97 kB / 487.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006552/0.2691, allocations: 2.374 MB / 489.6 MB, free: 10.37 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2692, allocations: 0 / 489.6 MB, free: 10.37 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.287e-06/0.2692, allocations: 8 kB / 489.7 MB, free: 10.36 MB / 362.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.0004197/0.2696, allocations: 403 kB / 490.1 MB, free: 9.918 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.2697, allocations: 12.03 kB / 490.1 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.2698, allocations: 27.8 kB / 490.1 MB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.27, allocations: 206.6 kB / 490.3 MB, free: 9.637 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.27, allocations: 7.938 kB / 490.3 MB, free: 9.629 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.6e-05/0.2701, allocations: 11.95 kB / 490.3 MB, free: 9.617 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000157/0.2702, allocations: 84.55 kB / 490.4 MB, free: 9.531 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.2702, allocations: 0 / 490.4 MB, free: 9.531 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.468e-06/0.2703, allocations: 0 / 490.4 MB, free: 9.531 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.2703, allocations: 4 kB / 490.4 MB, free: 9.527 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000111/0.2704, allocations: 43.98 kB / 490.4 MB, free: 9.484 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004943/0.2709, allocations: 415.9 kB / 490.8 MB, free: 9.016 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000126/0.271, allocations: 66.59 kB / 490.9 MB, free: 8.941 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.271, allocations: 0 / 490.9 MB, free: 8.941 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.2711, allocations: 34.56 kB / 490.9 MB, free: 8.898 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 8.72e-07/0.2711, allocations: 0 / 490.9 MB, free: 8.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.000259/0.2713, allocations: 101.9 kB / 491 MB, free: 8.793 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.574e-05/0.2714, allocations: 59.41 kB / 491.1 MB, free: 8.723 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.67e-05/0.2715, allocations: 125.5 kB / 491.2 MB, free: 8.594 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.2715, allocations: 29.7 kB / 491.3 MB, free: 8.559 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.717e-05/0.2716, allocations: 108.1 kB / 491.4 MB, free: 8.449 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.819e-05/0.2716, allocations: 11.89 kB / 491.4 MB, free: 8.438 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.061e-06/0.2716, allocations: 8 kB / 491.4 MB, free: 8.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.184e-05/0.2717, allocations: 322.8 kB / 491.7 MB, free: 8.105 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.828e-05/0.2717, allocations: 19.98 kB / 491.7 MB, free: 8.086 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.672e-05/0.2718, allocations: 23.98 kB / 491.7 MB, free: 8.062 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.849e-05/0.2719, allocations: 24 kB / 491.8 MB, free: 8.039 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2719, allocations: 0 / 491.8 MB, free: 8.039 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001565/0.272, allocations: 97.45 kB / 491.9 MB, free: 7.938 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.2721, allocations: 4 kB / 491.9 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.2721, allocations: 64 / 491.9 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.2721, allocations: 12 kB / 491.9 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.2723, allocations: 39.95 kB / 491.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.398e-06/0.2723, allocations: 0 / 491.9 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.083e-05/0.2724, allocations: 4 kB / 491.9 MB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.2724, allocations: 0 / 491.9 MB, free: 7.879 MB / 362.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 7.158e-05/0.2725, allocations: 129.8 kB / 492 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.861e-05/0.2725, allocations: 11.81 kB / 492.1 MB, free: 7.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.917e-05/0.2725, allocations: 12.31 kB / 492.1 MB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2725, allocations: 0 / 492.1 MB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.2725, allocations: 0 / 492.1 MB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.2725, allocations: 4 kB / 492.1 MB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001656/0.2727, allocations: 201.6 kB / 492.3 MB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2727, allocations: 0 / 492.3 MB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.2729, allocations: 27.91 kB / 492.3 MB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.2729, allocations: 0 / 492.3 MB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.2729, allocations: 0 / 492.3 MB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.2729, allocations: 0 / 492.3 MB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.2729, allocations: 4 kB / 492.3 MB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002482/0.2732, allocations: 211.4 kB / 492.5 MB, free: 7.211 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.862e-05/0.2732, allocations: 84.95 kB / 492.6 MB, free: 7.109 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.823e-05/0.2732, allocations: 4.031 kB / 492.6 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.844e-05/0.2733, allocations: 0 / 492.6 MB, free: 7.105 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.984e-05/0.2734, allocations: 15.98 kB / 492.6 MB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.2734, allocations: 4 kB / 492.6 MB, free: 7.086 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.105e-05/0.2734, allocations: 106.8 kB / 492.7 MB, free: 6.984 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2734, allocations: 0 / 492.7 MB, free: 6.984 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002136/0.2737, allocations: 19.98 kB / 492.7 MB, free: 6.965 MB / 362.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 9.148e-05/0.2738, allocations: 95.19 kB / 492.8 MB, free: 6.863 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001477/0.2739, allocations: 51.98 kB / 492.9 MB, free: 6.812 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.2739, allocations: 0 / 492.9 MB, free: 6.812 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.43e-05/0.274, allocations: 31.92 kB / 492.9 MB, free: 6.781 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002024/0.2742, allocations: 29.03 kB / 492.9 MB, free: 6.758 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005151/0.2747, allocations: 301.6 kB / 493.2 MB, free: 6.434 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001963/0.2749, allocations: 0.7043 MB / 493.9 MB, free: 5.703 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.181e-05/0.275, allocations: 8 kB / 493.9 MB, free: 5.695 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.936e-05/0.275, allocations: 11.44 kB / 494 MB, free: 5.684 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.275, allocations: 0 / 494 MB, free: 5.684 MB / 362.7 MB Notification: Performance of Templates: time 0.002431/0.2775, allocations: 0.791 MB / 494.7 MB, free: 4.898 MB / 362.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