Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001278/0.001278, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001931/0.00321, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009126/0.0009126, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001359/0.002271, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8409/0.8409, allocations: 173.4 MB / 186 MB, free: 7.523 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1627/1.004, allocations: 52.48 MB / 238.5 MB, free: 7.621 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.InverseModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 239.7 MB, free: 6.355 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.229e-05/1.353e-05, allocations: 2.312 kB / 239.7 MB, free: 6.352 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001862/0.001876, allocations: 1.737 MB / 241.5 MB, free: 4.625 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005232/0.002399, allocations: 0.4891 MB / 242 MB, free: 4.137 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.743e-05/0.002456, allocations: 0 / 242 MB, free: 4.137 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.638e-05/0.002503, allocations: 8.969 kB / 242 MB, free: 4.129 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 9.47e-05/0.002597, allocations: 34.84 kB / 242 MB, free: 4.098 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001305/0.002728, allocations: 51.86 kB / 242.1 MB, free: 4.047 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000116/0.002844, allocations: 95.66 kB / 242.2 MB, free: 3.953 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.187e-05/0.002926, allocations: 33.83 kB / 242.2 MB, free: 3.918 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.00303, allocations: 75.7 kB / 242.3 MB, free: 3.844 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.797e-05/0.003088, allocations: 27.91 kB / 242.3 MB, free: 3.816 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.907e-05/0.003107, allocations: 8 kB / 242.3 MB, free: 3.809 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.25e-05/0.00312, allocations: 5.281 kB / 242.3 MB, free: 3.805 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.052e-05/0.00316, allocations: 15.94 kB / 242.3 MB, free: 3.789 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.691e-05/0.003187, allocations: 19.94 kB / 242.3 MB, free: 3.77 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 9.185e-05/0.003279, allocations: 67.62 kB / 242.4 MB, free: 3.703 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.003287, allocations: 1.062 kB / 242.4 MB, free: 3.703 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.003288, allocations: 0 / 242.4 MB, free: 3.703 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.136e-06/0.003296, allocations: 0 / 242.4 MB, free: 3.703 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.0003569/0.003653, allocations: 327.1 kB / 242.7 MB, free: 3.363 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.44e-05/0.003677, allocations: 8.031 kB / 242.7 MB, free: 3.355 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.865e-05/0.003706, allocations: 8.938 kB / 242.7 MB, free: 3.348 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.003838, allocations: 146.1 kB / 242.9 MB, free: 3.18 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.00385, allocations: 4.375 kB / 242.9 MB, free: 3.176 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.257e-05/0.003872, allocations: 16.75 kB / 242.9 MB, free: 3.16 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.617e-05/0.003968, allocations: 70.36 kB / 243 MB, free: 3.082 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.34e-06/0.003974, allocations: 0.9688 kB / 243 MB, free: 3.082 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.814e-06/0.003981, allocations: 4 kB / 243 MB, free: 3.078 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.003986, allocations: 4.906 kB / 243 MB, free: 3.074 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.35e-05/0.00401, allocations: 19.92 kB / 243 MB, free: 3.055 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002487/0.004259, allocations: 216.6 kB / 243.2 MB, free: 2.828 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.442e-05/0.004323, allocations: 34.56 kB / 243.2 MB, free: 2.785 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.83e-05/0.004341, allocations: 16.86 kB / 243.3 MB, free: 2.766 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.064e-05/0.004352, allocations: 0.6562 kB / 243.3 MB, free: 2.766 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/0.004369, allocations: 34.5 kB / 243.3 MB, free: 2.723 MB / 234.7 MB Notification: Performance of pre-optimization done (n=5): time 8.02e-07/0.00437, allocations: 4.625 kB / 243.3 MB, free: 2.719 MB / 234.7 MB Notification: Performance of matching and sorting (n=5): time 0.000108/0.004478, allocations: 59.64 kB / 243.4 MB, free: 2.656 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.312e-05/0.004501, allocations: 51.41 kB / 243.4 MB, free: 2.594 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.75e-05/0.004569, allocations: 148.6 kB / 243.6 MB, free: 2.438 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.004581, allocations: 25.7 kB / 243.6 MB, free: 2.406 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.381e-05/0.004615, allocations: 100.1 kB / 243.7 MB, free: 2.305 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.069e-05/0.004635, allocations: 27.78 kB / 243.7 MB, free: 2.277 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.501e-05/0.00466, allocations: 23.17 kB / 243.7 MB, free: 2.25 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.87e-05/0.004729, allocations: 322.8 kB / 244 MB, free: 1.926 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.111e-05/0.00474, allocations: 4 kB / 244 MB, free: 1.922 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.263e-05/0.004753, allocations: 15.92 kB / 244.1 MB, free: 1.906 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.588e-05/0.004789, allocations: 21.47 kB / 244.1 MB, free: 1.883 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.00479, allocations: 0.5938 kB / 244.1 MB, free: 1.883 MB / 234.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 5.334e-05/0.004844, allocations: 57.66 kB / 244.1 MB, free: 1.82 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.418e-06/0.004853, allocations: 4.531 kB / 244.1 MB, free: 1.816 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.085e-06/0.004856, allocations: 1.688 kB / 244.1 MB, free: 1.816 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.004866, allocations: 7.938 kB / 244.2 MB, free: 1.809 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.005057, allocations: 57.08 kB / 244.2 MB, free: 1.754 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.888e-06/0.005061, allocations: 3.938 kB / 244.2 MB, free: 1.75 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.245e-05/0.005084, allocations: 8 kB / 244.2 MB, free: 1.742 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.00509, allocations: 1 kB / 244.2 MB, free: 1.742 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 5.177e-05/0.005141, allocations: 108.7 kB / 244.3 MB, free: 1.625 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.625e-05/0.005158, allocations: 12.92 kB / 244.3 MB, free: 1.613 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.175e-05/0.005179, allocations: 16.47 kB / 244.4 MB, free: 1.594 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.362e-06/0.005181, allocations: 0 / 244.4 MB, free: 1.594 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-06/0.005182, allocations: 0.75 kB / 244.4 MB, free: 1.594 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.005185, allocations: 4 kB / 244.4 MB, free: 1.59 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.509e-05/0.00527, allocations: 82.36 kB / 244.4 MB, free: 1.492 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.005271, allocations: 0.8125 kB / 244.4 MB, free: 1.492 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.144e-05/0.005352, allocations: 32.22 kB / 244.5 MB, free: 1.461 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.977e-06/0.005361, allocations: 5.609 kB / 244.5 MB, free: 1.457 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.005364, allocations: 7.938 kB / 244.5 MB, free: 1.449 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.131e-05/0.005376, allocations: 7.984 kB / 244.5 MB, free: 1.441 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.005376, allocations: 0 / 244.5 MB, free: 1.441 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.005377, allocations: 4 kB / 244.5 MB, free: 1.438 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001123/0.00549, allocations: 167.4 kB / 244.7 MB, free: 1.258 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.16e-05/0.005501, allocations: 7.938 kB / 244.7 MB, free: 1.25 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.458e-05/0.005536, allocations: 3.938 kB / 244.7 MB, free: 1.246 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.888e-05/0.005555, allocations: 7.984 kB / 244.7 MB, free: 1.238 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.005557, allocations: 0 / 244.7 MB, free: 1.238 MB / 234.7 MB Notification: Performance of sorting global known variables: time 2.379e-05/0.005581, allocations: 31.08 kB / 244.7 MB, free: 1.207 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005581, allocations: 0 / 244.7 MB, free: 1.207 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001163/0.005697, allocations: 19.94 kB / 244.7 MB, free: 1.188 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 5.578e-05/0.005753, allocations: 76.45 kB / 244.8 MB, free: 1.105 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 5.933e-05/0.005812, allocations: 28.84 kB / 244.8 MB, free: 1.074 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 7.014e-06/0.005819, allocations: 8 kB / 244.8 MB, free: 1.062 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 2.468e-05/0.005844, allocations: 24.78 kB / 244.9 MB, free: 1.035 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001947/0.006039, allocations: 189.1 kB / 245.1 MB, free: 0.8164 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007431/0.006782, allocations: 267.3 kB / 245.3 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.345e-05/0.006815, allocations: 71.33 kB / 245.4 MB, free: 448 kB / 234.7 MB Notification: Performance of simCode: alias equations: time 2.962e-05/0.006845, allocations: 4.734 kB / 245.4 MB, free: 436 kB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.269e-05/0.006907, allocations: 67.36 kB / 245.5 MB, free: 368 kB / 234.7 MB Notification: Performance of SimCode: time 4.01e-07/0.006908, allocations: 0 / 245.5 MB, free: 368 kB / 234.7 MB Notification: Performance of Templates: time 0.002357/0.009264, allocations: 1.27 MB / 246.7 MB, free: 15.12 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.385933643206954]