Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.008768/0.008768, allocations: 109.8 kB / 21.98 MB, free: 5.184 MB / 14.72 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.002117/0.002117, allocations: 220.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.483/1.483, allocations: 230.6 MB / 259 MB, free: 8.039 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Blocks.Examples.InverseModel") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 59.91 kB / 379.8 MB, free: 2.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2392, allocations: 53.37 MB / 433.2 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002906/0.2421, allocations: 1.712 MB / 434.9 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.2432, allocations: 0.5649 MB / 435.4 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.327e-05/0.2433, allocations: 7.938 kB / 435.4 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001011/0.2434, allocations: 15.8 kB / 435.5 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001734/0.2435, allocations: 23.73 kB / 435.5 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000218/0.2437, allocations: 63.92 kB / 435.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001908/0.2439, allocations: 103.6 kB / 435.6 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.244, allocations: 21.3 kB / 435.7 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.2442, allocations: 47.84 kB / 435.7 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.491e-05/0.2443, allocations: 43.77 kB / 435.8 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.78e-05/0.2443, allocations: 4 kB / 435.8 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.682e-05/0.2443, allocations: 16 kB / 435.8 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.582e-05/0.2444, allocations: 23.86 kB / 435.8 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.07e-05/0.2444, allocations: 39.73 kB / 435.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000162/0.2446, allocations: 92.78 kB / 435.9 MB, free: 4.203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.2446, allocations: 4 kB / 435.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2446, allocations: 0 / 435.9 MB, free: 4.199 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.2446, allocations: 0 / 435.9 MB, free: 4.199 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.0005715/0.2452, allocations: 341.8 kB / 436.3 MB, free: 3.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.2452, allocations: 12.03 kB / 436.3 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.2454, allocations: 24.83 kB / 436.3 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002479/0.2456, allocations: 142.9 kB / 436.4 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.474e-05/0.2456, allocations: 8.375 kB / 436.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.364e-05/0.2457, allocations: 8.125 kB / 436.5 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/0.2459, allocations: 82.86 kB / 436.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.417e-06/0.2459, allocations: 0 / 436.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.2459, allocations: 4 kB / 436.5 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.718e-06/0.2459, allocations: 3.938 kB / 436.5 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001186/0.246, allocations: 43.97 kB / 436.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005823/0.2466, allocations: 379.1 kB / 437 MB, free: 3.059 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001495/0.2467, allocations: 58.59 kB / 437 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.032e-05/0.2468, allocations: 28.89 kB / 437 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.2468, allocations: 0 / 437 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.479e-05/0.2469, allocations: 38.5 kB / 437.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 9.02e-07/0.2469, allocations: 0 / 437.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002914/0.2471, allocations: 101.5 kB / 437.2 MB, free: 2.809 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.2472, allocations: 55.39 kB / 437.2 MB, free: 2.742 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.2473, allocations: 144.5 kB / 437.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.858e-05/0.2474, allocations: 25.7 kB / 437.4 MB, free: 2.555 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.877e-05/0.2474, allocations: 112.2 kB / 437.5 MB, free: 2.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.015e-05/0.2475, allocations: 23.78 kB / 437.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.142e-05/0.2475, allocations: 25.72 kB / 437.6 MB, free: 2.387 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.2477, allocations: 318.8 kB / 437.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.017e-05/0.2477, allocations: 27.98 kB / 437.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.821e-05/0.2478, allocations: 19.94 kB / 437.9 MB, free: 2.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001212/0.2479, allocations: 44.84 kB / 438 MB, free: 1.973 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.674e-06/0.2479, allocations: 4 kB / 438 MB, free: 1.969 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001738/0.2481, allocations: 93.5 kB / 438.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.2481, allocations: 4 kB / 438.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.2481, allocations: 256 / 438.1 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.2481, allocations: 4 kB / 438.1 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002203/0.2483, allocations: 43.97 kB / 438.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.2483, allocations: 0 / 438.1 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.55e-05/0.2484, allocations: 7.953 kB / 438.1 MB, free: 1.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.2484, allocations: 4.219 kB / 438.1 MB, free: 1.809 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 0.0001006/0.2485, allocations: 117.8 kB / 438.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.485e-05/0.2485, allocations: 11.89 kB / 438.2 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.306e-05/0.2486, allocations: 16.39 kB / 438.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2486, allocations: 0 / 438.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.2486, allocations: 0 / 438.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.2486, allocations: 3.938 kB / 438.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002074/0.2488, allocations: 168.7 kB / 438.4 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2488, allocations: 0 / 438.4 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001444/0.2489, allocations: 31.91 kB / 438.5 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.2489, allocations: 4 kB / 438.5 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.838e-06/0.2489, allocations: 4 kB / 438.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2489, allocations: 0 / 438.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2489, allocations: 0 / 438.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.2492, allocations: 203.5 kB / 438.7 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.236e-05/0.2493, allocations: 15.86 kB / 438.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.2493, allocations: 0 / 438.7 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.733e-05/0.2494, allocations: 3.984 kB / 438.7 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.566e-05/0.2494, allocations: 8.062 kB / 438.7 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.2494, allocations: 0 / 438.7 MB, free: 1.164 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.721e-05/0.2495, allocations: 122 kB / 438.8 MB, free: 1.047 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2495, allocations: 0 / 438.8 MB, free: 1.047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002332/0.2497, allocations: 19.89 kB / 438.8 MB, free: 1.027 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 9.272e-05/0.2498, allocations: 91.25 kB / 438.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001917/0.25, allocations: 43.97 kB / 439 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.25, allocations: 4 kB / 439 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.501e-05/0.2501, allocations: 31.92 kB / 439 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003068/0.2504, allocations: 26.8 kB / 439 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006111/0.251, allocations: 278.7 kB / 439.3 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003382/0.2513, allocations: 0.708 MB / 440 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.031e-05/0.2514, allocations: 15.44 kB / 440 MB, free: 15.77 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2514, allocations: 0 / 440 MB, free: 15.77 MB / 350.1 MB Notification: Performance of Templates: time 0.00301/0.2544, allocations: 1.221 MB / 441.2 MB, free: 14.55 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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: 7.011535961879417]