Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001259/0.001259, allocations: 118.3 kB / 19.17 MB, free: 3.898 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.001473/0.001473, allocations: 205.7 kB / 22.12 MB, free: 0.9609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.355/1.355, allocations: 207.6 MB / 232.5 MB, free: 11.52 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 57.02 kB / 343 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.252/0.2537, allocations: 49.13 MB / 392.1 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003105/0.2569, allocations: 2.412 MB / 394.5 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008974/0.2577, allocations: 0.6255 MB / 395.1 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.2579, allocations: 8.531 kB / 395.2 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001427/0.258, allocations: 33.42 kB / 395.2 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.2581, allocations: 76.19 kB / 395.3 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002094/0.2584, allocations: 59.08 kB / 395.3 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002636/0.2586, allocations: 260.7 kB / 395.6 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.2588, allocations: 74 kB / 395.6 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001354/0.2589, allocations: 103.7 kB / 395.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00014/0.2591, allocations: 105 kB / 395.8 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.524e-05/0.2591, allocations: 19.69 kB / 395.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.694e-05/0.2591, allocations: 29.22 kB / 395.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.834e-05/0.2592, allocations: 45.69 kB / 395.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.436e-05/0.2593, allocations: 120.9 kB / 396.1 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003/0.2596, allocations: 249.8 kB / 396.3 MB, free: 5.973 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2596, allocations: 0 / 396.3 MB, free: 5.973 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2596, allocations: 1.125 kB / 396.3 MB, free: 5.973 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.2596, allocations: 0 / 396.3 MB, free: 5.973 MB / 318.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.000668/0.2602, allocations: 0.5262 MB / 396.8 MB, free: 5.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.2603, allocations: 9.75 kB / 396.8 MB, free: 5.508 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.027e-05/0.2603, allocations: 5.938 kB / 396.8 MB, free: 5.508 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.232e-05/0.2603, allocations: 58.23 kB / 396.9 MB, free: 5.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.902e-05/0.2604, allocations: 29.97 kB / 396.9 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.2606, allocations: 240 kB / 397.2 MB, free: 5.199 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.515e-05/0.2607, allocations: 18.12 kB / 397.2 MB, free: 5.191 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.225e-05/0.2607, allocations: 24.62 kB / 397.2 MB, free: 5.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004006/0.2611, allocations: 217.2 kB / 397.4 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.2611, allocations: 5.047 kB / 397.4 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.2611, allocations: 6.438 kB / 397.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.575e-06/0.2611, allocations: 4.188 kB / 397.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003065/0.2614, allocations: 148.2 kB / 397.6 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009896/0.2624, allocations: 0.7831 MB / 398.4 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003863/0.2628, allocations: 191.2 kB / 398.5 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.263, allocations: 97.84 kB / 398.6 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.2631, allocations: 6.5 kB / 398.6 MB, free: 4.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.823e-05/0.2631, allocations: 38.3 kB / 398.7 MB, free: 4.227 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.563e-06/0.2631, allocations: 3.938 kB / 398.7 MB, free: 4.223 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.001521/0.2646, allocations: 0.8625 MB / 399.6 MB, free: 3.574 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/0.2646, allocations: 85.58 kB / 399.6 MB, free: 3.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.2648, allocations: 183.2 kB / 399.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.5e-05/0.2648, allocations: 33.7 kB / 399.8 MB, free: 3.309 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.347e-05/0.2649, allocations: 142.7 kB / 400 MB, free: 3.184 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.501e-05/0.2649, allocations: 94.05 kB / 400.1 MB, free: 3.109 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.133e-05/0.265, allocations: 47.16 kB / 400.1 MB, free: 3.078 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.569e-05/0.2651, allocations: 333.7 kB / 400.5 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.2652, allocations: 60.47 kB / 400.5 MB, free: 2.738 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.2654, allocations: 119.6 kB / 400.6 MB, free: 2.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003047/0.2657, allocations: 195.3 kB / 400.8 MB, free: 2.547 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.2657, allocations: 0 / 400.8 MB, free: 2.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004042/0.2661, allocations: 245.4 kB / 401.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.2661, allocations: 6.375 kB / 401.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.2661, allocations: 2.469 kB / 401.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.2661, allocations: 2.281 kB / 401.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002566/0.2664, allocations: 65.44 kB / 401.1 MB, free: 2.426 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.2664, allocations: 1.344 kB / 401.1 MB, free: 2.426 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.2665, allocations: 11.12 kB / 401.1 MB, free: 2.422 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.2665, allocations: 11.62 kB / 401.2 MB, free: 2.418 MB / 318.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 9.759e-05/0.2666, allocations: 139.8 kB / 401.3 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.268e-05/0.2667, allocations: 26.36 kB / 401.3 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.397e-05/0.2667, allocations: 28.42 kB / 401.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.2667, allocations: 2.438 kB / 401.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.2667, allocations: 1.969 kB / 401.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.2668, allocations: 2.578 kB / 401.4 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007088/0.2675, allocations: 0.5815 MB / 401.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.2675, allocations: 2.109 kB / 401.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/0.2677, allocations: 60.83 kB / 402 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.2677, allocations: 2.312 kB / 402 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.687e-05/0.2677, allocations: 8.188 kB / 402 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.2678, allocations: 6.094 kB / 402 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.2678, allocations: 5.531 kB / 402 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005532/0.2683, allocations: 0.4887 MB / 402.5 MB, free: 1.441 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.567e-05/0.2683, allocations: 96.7 kB / 402.6 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.211e-05/0.2684, allocations: 7.875 kB / 402.6 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001794/0.2686, allocations: 13.72 kB / 402.6 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.139e-05/0.2686, allocations: 23.52 kB / 402.6 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.2686, allocations: 6.344 kB / 402.7 MB, free: 1.316 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.052e-05/0.2687, allocations: 133.8 kB / 402.8 MB, free: 1.223 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2687, allocations: 1.188 kB / 402.8 MB, free: 1.223 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003347/0.269, allocations: 53.66 kB / 402.8 MB, free: 1.211 MB / 318.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.0007283/0.2698, allocations: 1.031 MB / 403.9 MB, free: 340 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003995/0.2702, allocations: 167.9 kB / 404 MB, free: 292 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2702, allocations: 1.125 kB / 404 MB, free: 292 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001733/0.2703, allocations: 86.78 kB / 404.1 MB, free: 268 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004796/0.2708, allocations: 50.86 kB / 404.2 MB, free: 240 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003348/0.2742, allocations: 2.639 MB / 406.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004067/0.2746, allocations: 0.7485 MB / 407.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001047/0.2747, allocations: 24.73 kB / 407.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.2748, allocations: 70.14 kB / 407.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of SimCode: time 9.41e-07/0.2748, allocations: 0 / 407.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02302/0.2978, allocations: 4.487 MB / 412.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.91/8.208, allocations: 15.28 kB / 412.1 MB, free: 11.96 MB / 334.1 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.freqHz,sine1.offset,sine1.phase,sine1.startTime,sine1.y,sine2.amplitude,sine2.freqHz,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.471325731952675]