Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0009641/0.0009641, allocations: 176.1 kB / 8.478 MB, free: 1.891 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.147/1.147, allocations: 205.2 MB / 214.1 MB, free: 5.082 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008628/0.0008628, allocations: 75.34 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.903e-06/6.943e-06, allocations: 4 kB / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07927/0.07929, allocations: 47.58 MB / 362.5 MB, free: 9.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2404/0.3197, allocations: 75.37 MB / 437.9 MB, free: 10.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001775/0.3199, allocations: 66.27 kB / 438 MB, free: 10.94 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.005638/0.3256, allocations: 1.891 MB / 439.9 MB, free: 10.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.3256, allocations: 3.875 kB / 439.9 MB, free: 10.81 MB / 314.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.0003409/0.326, allocations: 386.6 kB / 440.2 MB, free: 10.44 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.326, allocations: 11.44 kB / 440.2 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.736e-05/0.326, allocations: 11.62 kB / 440.3 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002015/0.3262, allocations: 209 kB / 440.5 MB, free: 10.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.3263, allocations: 14.14 kB / 440.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.351e-05/0.3263, allocations: 7.094 kB / 440.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.538e-05/0.3264, allocations: 25.28 kB / 440.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.622e-05/0.3265, allocations: 65.5 kB / 440.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.3265, allocations: 0 / 440.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.3265, allocations: 3.984 kB / 440.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.299e-06/0.3265, allocations: 1.312 kB / 440.6 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004179/0.327, allocations: 388.6 kB / 441 MB, free: 9.859 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.471e-05/0.3271, allocations: 52 kB / 441 MB, free: 9.836 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.465e-05/0.3271, allocations: 19.48 kB / 441 MB, free: 9.828 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.3271, allocations: 7.969 kB / 441 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.469e-05/0.3271, allocations: 39.27 kB / 441.1 MB, free: 9.781 MB / 314.7 MB Notification: Performance of pre-optimization done (n=5): time 1.132e-06/0.3271, allocations: 0 / 441.1 MB, free: 9.781 MB / 314.7 MB Notification: Performance of matching and sorting (n=5): time 0.000155/0.3273, allocations: 59.8 kB / 441.1 MB, free: 9.746 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.972e-05/0.3273, allocations: 59.03 kB / 441.2 MB, free: 9.684 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.621e-05/0.3274, allocations: 122.2 kB / 441.3 MB, free: 9.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.06e-05/0.3274, allocations: 25.7 kB / 441.3 MB, free: 9.559 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.254e-05/0.3275, allocations: 103.8 kB / 441.4 MB, free: 9.469 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.3275, allocations: 20.81 kB / 441.5 MB, free: 9.453 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-06/0.3275, allocations: 0 / 441.5 MB, free: 9.453 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.76e-05/0.3276, allocations: 325.8 kB / 441.8 MB, free: 9.141 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.625e-05/0.3276, allocations: 11.47 kB / 441.8 MB, free: 9.141 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.275e-05/0.3276, allocations: 14.69 kB / 441.8 MB, free: 9.141 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.002e-05/0.3277, allocations: 13.25 kB / 441.8 MB, free: 9.141 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.3277, allocations: 3.938 kB / 441.8 MB, free: 9.137 MB / 314.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001026/0.3278, allocations: 78.62 kB / 441.9 MB, free: 9.098 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.258e-06/0.3278, allocations: 5.656 kB / 441.9 MB, free: 9.098 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3278, allocations: 5.719 kB / 441.9 MB, free: 9.094 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.3278, allocations: 3.906 kB / 441.9 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/0.328, allocations: 41.78 kB / 442 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.3281, allocations: 1.547 kB / 442 MB, free: 9.086 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.376e-05/0.3281, allocations: 7.781 kB / 442 MB, free: 9.082 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.3281, allocations: 3.844 kB / 442 MB, free: 9.082 MB / 314.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.444e-05/0.3282, allocations: 106.3 kB / 442.1 MB, free: 8.973 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.094e-05/0.3282, allocations: 15.53 kB / 442.1 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.044e-05/0.3283, allocations: 12.42 kB / 442.1 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.3283, allocations: 0 / 442.1 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3283, allocations: 0 / 442.1 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3283, allocations: 1.219 kB / 442.1 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000129/0.3284, allocations: 162.1 kB / 442.3 MB, free: 8.801 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3284, allocations: 0 / 442.3 MB, free: 8.801 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.3286, allocations: 30.67 kB / 442.3 MB, free: 8.797 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.3286, allocations: 4.656 kB / 442.3 MB, free: 8.793 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.3286, allocations: 4 kB / 442.3 MB, free: 8.789 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.3286, allocations: 4.5 kB / 442.3 MB, free: 8.789 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3286, allocations: 0 / 442.3 MB, free: 8.789 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000157/0.3288, allocations: 185 kB / 442.5 MB, free: 8.652 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.674e-05/0.3288, allocations: 85.72 kB / 442.6 MB, free: 8.551 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.94e-05/0.3288, allocations: 3.812 kB / 442.6 MB, free: 8.551 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.001e-05/0.3289, allocations: 1.547 kB / 442.6 MB, free: 8.551 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.896e-05/0.329, allocations: 9.156 kB / 442.6 MB, free: 8.547 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-06/0.329, allocations: 0.7031 kB / 442.6 MB, free: 8.547 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.323e-05/0.329, allocations: 109.4 kB / 442.7 MB, free: 8.469 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002165/0.3293, allocations: 12.36 kB / 442.7 MB, free: 8.469 MB / 314.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 8.921e-05/0.3293, allocations: 103.5 kB / 442.8 MB, free: 8.375 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.546e-05/0.3294, allocations: 33.78 kB / 442.8 MB, free: 8.375 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-06/0.3294, allocations: 0 / 442.8 MB, free: 8.375 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 3.009e-05/0.3295, allocations: 18.77 kB / 442.8 MB, free: 8.375 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.3297, allocations: 27.06 kB / 442.9 MB, free: 8.363 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004653/0.3302, allocations: 174.7 kB / 443 MB, free: 8.258 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001502/0.3303, allocations: 0.7224 MB / 443.8 MB, free: 7.555 MB / 314.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3303, allocations: 3.938 kB / 443.8 MB, free: 7.551 MB / 314.7 MB Notification: Performance of Templates: time 0.002723/0.3331, allocations: 0.7869 MB / 444.6 MB, free: 7.484 MB / 314.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches