Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.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.001283/0.001283, allocations: 121 kB / 18.5 MB, free: 4.574 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.001451/0.001451, allocations: 209.5 kB / 21.45 MB, free: 1.633 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.454/1.454, allocations: 230.6 MB / 254.8 MB, free: 15.09 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: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 59.91 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09644/0.09797, allocations: 53.32 MB / 427 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003865/0.1018, allocations: 2.447 MB / 429.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.1031, allocations: 0.6699 MB / 430.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000203/0.1033, allocations: 4 kB / 430.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.1035, allocations: 35.59 kB / 430.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002017/0.1037, allocations: 71.34 kB / 430.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003195/0.104, allocations: 67.84 kB / 430.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003867/0.1044, allocations: 262.9 kB / 430.6 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.1046, allocations: 69.36 kB / 430.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002442/0.1049, allocations: 123.5 kB / 430.7 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001591/0.105, allocations: 103.5 kB / 430.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.453e-05/0.105, allocations: 20 kB / 430.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.804e-05/0.1051, allocations: 24 kB / 430.9 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.782e-05/0.1052, allocations: 51.77 kB / 430.9 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001257/0.1053, allocations: 123.4 kB / 431.1 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003477/0.1056, allocations: 254.9 kB / 431.3 MB, free: 472 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.1056, allocations: 0 / 431.3 MB, free: 472 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1056, allocations: 3.938 kB / 431.3 MB, free: 468 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1057, allocations: 4 kB / 431.3 MB, free: 464 kB / 350.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.1814/0.2871, allocations: 0.5274 MB / 431.8 MB, free: 11.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.2871, allocations: 7.906 kB / 431.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.04e-05/0.2872, allocations: 6.344 kB / 431.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.877e-05/0.2872, allocations: 58.62 kB / 431.9 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00027/0.2875, allocations: 46.7 kB / 432 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.2878, allocations: 238 kB / 432.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.69e-05/0.2878, allocations: 15.94 kB / 432.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.54e-05/0.2878, allocations: 29.59 kB / 432.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003993/0.2882, allocations: 219.3 kB / 432.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.2883, allocations: 1.406 kB / 432.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.2883, allocations: 6.312 kB / 432.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.2883, allocations: 7.188 kB / 432.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003054/0.2886, allocations: 152.3 kB / 432.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009261/0.2895, allocations: 0.7828 MB / 433.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003581/0.2899, allocations: 192.9 kB / 433.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002062/0.2901, allocations: 96.69 kB / 433.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.2901, allocations: 6.25 kB / 433.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.723e-05/0.2901, allocations: 39.66 kB / 433.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.352e-06/0.2901, allocations: 0 / 433.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001331/0.2915, allocations: 0.8755 MB / 434.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.2915, allocations: 82.77 kB / 434.7 MB, free: 9.691 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001204/0.2916, allocations: 175.9 kB / 434.9 MB, free: 9.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.2916, allocations: 30.23 kB / 434.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.117e-05/0.2917, allocations: 144.7 kB / 435 MB, free: 9.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.491e-05/0.2917, allocations: 103.7 kB / 435.1 MB, free: 9.391 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.272e-05/0.2918, allocations: 49.41 kB / 435.2 MB, free: 9.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.317e-05/0.2918, allocations: 332.5 kB / 435.5 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.292, allocations: 62.75 kB / 435.6 MB, free: 9.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.2921, allocations: 113.1 kB / 435.7 MB, free: 9.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002777/0.2924, allocations: 192.3 kB / 435.9 MB, free: 8.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2924, allocations: 1.125 kB / 435.9 MB, free: 8.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003723/0.2928, allocations: 254 kB / 436.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.2928, allocations: 5.812 kB / 436.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2928, allocations: 1.375 kB / 436.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.2928, allocations: 5.719 kB / 436.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002365/0.293, allocations: 61.61 kB / 436.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.293, allocations: 1.344 kB / 436.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.2931, allocations: 10.08 kB / 436.2 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.2932, allocations: 11.56 kB / 436.2 MB, free: 8.852 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 7.717e-05/0.2932, allocations: 145.7 kB / 436.3 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.648e-05/0.2933, allocations: 22.55 kB / 436.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.845e-05/0.2933, allocations: 32.34 kB / 436.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.2933, allocations: 3.312 kB / 436.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2934, allocations: 0 / 436.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.2934, allocations: 1.156 kB / 436.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006369/0.294, allocations: 0.5888 MB / 437 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.294, allocations: 1.125 kB / 437 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002548/0.2943, allocations: 55.06 kB / 437 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.2943, allocations: 6.547 kB / 437.1 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.2943, allocations: 7.719 kB / 437.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2943, allocations: 1.125 kB / 437.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.2943, allocations: 5.5 kB / 437.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005206/0.2948, allocations: 494.3 kB / 437.5 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.718e-05/0.2948, allocations: 94.95 kB / 437.6 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3e-05/0.2949, allocations: 7.031 kB / 437.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.295, allocations: 13.23 kB / 437.7 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.511e-05/0.2951, allocations: 29.86 kB / 437.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.2951, allocations: 6.656 kB / 437.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.416e-05/0.2952, allocations: 135.6 kB / 437.8 MB, free: 7.684 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2952, allocations: 0 / 437.8 MB, free: 7.684 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003199/0.2955, allocations: 51 kB / 437.9 MB, free: 7.676 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.0006612/0.2962, allocations: 1.032 MB / 438.9 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003693/0.2965, allocations: 184.1 kB / 439.1 MB, free: 6.762 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.2965, allocations: 0 / 439.1 MB, free: 6.762 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.2967, allocations: 91.77 kB / 439.2 MB, free: 6.738 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004593/0.2971, allocations: 37.42 kB / 439.2 MB, free: 6.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002705/0.2998, allocations: 2.65 MB / 441.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001732/0.3, allocations: 0.7474 MB / 442.6 MB, free: 4.074 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.37e-05/0.3001, allocations: 22.31 kB / 442.6 MB, free: 4.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.3002, allocations: 71.05 kB / 442.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3002, allocations: 4 kB / 442.7 MB, free: 4.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02378/0.324, allocations: 4.52 MB / 447.2 MB, free: 3.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.963/8.287, allocations: 15.38 kB / 447.2 MB, free: 3.418 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,damper1.s_rel,damper1.v_rel,mass1.s,mass1.v Variables in the result:damper1.d,damper1.f,damper1.flange_a.f,damper1.flange_a.s,damper1.flange_b.f,damper1.flange_b.s,damper1.lossPower,damper1.s_nominal,damper1.s_rel,damper1.stateSelect,damper1.useHeatPort,damper1.v_rel,der(damper1.s_rel),der(damper1.v_rel),der(der(mass2.flange_b.s)),der(mass1.s),der(mass1.v),der(mass2.flange_b.s),der(mass2.s),der(mass2.v),fixed1.flange.f,fixed1.flange.s,fixed1.s0,fixed2.flange.f,fixed2.flange.s,fixed2.s0,force1.f,force1.flange.f,force1.flange.s,force1.s,force1.useSupport,force2.f,force2.flange.f,force2.flange.s,force2.s,force2.useSupport,mass1.L,mass1.a,mass1.flange_a.f,mass1.flange_a.s,mass1.flange_b.f,mass1.flange_b.s,mass1.m,mass1.s,mass1.stateSelect,mass1.v,mass2.L,mass2.a,mass2.flange_a.f,mass2.flange_a.s,mass2.flange_b.f,mass2.flange_b.s,mass2.m,mass2.s,mass2.stateSelect,mass2.v,sine1.amplitude,sine1.continuous,sine1.f,sine1.offset,sine1.phase,sine1.startTime,sine1.y,sine2.amplitude,sine2.continuous,sine2.f,sine2.offset,sine2.phase,sine2.startTime,sine2.y,spring1.c,spring1.f,spring1.flange_a.f,spring1.flange_a.s,spring1.flange_b.f,spring1.flange_b.s,spring1.s_rel,spring1.s_rel0,spring2.c,spring2.f,spring2.flange_a.f,spring2.flange_a.s,spring2.flange_b.f,spring2.flange_b.s,spring2.s_rel,spring2.s_rel0,time [Calling sys.exit(0), Time elapsed: 10.66222217399627]