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.001318/0.001318, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001423/0.001423, allocations: 213.3 kB / 24.48 MB, free: 3.941 MB / 14.72 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.429/1.429, allocations: 230.6 MB / 258.2 MB, free: 7.727 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001581/0.001581, allocations: 43.92 kB / 378.9 MB, free: 2.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2262/0.2278, allocations: 53.37 MB / 432.3 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.00308/0.2308, allocations: 1.673 MB / 434 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001153/0.232, allocations: 0.5181 MB / 434.5 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.416e-05/0.2321, allocations: 7.938 kB / 434.5 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.2322, allocations: 11.86 kB / 434.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002283/0.2324, allocations: 27.78 kB / 434.6 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002356/0.2327, allocations: 59.86 kB / 434.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001865/0.2328, allocations: 103.7 kB / 434.7 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.233, allocations: 29.09 kB / 434.7 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.2331, allocations: 43.78 kB / 434.8 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.171e-05/0.2332, allocations: 43.78 kB / 434.8 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.241e-05/0.2332, allocations: 12 kB / 434.8 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.699e-05/0.2333, allocations: 8 kB / 434.8 MB, free: 4.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.093e-05/0.2333, allocations: 23.91 kB / 434.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.755e-05/0.2334, allocations: 35.8 kB / 434.9 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.2335, allocations: 90.33 kB / 435 MB, free: 3.984 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2335, allocations: 4 kB / 435 MB, free: 3.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.2335, allocations: 0 / 435 MB, free: 3.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.2335, allocations: 0 / 435 MB, free: 3.98 MB / 334.1 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.0006065/0.2342, allocations: 333.9 kB / 435.3 MB, free: 3.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2342, allocations: 16.03 kB / 435.3 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.2343, allocations: 20.83 kB / 435.4 MB, free: 3.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002743/0.2346, allocations: 150.8 kB / 435.5 MB, free: 3.418 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.2346, allocations: 12.36 kB / 435.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.969e-05/0.2347, allocations: 8.125 kB / 435.5 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.2349, allocations: 84.27 kB / 435.6 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.387e-06/0.2349, allocations: 0 / 435.6 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.2349, allocations: 8 kB / 435.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/0.2349, allocations: 4 kB / 435.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.235, allocations: 39.97 kB / 435.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005417/0.2356, allocations: 280.3 kB / 435.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.2357, allocations: 58.59 kB / 436 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.492e-05/0.2358, allocations: 36.77 kB / 436 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.2358, allocations: 0 / 436 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.2359, allocations: 34.56 kB / 436.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.333e-06/0.2359, allocations: 4 kB / 436.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.000344/0.2362, allocations: 93.61 kB / 436.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.2363, allocations: 59.34 kB / 436.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.2364, allocations: 145.4 kB / 436.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.2365, allocations: 25.7 kB / 436.4 MB, free: 2.449 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.566e-05/0.2365, allocations: 108.2 kB / 436.5 MB, free: 2.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.673e-05/0.2366, allocations: 27.78 kB / 436.5 MB, free: 2.312 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.241e-05/0.2366, allocations: 21.66 kB / 436.5 MB, free: 2.285 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.2368, allocations: 322.8 kB / 436.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.766e-05/0.2368, allocations: 27.92 kB / 436.9 MB, free: 1.934 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.224e-05/0.2369, allocations: 20 kB / 436.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001253/0.237, allocations: 52.83 kB / 436.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.237, allocations: 0 / 436.9 MB, free: 1.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001698/0.2372, allocations: 85.62 kB / 437 MB, free: 1.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.2372, allocations: 7.938 kB / 437 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.2372, allocations: 0 / 437 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.2372, allocations: 256 / 437 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002361/0.2375, allocations: 43.91 kB / 437.1 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.2375, allocations: 8 kB / 437.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.021e-05/0.2375, allocations: 11.94 kB / 437.1 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.2375, allocations: 4 kB / 437.1 MB, free: 1.695 MB / 334.1 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 9.612e-05/0.2376, allocations: 113.8 kB / 437.2 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.435e-05/0.2377, allocations: 11.89 kB / 437.2 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.215e-05/0.2377, allocations: 12.41 kB / 437.2 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2377, allocations: 0 / 437.2 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.2377, allocations: 0 / 437.2 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.2377, allocations: 3.984 kB / 437.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001738/0.2379, allocations: 129.3 kB / 437.4 MB, free: 1.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2379, allocations: 4 kB / 437.4 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.238, allocations: 23.98 kB / 437.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.238, allocations: 0 / 437.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/0.2381, allocations: 7.938 kB / 437.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2381, allocations: 0 / 437.4 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2381, allocations: 3.938 kB / 437.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003534/0.2384, allocations: 199.4 kB / 437.6 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.78e-05/0.2384, allocations: 15.94 kB / 437.6 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.2385, allocations: 7.922 kB / 437.6 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.969e-05/0.2385, allocations: 12.05 kB / 437.6 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.077e-05/0.2386, allocations: 0 / 437.6 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.2386, allocations: 7.984 kB / 437.6 MB, free: 1.098 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.69e-05/0.2387, allocations: 107.3 kB / 437.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2387, allocations: 0 / 437.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002326/0.2389, allocations: 15.94 kB / 437.8 MB, free: 0.9766 MB / 334.1 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 0.0001455/0.2391, allocations: 91.25 kB / 437.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001703/0.2392, allocations: 51.91 kB / 437.9 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2392, allocations: 0 / 437.9 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.676e-05/0.2393, allocations: 23.98 kB / 437.9 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.2396, allocations: 30.5 kB / 438 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006304/0.2403, allocations: 261.1 kB / 438.2 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.807e-05/0.2403, allocations: 93.05 kB / 438.3 MB, free: 388 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.559e-05/0.2404, allocations: 11.95 kB / 438.3 MB, free: 376 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.722e-05/0.2404, allocations: 11.42 kB / 438.3 MB, free: 368 kB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.2404, allocations: 7.938 kB / 438.3 MB, free: 360 kB / 334.1 MB Notification: Performance of Templates: time 0.003862/0.2443, allocations: 1.042 MB / 439.4 MB, free: 15.33 MB / 350.1 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=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.2102910749963485]