Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 178.9 kB / 8.135 MB, free: 0.8789 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.175/1.175, allocations: 221.4 MB / 229.9 MB, free: 13.51 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008639/0.0008638, allocations: 108.7 kB / 280.8 MB, free: 10.57 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 1.056e-05/1.058e-05, allocations: 7.938 kB / 336.5 MB, free: 2.871 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08015/0.08018, allocations: 50.41 MB / 386.9 MB, free: 416 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2021/0.2823, allocations: 76.17 MB / 463.1 MB, free: 5.574 MB / 338.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.2826, allocations: 68.67 kB / 463.2 MB, free: 5.512 MB / 338.8 MB Notification: Performance of FrontEnd: time 0.006313/0.2889, allocations: 1.951 MB / 465.1 MB, free: 3.613 MB / 338.8 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.289, allocations: 0.75 kB / 465.1 MB, free: 3.613 MB / 338.8 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.0004026/0.2894, allocations: 384.4 kB / 465.5 MB, free: 3.199 MB / 338.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.2894, allocations: 8.031 kB / 465.5 MB, free: 3.191 MB / 338.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.097e-05/0.2895, allocations: 12.66 kB / 465.5 MB, free: 3.18 MB / 338.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002801/0.2897, allocations: 204.9 kB / 465.7 MB, free: 2.938 MB / 338.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.2898, allocations: 9.875 kB / 465.7 MB, free: 2.93 MB / 338.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.663e-05/0.2898, allocations: 4 kB / 465.7 MB, free: 2.926 MB / 338.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.427e-05/0.2899, allocations: 27.59 kB / 465.7 MB, free: 2.902 MB / 338.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001195/0.29, allocations: 69.61 kB / 465.8 MB, free: 2.828 MB / 338.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.29, allocations: 1.75 kB / 465.8 MB, free: 2.828 MB / 338.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.2901, allocations: 0 / 465.8 MB, free: 2.828 MB / 338.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.2901, allocations: 4 kB / 465.8 MB, free: 2.824 MB / 338.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005095/0.2906, allocations: 381.8 kB / 466.2 MB, free: 2.406 MB / 338.8 MB Notification: Performance of preOpt comSubExp (simulation): time 9.625e-05/0.2907, allocations: 54.47 kB / 466.2 MB, free: 2.344 MB / 338.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.508e-05/0.2908, allocations: 28.86 kB / 466.3 MB, free: 2.316 MB / 338.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.2908, allocations: 3.938 kB / 466.3 MB, free: 2.312 MB / 338.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.651e-05/0.2908, allocations: 31.38 kB / 466.3 MB, free: 2.273 MB / 338.8 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.2908, allocations: 0.8125 kB / 466.3 MB, free: 2.273 MB / 338.8 MB Notification: Performance of matching and sorting (n=5): time 0.0001732/0.291, allocations: 65.64 kB / 466.4 MB, free: 2.203 MB / 338.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.333e-05/0.291, allocations: 51.91 kB / 466.4 MB, free: 2.141 MB / 338.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.908e-05/0.2911, allocations: 124.5 kB / 466.5 MB, free: 2.016 MB / 338.8 MB Notification: Performance of collectPreVariables (initialization): time 1.217e-05/0.2911, allocations: 29.7 kB / 466.6 MB, free: 1.98 MB / 338.8 MB Notification: Performance of collectInitialEqns (initialization): time 4.081e-05/0.2912, allocations: 100.3 kB / 466.7 MB, free: 1.879 MB / 338.8 MB Notification: Performance of collectInitialBindings (initialization): time 2.499e-05/0.2912, allocations: 20.55 kB / 466.7 MB, free: 1.859 MB / 338.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.411e-06/0.2912, allocations: 0 / 466.7 MB, free: 1.859 MB / 338.8 MB Notification: Performance of setup shared object (initialization): time 9.213e-05/0.2913, allocations: 329.1 kB / 467 MB, free: 1.535 MB / 338.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.931e-05/0.2914, allocations: 12 kB / 467 MB, free: 1.523 MB / 338.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.668e-05/0.2914, allocations: 16 kB / 467 MB, free: 1.508 MB / 338.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.38e-05/0.2914, allocations: 13.16 kB / 467.1 MB, free: 1.496 MB / 338.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2914, allocations: 0 / 467.1 MB, free: 1.496 MB / 338.8 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001114/0.2916, allocations: 77.53 kB / 467.1 MB, free: 1.414 MB / 338.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.2916, allocations: 7 kB / 467.1 MB, free: 1.41 MB / 338.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.2916, allocations: 0 / 467.1 MB, free: 1.41 MB / 338.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.2916, allocations: 0.9062 kB / 467.1 MB, free: 1.41 MB / 338.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002427/0.2919, allocations: 45.59 kB / 467.2 MB, free: 1.367 MB / 338.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.316e-06/0.2919, allocations: 0.5938 kB / 467.2 MB, free: 1.367 MB / 338.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.689e-05/0.2919, allocations: 8.781 kB / 467.2 MB, free: 1.359 MB / 338.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.2919, allocations: 3.984 kB / 467.2 MB, free: 1.355 MB / 338.8 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 5.225e-05/0.292, allocations: 102.9 kB / 467.3 MB, free: 1.25 MB / 338.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.371e-05/0.292, allocations: 12.44 kB / 467.3 MB, free: 1.238 MB / 338.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.507e-05/0.2921, allocations: 12.19 kB / 467.3 MB, free: 1.227 MB / 338.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2921, allocations: 1.188 kB / 467.3 MB, free: 1.227 MB / 338.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.2921, allocations: 0 / 467.3 MB, free: 1.227 MB / 338.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.2921, allocations: 0 / 467.3 MB, free: 1.227 MB / 338.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001552/0.2923, allocations: 172 kB / 467.5 MB, free: 1.023 MB / 338.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.2923, allocations: 4 kB / 467.5 MB, free: 1.02 MB / 338.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001574/0.2924, allocations: 31.92 kB / 467.5 MB, free: 0.9883 MB / 338.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.2925, allocations: 0.75 kB / 467.5 MB, free: 0.9883 MB / 338.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.2925, allocations: 3.906 kB / 467.5 MB, free: 0.9844 MB / 338.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2925, allocations: 0 / 467.5 MB, free: 0.9844 MB / 338.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.2925, allocations: 7.984 kB / 467.5 MB, free: 0.9766 MB / 338.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001828/0.2927, allocations: 177 kB / 467.7 MB, free: 0.7891 MB / 338.8 MB Notification: Performance of postOpt removeConstants (simulation): time 3.887e-05/0.2927, allocations: 88.92 kB / 467.8 MB, free: 0.6836 MB / 338.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.2927, allocations: 4.062 kB / 467.8 MB, free: 0.6797 MB / 338.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.345e-05/0.2929, allocations: 4 kB / 467.8 MB, free: 0.6758 MB / 338.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.986e-05/0.2929, allocations: 4.641 kB / 467.8 MB, free: 0.6719 MB / 338.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-06/0.2929, allocations: 0 / 467.8 MB, free: 0.6719 MB / 338.8 MB Notification: Performance of sort global known variables: time 5.808e-05/0.293, allocations: 104.7 kB / 467.9 MB, free: 0.5703 MB / 338.8 MB Notification: Performance of remove unused functions: time 0.0002268/0.2932, allocations: 15.94 kB / 467.9 MB, free: 0.5547 MB / 338.8 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 0.0001218/0.2933, allocations: 103.1 kB / 468 MB, free: 452 kB / 338.8 MB Notification: Performance of simCode: created initialization part: time 0.0001055/0.2934, allocations: 50.09 kB / 468.1 MB, free: 404 kB / 338.8 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.2935, allocations: 0 / 468.1 MB, free: 404 kB / 338.8 MB Notification: Performance of simCode: created simulation system equations: time 3.246e-05/0.2935, allocations: 19.62 kB / 468.1 MB, free: 388 kB / 338.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002233/0.2937, allocations: 22.12 kB / 468.1 MB, free: 368 kB / 338.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004838/0.2942, allocations: 158.8 kB / 468.3 MB, free: 188 kB / 338.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002567/0.2945, allocations: 0.727 MB / 469 MB, free: 15.43 MB / 354.8 MB Notification: Performance of SimCode: time 2.41e-07/0.2945, allocations: 0 / 469 MB, free: 15.43 MB / 354.8 MB Notification: Performance of Templates: time 0.002568/0.2971, allocations: 0.7881 MB / 469.8 MB, free: 14.67 MB / 354.8 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches