Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009961/0.0009961, allocations: 87.58 kB / 21.19 MB, free: 3.383 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.001112/0.001112, allocations: 165 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.041/1.041, allocations: 177.1 MB / 205 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.413e-06/1.413e-06, allocations: 0 / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.349e-05/1.49e-05, allocations: 2.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001909/0.001924, allocations: 1.723 MB / 274.7 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007359/0.00266, allocations: 0.5298 MB / 275.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.021e-05/0.00273, allocations: 8 kB / 275.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.611e-05/0.002827, allocations: 7.875 kB / 275.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001707/0.002997, allocations: 27.73 kB / 275.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002099/0.003207, allocations: 67.77 kB / 275.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000135/0.003342, allocations: 99.64 kB / 275.4 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.25e-05/0.003435, allocations: 29.28 kB / 275.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000121/0.003556, allocations: 55.88 kB / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.687e-05/0.003623, allocations: 31.89 kB / 275.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.82e-05/0.003641, allocations: 12 kB / 275.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.003e-05/0.003681, allocations: 15.94 kB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.763e-05/0.003728, allocations: 23.84 kB / 275.6 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.042e-05/0.003759, allocations: 19.94 kB / 275.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.003881, allocations: 71.72 kB / 275.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.195e-06/0.003883, allocations: 0 / 275.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.003884, allocations: 0 / 275.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.003888, allocations: 0 / 275.7 MB, free: 14.81 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.0004113/0.004299, allocations: 436.1 kB / 276.1 MB, free: 14.35 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.004332, allocations: 19.97 kB / 276.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.004436, allocations: 28.83 kB / 276.2 MB, free: 14.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000163/0.004599, allocations: 156.9 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.00461, allocations: 4.375 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.243e-05/0.004632, allocations: 8.375 kB / 276.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.004749, allocations: 73.75 kB / 276.4 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.004758, allocations: 3.938 kB / 276.4 MB, free: 14.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.004769, allocations: 8 kB / 276.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.004777, allocations: 7.922 kB / 276.4 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.518e-05/0.004812, allocations: 16 kB / 276.4 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003646/0.005176, allocations: 343.4 kB / 276.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.425e-05/0.005271, allocations: 47.05 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.024e-05/0.005301, allocations: 27.75 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.08e-05/0.005312, allocations: 0 / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.958e-05/0.005331, allocations: 33.39 kB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=5): time 8.82e-07/0.005332, allocations: 0 / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001608/0.005493, allocations: 77.58 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.005526, allocations: 55.41 kB / 277 MB, free: 13.35 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.809e-05/0.005624, allocations: 208.8 kB / 277.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.015e-05/0.005634, allocations: 25.7 kB / 277.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.323e-05/0.005687, allocations: 158.9 kB / 277.4 MB, free: 12.94 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.005707, allocations: 15.86 kB / 277.4 MB, free: 12.92 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.02e-05/0.005737, allocations: 27.36 kB / 277.4 MB, free: 12.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.005842, allocations: 0.4962 MB / 277.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.859e-05/0.005861, allocations: 4 kB / 277.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.712e-05/0.005878, allocations: 8 kB / 277.9 MB, free: 12.37 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.651e-05/0.005924, allocations: 31.67 kB / 278 MB, free: 12.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.005926, allocations: 0 / 278 MB, free: 12.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.428e-05/0.006, allocations: 73.58 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.142e-05/0.006012, allocations: 4 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.436e-06/0.006015, allocations: 0 / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.006027, allocations: 0 / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.006164, allocations: 43.91 kB / 278.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.006172, allocations: 4 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.421e-05/0.006196, allocations: 7.891 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.493e-06/0.006202, allocations: 0 / 278.1 MB, free: 12.2 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 6.161e-05/0.006264, allocations: 156.6 kB / 278.2 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.801e-05/0.006282, allocations: 19.89 kB / 278.3 MB, free: 12.01 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.018e-05/0.006302, allocations: 20.39 kB / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-06/0.006304, allocations: 0 / 278.3 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.006307, allocations: 3.938 kB / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.00631, allocations: 0 / 278.3 MB, free: 11.99 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.006418, allocations: 144.6 kB / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.006419, allocations: 0 / 278.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.581e-05/0.006485, allocations: 19.98 kB / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.006488, allocations: 4 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.006502, allocations: 3.984 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.006503, allocations: 0 / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.006505, allocations: 4 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001525/0.006657, allocations: 223.8 kB / 278.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.439e-05/0.006671, allocations: 20.19 kB / 278.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.006684, allocations: 0 / 278.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.799e-05/0.006722, allocations: 4 kB / 278.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.946e-05/0.006751, allocations: 11.88 kB / 278.7 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.006757, allocations: 7.984 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.143e-05/0.006809, allocations: 143.2 kB / 278.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006809, allocations: 0 / 278.9 MB, free: 11.36 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000148/0.006957, allocations: 12 kB / 278.9 MB, free: 11.35 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.506e-05/0.007022, allocations: 99.28 kB / 279 MB, free: 11.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001007/0.007123, allocations: 39.66 kB / 279 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.007124, allocations: 0 / 279 MB, free: 11.2 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.996e-05/0.007154, allocations: 19.62 kB / 279 MB, free: 11.18 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002197/0.007374, allocations: 19.98 kB / 279 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006024/0.007976, allocations: 262.3 kB / 279.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.069e-05/0.008017, allocations: 67.33 kB / 279.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.134e-05/0.008048, allocations: 4 kB / 279.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.238e-05/0.00808, allocations: 12.5 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of SimCode: time 5.61e-07/0.008081, allocations: 0 / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of Templates: time 0.002713/0.01079, allocations: 1.01 MB / 280.4 MB, free: 9.773 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.77712146891281]