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/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009908/0.0009908, allocations: 87.67 kB / 21.19 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.022/1.022, allocations: 177 MB / 204.8 MB, free: 5.234 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.InverseModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 272.9 MB, free: 1.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.973e-05/3.174e-05, allocations: 5.266 kB / 272.9 MB, free: 1.285 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002349/0.002381, allocations: 1.707 MB / 274.6 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008845/0.003265, allocations: 0.5492 MB / 275.2 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.13e-05/0.003357, allocations: 8 kB / 275.2 MB, free: 15 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.003472, allocations: 7.875 kB / 275.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000215/0.003687, allocations: 27.78 kB / 275.2 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002764/0.003964, allocations: 67.72 kB / 275.3 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001666/0.00413, allocations: 99.69 kB / 275.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.00424, allocations: 21.3 kB / 275.4 MB, free: 14.78 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001634/0.004403, allocations: 63.81 kB / 275.5 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.711e-05/0.00448, allocations: 35.89 kB / 275.5 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.0045, allocations: 4 kB / 275.5 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.575e-05/0.004546, allocations: 12 kB / 275.5 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.042e-05/0.004606, allocations: 19.92 kB / 275.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.294e-05/0.004649, allocations: 27.91 kB / 275.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000156/0.004805, allocations: 71.61 kB / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.004808, allocations: 0 / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.004809, allocations: 0 / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.004814, allocations: 0 / 275.6 MB, free: 14.55 MB / 266.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.0005677/0.005382, allocations: 444.1 kB / 276.1 MB, free: 14.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.005425, allocations: 15.98 kB / 276.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.005548, allocations: 28.77 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001895/0.005737, allocations: 153 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.005748, allocations: 4.375 kB / 276.2 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.242e-05/0.005781, allocations: 12.36 kB / 276.3 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001396/0.00592, allocations: 74.94 kB / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.005927, allocations: 3.938 kB / 276.3 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.005939, allocations: 0 / 276.3 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.005947, allocations: 8 kB / 276.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.139e-05/0.005989, allocations: 27.86 kB / 276.4 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004284/0.006417, allocations: 339.5 kB / 276.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001065/0.006524, allocations: 47.08 kB / 276.8 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.321e-05/0.006557, allocations: 19.69 kB / 276.8 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.006577, allocations: 8.031 kB / 276.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.006599, allocations: 33.39 kB / 276.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 1.783e-06/0.006601, allocations: 0 / 276.8 MB, free: 13.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001875/0.006788, allocations: 81.77 kB / 276.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.006818, allocations: 51.41 kB / 276.9 MB, free: 13.08 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.006927, allocations: 205.2 kB / 277.1 MB, free: 12.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.089e-05/0.006938, allocations: 25.7 kB / 277.2 MB, free: 12.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.317e-05/0.007011, allocations: 158.9 kB / 277.3 MB, free: 12.67 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.322e-05/0.007034, allocations: 15.86 kB / 277.3 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.738e-05/0.007071, allocations: 31.36 kB / 277.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.007189, allocations: 496.1 kB / 277.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.431e-05/0.007213, allocations: 11.98 kB / 277.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.044e-05/0.007233, allocations: 11.98 kB / 277.9 MB, free: 12.1 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.16e-05/0.007285, allocations: 31.67 kB / 277.9 MB, free: 12.06 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.007288, allocations: 4 kB / 277.9 MB, free: 12.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.892e-05/0.007387, allocations: 69.58 kB / 278 MB, free: 11.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.007401, allocations: 8 kB / 278 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.007407, allocations: 0 / 278 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.007422, allocations: 0 / 278 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001494/0.007571, allocations: 39.91 kB / 278 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.007578, allocations: 0 / 278 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.726e-05/0.007605, allocations: 11.89 kB / 278 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.007611, allocations: 0 / 278 MB, free: 11.93 MB / 266.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 7.519e-05/0.007687, allocations: 164.6 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.014e-05/0.007707, allocations: 7.953 kB / 278.2 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.916e-05/0.007736, allocations: 16.45 kB / 278.2 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.007738, allocations: 3.938 kB / 278.2 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.007743, allocations: 3.938 kB / 278.2 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.007747, allocations: 0 / 278.2 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001235/0.00787, allocations: 140.6 kB / 278.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.007871, allocations: 0 / 278.4 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.895e-05/0.00795, allocations: 23.98 kB / 278.4 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.007953, allocations: 3.938 kB / 278.4 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.007971, allocations: 4 kB / 278.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.007972, allocations: 4 kB / 278.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.007973, allocations: 0 / 278.4 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001919/0.008165, allocations: 223.8 kB / 278.6 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.437e-05/0.00818, allocations: 7.906 kB / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.008196, allocations: 8 kB / 278.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.899e-05/0.008235, allocations: 3.984 kB / 278.6 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.964e-05/0.008275, allocations: 11.98 kB / 278.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.008281, allocations: 8 kB / 278.7 MB, free: 11.24 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.244e-05/0.008344, allocations: 151.2 kB / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008344, allocations: 0 / 278.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001488/0.008493, allocations: 16.03 kB / 278.8 MB, free: 11.08 MB / 266.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 8.141e-05/0.008574, allocations: 87.25 kB / 278.9 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001062/0.00868, allocations: 39.89 kB / 278.9 MB, free: 10.94 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.008681, allocations: 0 / 278.9 MB, free: 10.94 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.02e-05/0.008712, allocations: 31.61 kB / 279 MB, free: 10.9 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002405/0.008952, allocations: 15.98 kB / 279 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006748/0.009627, allocations: 262.3 kB / 279.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.872e-05/0.009666, allocations: 67.28 kB / 279.3 MB, free: 10.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.887e-05/0.009704, allocations: 7.984 kB / 279.3 MB, free: 10.51 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.46e-05/0.009739, allocations: 12.5 kB / 279.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.00974, allocations: 0 / 279.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of Templates: time 0.003254/0.01299, allocations: 0.96 MB / 280.3 MB, free: 9.555 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.816506057046354]