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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 84.98 kB / 23 MB, free: 1.504 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 175.6 kB / 26.39 MB, free: 8.008 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9128/0.9128, allocations: 158.6 MB / 188.3 MB, free: 2.789 MB / 170.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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=5002,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 252.2 MB, free: 7.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.571e-05/1.692e-05, allocations: 2.312 kB / 252.2 MB, free: 7.266 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001984/0.002001, allocations: 1.705 MB / 253.9 MB, free: 5.543 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.000752/0.002753, allocations: 0.5113 MB / 254.4 MB, free: 5.023 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.157e-05/0.002834, allocations: 3.938 kB / 254.4 MB, free: 5.02 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001066/0.002941, allocations: 11.86 kB / 254.5 MB, free: 5.008 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001686/0.003109, allocations: 27.8 kB / 254.5 MB, free: 4.98 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.003293, allocations: 51.86 kB / 254.5 MB, free: 4.93 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001402/0.003433, allocations: 99.69 kB / 254.6 MB, free: 4.832 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.294e-05/0.003526, allocations: 33.16 kB / 254.7 MB, free: 4.801 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.003645, allocations: 51.89 kB / 254.7 MB, free: 4.75 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.153e-05/0.003717, allocations: 31.89 kB / 254.8 MB, free: 4.719 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.036e-05/0.003737, allocations: 8 kB / 254.8 MB, free: 4.711 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.303e-05/0.00375, allocations: 4 kB / 254.8 MB, free: 4.707 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.22e-05/0.003802, allocations: 27.91 kB / 254.8 MB, free: 4.68 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.163e-05/0.003834, allocations: 27.86 kB / 254.8 MB, free: 4.652 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.003945, allocations: 59.75 kB / 254.9 MB, free: 4.594 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.003947, allocations: 0 / 254.9 MB, free: 4.594 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.003947, allocations: 0 / 254.9 MB, free: 4.594 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.187e-06/0.003952, allocations: 0 / 254.9 MB, free: 4.594 MB / 234.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.0004001/0.004352, allocations: 436.1 kB / 255.3 MB, free: 4.129 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.004384, allocations: 15.98 kB / 255.3 MB, free: 4.113 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.476e-05/0.004419, allocations: 20.84 kB / 255.3 MB, free: 4.094 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.004566, allocations: 152.9 kB / 255.5 MB, free: 3.918 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.004579, allocations: 4.375 kB / 255.5 MB, free: 3.914 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.033e-05/0.004609, allocations: 8.375 kB / 255.5 MB, free: 3.906 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001155/0.004725, allocations: 74.92 kB / 255.6 MB, free: 3.824 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.004733, allocations: 3.938 kB / 255.6 MB, free: 3.82 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.854e-06/0.004741, allocations: 4 kB / 255.6 MB, free: 3.816 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.004746, allocations: 0 / 255.6 MB, free: 3.816 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.692e-05/0.004773, allocations: 19.92 kB / 255.6 MB, free: 3.797 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003523/0.005125, allocations: 320 kB / 255.9 MB, free: 3.457 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.046e-05/0.005216, allocations: 51.06 kB / 256 MB, free: 3.395 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.412e-05/0.00524, allocations: 15.69 kB / 256 MB, free: 3.375 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.256e-05/0.005252, allocations: 0 / 256 MB, free: 3.375 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.005272, allocations: 37.39 kB / 256 MB, free: 3.328 MB / 234.7 MB Notification: Performance of pre-optimization done (n=5): time 8.32e-07/0.005273, allocations: 0 / 256 MB, free: 3.328 MB / 234.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001439/0.005417, allocations: 61.64 kB / 256.1 MB, free: 3.262 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/0.005448, allocations: 59.39 kB / 256.1 MB, free: 3.191 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.779e-05/0.005546, allocations: 205.7 kB / 256.3 MB, free: 2.973 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.052e-05/0.005556, allocations: 25.7 kB / 256.4 MB, free: 2.941 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.256e-05/0.005609, allocations: 154.9 kB / 256.5 MB, free: 2.785 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.285e-05/0.005632, allocations: 27.78 kB / 256.5 MB, free: 2.758 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.699e-05/0.005659, allocations: 23.38 kB / 256.6 MB, free: 2.727 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.00577, allocations: 0.4962 MB / 257.1 MB, free: 2.219 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.198e-05/0.005782, allocations: 4 kB / 257.1 MB, free: 2.215 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.37e-05/0.005795, allocations: 7.984 kB / 257.1 MB, free: 2.207 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.664e-05/0.005832, allocations: 23.69 kB / 257.1 MB, free: 2.18 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.005834, allocations: 0 / 257.1 MB, free: 2.18 MB / 234.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 6.979e-05/0.005903, allocations: 65.62 kB / 257.2 MB, free: 2.109 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.005916, allocations: 8 kB / 257.2 MB, free: 2.102 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.547e-06/0.00592, allocations: 7.938 kB / 257.2 MB, free: 2.094 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.963e-06/0.005927, allocations: 0 / 257.2 MB, free: 2.094 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.006066, allocations: 35.97 kB / 257.2 MB, free: 2.059 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.006071, allocations: 3.938 kB / 257.2 MB, free: 2.055 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.543e-05/0.006096, allocations: 4 kB / 257.2 MB, free: 2.051 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-06/0.006102, allocations: 0 / 257.2 MB, free: 2.051 MB / 234.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.441e-05/0.006166, allocations: 156.6 kB / 257.4 MB, free: 1.887 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.279e-05/0.006189, allocations: 15.91 kB / 257.4 MB, free: 1.871 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.429e-05/0.006213, allocations: 12.45 kB / 257.4 MB, free: 1.859 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.006218, allocations: 7.984 kB / 257.4 MB, free: 1.852 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.542e-06/0.00622, allocations: 4 kB / 257.4 MB, free: 1.848 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.006223, allocations: 3.938 kB / 257.4 MB, free: 1.844 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001059/0.006329, allocations: 117.4 kB / 257.5 MB, free: 1.703 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.006332, allocations: 4 kB / 257.5 MB, free: 1.699 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.948e-05/0.006401, allocations: 23.97 kB / 257.6 MB, free: 1.676 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.006403, allocations: 3.938 kB / 257.6 MB, free: 1.672 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.006413, allocations: 4 kB / 257.6 MB, free: 1.668 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.006415, allocations: 3.938 kB / 257.6 MB, free: 1.664 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.006416, allocations: 0 / 257.6 MB, free: 1.664 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001587/0.006575, allocations: 223.8 kB / 257.8 MB, free: 1.426 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.162e-05/0.006587, allocations: 11.98 kB / 257.8 MB, free: 1.414 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.006598, allocations: 0 / 257.8 MB, free: 1.414 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.232e-05/0.00664, allocations: 4 kB / 257.8 MB, free: 1.41 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.173e-05/0.006662, allocations: 7.984 kB / 257.8 MB, free: 1.402 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.006665, allocations: 0 / 257.8 MB, free: 1.402 MB / 234.7 MB Notification: Performance of sorting global known variables: time 4.548e-05/0.00671, allocations: 147.1 kB / 257.9 MB, free: 1.258 MB / 234.7 MB Notification: Performance of sort global known variables: time 8e-08/0.00671, allocations: 0 / 257.9 MB, free: 1.258 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001436/0.006854, allocations: 19.95 kB / 258 MB, free: 1.238 MB / 234.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.579e-05/0.00692, allocations: 95.23 kB / 258.1 MB, free: 1.133 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 6.645e-05/0.006986, allocations: 35.61 kB / 258.1 MB, free: 1.094 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 8.21e-07/0.006987, allocations: 0 / 258.1 MB, free: 1.094 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 2.127e-05/0.007008, allocations: 19.69 kB / 258.1 MB, free: 1.07 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002141/0.007222, allocations: 28.11 kB / 258.1 MB, free: 1.047 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005518/0.007774, allocations: 249.5 kB / 258.4 MB, free: 0.7773 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.063e-05/0.007815, allocations: 71.27 kB / 258.5 MB, free: 0.6875 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 3.589e-05/0.007851, allocations: 12.05 kB / 258.5 MB, free: 0.6758 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.219e-05/0.007913, allocations: 78.19 kB / 258.5 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of SimCode: time 8.71e-07/0.007914, allocations: 0 / 258.5 MB, free: 0.5977 MB / 234.7 MB Notification: Performance of Templates: time 0.002641/0.01055, allocations: 1.049 MB / 259.6 MB, free: 15.56 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.63626761501655]