Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.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.001417/0.001417, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001687/0.001687, allocations: 216.9 kB / 24.53 MB, free: 4.012 MB / 14.72 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 1.391/1.391, allocations: 230.5 MB / 258.2 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 63.89 kB / 378.6 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2487, allocations: 53.4 MB / 432 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.004013/0.2527, allocations: 2.461 MB / 434.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.2539, allocations: 0.6737 MB / 435.1 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.254, allocations: 4 kB / 435.1 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001396/0.2541, allocations: 39.59 kB / 435.1 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001321/0.2543, allocations: 71.34 kB / 435.2 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002718/0.2545, allocations: 75.84 kB / 435.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000321/0.2549, allocations: 258.8 kB / 435.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001721/0.255, allocations: 73.62 kB / 435.6 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002139/0.2552, allocations: 111.6 kB / 435.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.2554, allocations: 111.5 kB / 435.8 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.435e-05/0.2555, allocations: 20 kB / 435.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.796e-05/0.2555, allocations: 24 kB / 435.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.166e-05/0.2556, allocations: 43.84 kB / 435.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001152/0.2557, allocations: 123.4 kB / 436 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003355/0.256, allocations: 267.2 kB / 436.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.256, allocations: 0 / 436.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.256, allocations: 0 / 436.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.256, allocations: 0 / 436.3 MB, free: 2.355 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007572/0.2568, allocations: 461.5 kB / 436.7 MB, free: 1.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.2568, allocations: 12.03 kB / 436.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.974e-05/0.2568, allocations: 12.62 kB / 436.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.546e-05/0.2569, allocations: 58.72 kB / 436.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002257/0.2571, allocations: 44.73 kB / 436.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003059/0.2574, allocations: 182.9 kB / 437 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.2575, allocations: 12.81 kB / 437.1 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.326e-05/0.2575, allocations: 28.33 kB / 437.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003963/0.2579, allocations: 216.9 kB / 437.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.2579, allocations: 4 kB / 437.3 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.976e-05/0.2579, allocations: 8 kB / 437.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.2579, allocations: 4 kB / 437.3 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003239/0.2583, allocations: 159.8 kB / 437.5 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.2594, allocations: 0.7511 MB / 438.2 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003926/0.2598, allocations: 189 kB / 438.4 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002319/0.26, allocations: 93.84 kB / 438.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.26, allocations: 11.88 kB / 438.5 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.2601, allocations: 34.56 kB / 438.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.2601, allocations: 0 / 438.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.00149/0.2616, allocations: 0.7231 MB / 439.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.2616, allocations: 81.11 kB / 439.3 MB, free: 15.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001676/0.2618, allocations: 183.2 kB / 439.5 MB, free: 14.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.662e-05/0.2618, allocations: 37.7 kB / 439.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.239e-05/0.2619, allocations: 136.5 kB / 439.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.712e-05/0.262, allocations: 107 kB / 439.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.699e-05/0.2621, allocations: 49.7 kB / 439.8 MB, free: 14.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.2622, allocations: 326.8 kB / 440.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.2623, allocations: 67.95 kB / 440.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001941/0.2625, allocations: 108.2 kB / 440.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003277/0.2629, allocations: 186.9 kB / 440.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.2629, allocations: 0 / 440.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004295/0.2633, allocations: 245.3 kB / 440.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.2633, allocations: 4 kB / 440.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.2633, allocations: 4 kB / 440.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.2633, allocations: 0 / 440.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002474/0.2636, allocations: 63.91 kB / 440.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.206e-06/0.2636, allocations: 4 kB / 440.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.2637, allocations: 11.98 kB / 440.8 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.646e-05/0.2637, allocations: 12.09 kB / 440.9 MB, free: 13.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (32): * Single equations (assignments): 32 * 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.0001259/0.2638, allocations: 141.7 kB / 441 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.211e-05/0.2639, allocations: 23.86 kB / 441 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.233e-05/0.264, allocations: 29.8 kB / 441 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.264, allocations: 4 kB / 441 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.264, allocations: 0 / 441 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.264, allocations: 0 / 441 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008347/0.2648, allocations: 0.5614 MB / 441.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.2648, allocations: 4 kB / 441.6 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002633/0.2651, allocations: 63.89 kB / 441.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.2651, allocations: 4 kB / 441.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.2651, allocations: 8 kB / 441.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.693e-06/0.2651, allocations: 7.938 kB / 441.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.2651, allocations: 3.984 kB / 441.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006539/0.2658, allocations: 0.49 MB / 442.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.792e-05/0.2658, allocations: 11.91 kB / 442.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.2658, allocations: 16.03 kB / 442.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.266, allocations: 11.94 kB / 442.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.266, allocations: 15.97 kB / 442.2 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.266, allocations: 12 kB / 442.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001063/0.2662, allocations: 136.4 kB / 442.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2662, allocations: 0 / 442.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003397/0.2665, allocations: 48 kB / 442.4 MB, free: 11.81 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.v) * 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 (26): * Single equations (assignments): 26 * 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.0009474/0.2674, allocations: 1.038 MB / 443.5 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003777/0.2678, allocations: 166.5 kB / 443.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.2678, allocations: 0 / 443.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.268, allocations: 91.83 kB / 443.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004697/0.2685, allocations: 41.05 kB / 443.8 MB, free: 10.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003285/0.2718, allocations: 2.657 MB / 446.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.2721, allocations: 0.7518 MB / 447.2 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.336e-05/0.2722, allocations: 21.95 kB / 447.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.2723, allocations: 71.41 kB / 447.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2723, allocations: 0 / 447.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02565/0.298, allocations: 4.765 MB / 452 MB, free: 2.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/10.97, allocations: 3.984 kB / 452 MB, free: 2.156 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Oscillator.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: 13.305830347992014]