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.0009764/0.0009764, allocations: 84.73 kB / 21.5 MB, free: 2.984 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.0009131/0.0009131, allocations: 170.9 kB / 24.92 MB, free: 8.773 MB / 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 0.9642/0.9642, allocations: 177 MB / 205.2 MB, free: 5.434 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 7.11e-07/7.11e-07, allocations: 0 / 273.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.023e-05/1.094e-05, allocations: 6.25 kB / 273.4 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001824/0.001835, allocations: 1.717 MB / 275.1 MB, free: 15.49 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006339/0.002469, allocations: 0.5491 MB / 275.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.583e-05/0.002525, allocations: 7.938 kB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 5.055e-05/0.002575, allocations: 7.875 kB / 275.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 9.738e-05/0.002673, allocations: 19.8 kB / 275.7 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001501/0.002823, allocations: 71.77 kB / 275.7 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.302e-05/0.002916, allocations: 99.7 kB / 275.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.374e-05/0.00297, allocations: 21.94 kB / 275.9 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.247e-05/0.003062, allocations: 63.77 kB / 275.9 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.009e-05/0.003112, allocations: 39.88 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.186e-05/0.003124, allocations: 8 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.383e-05/0.003158, allocations: 11.94 kB / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 2.731e-05/0.003185, allocations: 23.91 kB / 276 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.86e-05/0.003214, allocations: 27.86 kB / 276 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001229/0.003337, allocations: 55.81 kB / 276.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.403e-06/0.003338, allocations: 0 / 276.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.21e-07/0.003339, allocations: 0 / 276.1 MB, free: 14.49 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.997e-06/0.003343, allocations: 4 kB / 276.1 MB, free: 14.48 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.0003805/0.003723, allocations: 320.3 kB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.003759, allocations: 11.98 kB / 276.4 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.003862, allocations: 24.91 kB / 276.4 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.004007, allocations: 142.2 kB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.004018, allocations: 12.31 kB / 276.6 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.606e-05/0.004044, allocations: 8.328 kB / 276.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.004147, allocations: 81.53 kB / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.056e-06/0.004155, allocations: 3.938 kB / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.594e-06/0.004163, allocations: 0 / 276.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.004169, allocations: 11.98 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.379e-05/0.004193, allocations: 12 kB / 276.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002999/0.004493, allocations: 214.8 kB / 276.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.815e-05/0.004571, allocations: 38.56 kB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.999e-05/0.004591, allocations: 12.86 kB / 277 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.004606, allocations: 7.984 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.004625, allocations: 30.56 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 6.81e-07/0.004626, allocations: 0 / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001185/0.004744, allocations: 65.62 kB / 277.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.893e-05/0.004773, allocations: 51.41 kB / 277.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.902e-05/0.004852, allocations: 146 kB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.004e-05/0.004862, allocations: 25.7 kB / 277.3 MB, free: 13.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.393e-05/0.004906, allocations: 116 kB / 277.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.004926, allocations: 7.906 kB / 277.4 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.951e-05/0.004956, allocations: 29.69 kB / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.506e-05/0.005041, allocations: 314.8 kB / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.387e-05/0.005055, allocations: 11.98 kB / 277.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.114e-05/0.005066, allocations: 4.25 kB / 277.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.461e-05/0.005101, allocations: 24.78 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.005103, allocations: 8 kB / 277.8 MB, free: 12.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 5.78e-05/0.005161, allocations: 53.67 kB / 277.8 MB, free: 12.58 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.005171, allocations: 8 kB / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-06/0.005175, allocations: 0 / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.005186, allocations: 0 / 277.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.0053, allocations: 39.97 kB / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.945e-06/0.005303, allocations: 0 / 277.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.428e-05/0.005327, allocations: 19.81 kB / 277.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-06/0.005331, allocations: 0 / 277.9 MB, free: 12.51 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 5.696e-05/0.005388, allocations: 116.6 kB / 278 MB, free: 12.39 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.533e-05/0.005403, allocations: 8 kB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.06e-05/0.005424, allocations: 16.45 kB / 278 MB, free: 12.37 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.005425, allocations: 3.938 kB / 278 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-06/0.005426, allocations: 0 / 278 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.005431, allocations: 3.938 kB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.184e-05/0.005512, allocations: 85.86 kB / 278.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.005513, allocations: 0 / 278.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.957e-05/0.005573, allocations: 23.97 kB / 278.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.005575, allocations: 4 kB / 278.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-06/0.005582, allocations: 0 / 278.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.005583, allocations: 4 kB / 278.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4e-07/0.005584, allocations: 0 / 278.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001102/0.005694, allocations: 163.4 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.887e-06/0.005703, allocations: 7.953 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.158e-05/0.005714, allocations: 4 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.197e-05/0.005746, allocations: 0 / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.404e-05/0.00577, allocations: 3.984 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-06/0.005774, allocations: 4 kB / 278.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.625e-05/0.0058, allocations: 32.77 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0058, allocations: 0 / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001104/0.005911, allocations: 19.98 kB / 278.4 MB, free: 11.98 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 6.017e-05/0.005971, allocations: 76.41 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 6.441e-05/0.006035, allocations: 33.08 kB / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.006037, allocations: 0 / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.064e-05/0.006058, allocations: 24.84 kB / 278.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.006207, allocations: 22.33 kB / 278.6 MB, free: 11.81 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004775/0.006684, allocations: 255.5 kB / 278.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.544e-05/0.00672, allocations: 67.28 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.765e-05/0.006747, allocations: 11.97 kB / 278.9 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.718e-05/0.006804, allocations: 55.38 kB / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.006805, allocations: 0 / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of Templates: time 0.002454/0.009259, allocations: 0.9942 MB / 279.9 MB, free: 10.4 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.4723585243336856]