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.001501/0.001501, allocations: 203.8 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 226.5 MB / 245.4 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008069/0.0008069, allocations: 88.91 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002039/0.0002039, allocations: 4 kB / 357.4 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1884/0.1886, allocations: 51.29 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08348/0.2721, allocations: 77.73 MB / 486.4 MB, free: 13.85 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001881/0.2723, allocations: 63.97 kB / 486.4 MB, free: 13.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00649/0.2788, allocations: 2.37 MB / 488.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.2789, allocations: 0 / 488.8 MB, free: 11.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.2789, allocations: 0 / 488.8 MB, free: 11.42 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.0004797/0.2794, allocations: 415.2 kB / 489.2 MB, free: 10.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.2794, allocations: 12.03 kB / 489.2 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.2795, allocations: 24.81 kB / 489.3 MB, free: 10.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.2798, allocations: 215.8 kB / 489.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/0.2798, allocations: 4.312 kB / 489.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.695e-05/0.2798, allocations: 20.28 kB / 489.5 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001684/0.28, allocations: 81.72 kB / 489.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.28, allocations: 0 / 489.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.28, allocations: 4 kB / 489.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.2801, allocations: 4 kB / 489.6 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001075/0.2802, allocations: 35.98 kB / 489.6 MB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005425/0.2807, allocations: 423.9 kB / 490 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000136/0.2809, allocations: 54.59 kB / 490.1 MB, free: 9.992 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.796e-05/0.2809, allocations: 36.89 kB / 490.1 MB, free: 9.953 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.281, allocations: 0 / 490.1 MB, free: 9.953 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.281, allocations: 30.56 kB / 490.1 MB, free: 9.914 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 8.92e-07/0.281, allocations: 3.938 kB / 490.1 MB, free: 9.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.000272/0.2813, allocations: 109.8 kB / 490.3 MB, free: 9.797 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.143e-05/0.2813, allocations: 63.34 kB / 490.3 MB, free: 9.723 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.628e-05/0.2814, allocations: 133.8 kB / 490.4 MB, free: 9.582 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.2814, allocations: 25.7 kB / 490.5 MB, free: 9.551 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.172e-05/0.2815, allocations: 104 kB / 490.6 MB, free: 9.445 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.378e-05/0.2815, allocations: 27.78 kB / 490.6 MB, free: 9.418 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/0.2815, allocations: 0 / 490.6 MB, free: 9.418 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.2817, allocations: 318.8 kB / 490.9 MB, free: 9.098 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.787e-05/0.2817, allocations: 23.98 kB / 490.9 MB, free: 9.074 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.852e-05/0.2818, allocations: 19.98 kB / 491 MB, free: 9.055 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001173/0.2819, allocations: 60.92 kB / 491 MB, free: 8.992 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2819, allocations: 0 / 491 MB, free: 8.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001585/0.2821, allocations: 93.52 kB / 491.1 MB, free: 8.895 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.2821, allocations: 11.94 kB / 491.1 MB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.2821, allocations: 0 / 491.1 MB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.999e-06/0.2821, allocations: 4 kB / 491.1 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.2823, allocations: 35.97 kB / 491.2 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.2824, allocations: 0 / 491.2 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.933e-05/0.2824, allocations: 4 kB / 491.2 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.313e-06/0.2824, allocations: 0 / 491.2 MB, free: 8.84 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 8.801e-05/0.2825, allocations: 117.8 kB / 491.3 MB, free: 8.715 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.866e-05/0.2826, allocations: 19.84 kB / 491.3 MB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.084e-05/0.2826, allocations: 16.3 kB / 491.3 MB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.2826, allocations: 0 / 491.3 MB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.2826, allocations: 0 / 491.3 MB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.2826, allocations: 4 kB / 491.3 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001806/0.2828, allocations: 193.6 kB / 491.5 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.2828, allocations: 4 kB / 491.5 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001346/0.2829, allocations: 23.92 kB / 491.5 MB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.283, allocations: 7.922 kB / 491.5 MB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.283, allocations: 7.984 kB / 491.5 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.283, allocations: 0 / 491.5 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.283, allocations: 4 kB / 491.6 MB, free: 8.391 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00027/0.2833, allocations: 207.3 kB / 491.8 MB, free: 8.172 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.928e-05/0.2833, allocations: 88.94 kB / 491.8 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.2834, allocations: 8.031 kB / 491.8 MB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.474e-05/0.2834, allocations: 4 kB / 491.9 MB, free: 8.055 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.798e-05/0.2835, allocations: 7.984 kB / 491.9 MB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.2835, allocations: 0 / 491.9 MB, free: 8.047 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.608e-05/0.2836, allocations: 110.1 kB / 492 MB, free: 7.941 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2836, allocations: 0 / 492 MB, free: 7.941 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002093/0.2838, allocations: 16 kB / 492 MB, free: 7.926 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 0.0001115/0.2839, allocations: 95.23 kB / 492.1 MB, free: 7.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000151/0.2841, allocations: 51.98 kB / 492.1 MB, free: 7.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2841, allocations: 0 / 492.1 MB, free: 7.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.418e-05/0.2841, allocations: 32.05 kB / 492.2 MB, free: 7.738 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002806/0.2844, allocations: 34.39 kB / 492.2 MB, free: 7.707 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005554/0.285, allocations: 311.3 kB / 492.5 MB, free: 7.371 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.2853, allocations: 0.7121 MB / 493.2 MB, free: 6.633 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.09e-05/0.2853, allocations: 11.44 kB / 493.2 MB, free: 6.621 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.2853, allocations: 0 / 493.2 MB, free: 6.621 MB / 362.7 MB Notification: Performance of Templates: time 0.002283/0.2876, allocations: 1.178 MB / 494.4 MB, free: 5.445 MB / 362.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/jenkins1/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