Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 109.7 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 222.9 MB / 241.1 MB, free: 15.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001095, allocations: 49.11 kB / 300.1 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07526/0.07637, allocations: 49.45 MB / 349.5 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.003413/0.0798, allocations: 2.467 MB / 352 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005718/0.0804, allocations: 239.1 kB / 352.2 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.08059, allocations: 4 kB / 352.2 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001814/0.08078, allocations: 35.7 kB / 352.2 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000284/0.08115, allocations: 71.45 kB / 352.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000223/0.08139, allocations: 43.97 kB / 352.4 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004138/0.08182, allocations: 278.7 kB / 352.6 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002378/0.08207, allocations: 86.23 kB / 352.7 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001686/0.08225, allocations: 95.58 kB / 352.8 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/0.08248, allocations: 119.4 kB / 352.9 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.0826, allocations: 16 kB / 352.9 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.754e-05/0.08267, allocations: 16 kB / 353 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.314e-05/0.08272, allocations: 47.83 kB / 353 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001116/0.08283, allocations: 127.3 kB / 353.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000215/0.08305, allocations: 275.3 kB / 353.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.08306, allocations: 3.984 kB / 353.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.08307, allocations: 0 / 353.4 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.08308, allocations: 3.938 kB / 353.4 MB, free: 0.8242 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0006634/0.08375, allocations: 0.5342 MB / 353.9 MB, free: 244 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.08379, allocations: 8.031 kB / 353.9 MB, free: 236 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.387e-05/0.08385, allocations: 62.72 kB / 354 MB, free: 164 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.702e-05/0.0839, allocations: 32.56 kB / 354 MB, free: 132 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.08417, allocations: 244.5 kB / 354.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.0842, allocations: 20.94 kB / 354.3 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.778e-05/0.08424, allocations: 24.38 kB / 354.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003456/0.08459, allocations: 239.9 kB / 354.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.08462, allocations: 7.922 kB / 354.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/0.08464, allocations: 12 kB / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.08465, allocations: 4 kB / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002616/0.08492, allocations: 167.8 kB / 354.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.08601, allocations: 0.7968 MB / 355.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004914/0.08652, allocations: 303.6 kB / 355.8 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002279/0.08676, allocations: 130.5 kB / 356 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.08678, allocations: 4 kB / 356 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.08682, allocations: 38.56 kB / 356 MB, free: 14 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.663e-06/0.08683, allocations: 0 / 356 MB, free: 14 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002511/0.08934, allocations: 1.942 MB / 357.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.295e-05/0.08944, allocations: 110.8 kB / 358.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001536/0.0896, allocations: 191.2 kB / 358.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.08964, allocations: 33.7 kB / 358.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.22e-05/0.08972, allocations: 141.6 kB / 358.4 MB, free: 11.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.764e-05/0.08982, allocations: 161.7 kB / 358.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.861e-05/0.08992, allocations: 74.12 kB / 358.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.09002, allocations: 338.8 kB / 359 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.09021, allocations: 88.84 kB / 359.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.09039, allocations: 150.3 kB / 359.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003446/0.09075, allocations: 285.9 kB / 359.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.09076, allocations: 8 kB / 359.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0004901/0.09125, allocations: 336 kB / 359.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.09128, allocations: 16.02 kB / 359.8 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.09129, allocations: 3.938 kB / 359.8 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.09131, allocations: 4 kB / 359.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003102/0.09162, allocations: 95.84 kB / 359.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.09164, allocations: 4 kB / 359.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.09179, allocations: 12 kB / 360 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.814e-05/0.09183, allocations: 12 kB / 360 MB, free: 9.668 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (54): * Single equations (assignments): 54 * 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.0001268/0.09196, allocations: 157.7 kB / 360.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.251e-05/0.09205, allocations: 31.66 kB / 360.1 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.632e-05/0.09212, allocations: 33.88 kB / 360.2 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.09213, allocations: 8 kB / 360.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.09215, allocations: 0 / 360.2 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.09216, allocations: 3.984 kB / 360.2 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/0.09339, allocations: 1.062 MB / 361.3 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/0.09341, allocations: 4 kB / 361.3 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003937/0.09381, allocations: 87.89 kB / 361.3 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.024e-05/0.09383, allocations: 7.938 kB / 361.4 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.531e-05/0.09386, allocations: 12 kB / 361.4 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.09387, allocations: 7.938 kB / 361.4 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.09388, allocations: 4 kB / 361.4 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006963/0.09458, allocations: 0.7271 MB / 362.1 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.997e-05/0.09465, allocations: 108.7 kB / 362.2 MB, free: 7.273 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.416e-05/0.0947, allocations: 16.05 kB / 362.2 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000255/0.09496, allocations: 8 kB / 362.2 MB, free: 7.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.56e-05/0.09501, allocations: 31.91 kB / 362.3 MB, free: 7.219 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.09504, allocations: 20 kB / 362.3 MB, free: 7.199 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001346/0.09518, allocations: 140.4 kB / 362.4 MB, free: 7.062 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.09518, allocations: 0 / 362.4 MB, free: 7.062 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005016/0.09569, allocations: 72 kB / 362.5 MB, free: 6.992 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (springDamper3.s_rel,springDamper3.v_rel,damper2.s_rel,damper2.v_rel,damper1.s_rel,damper1.v_rel) * 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 (45): * Single equations (assignments): 45 * 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.0009549/0.09665, allocations: 1.267 MB / 363.8 MB, free: 5.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003949/0.09706, allocations: 259.8 kB / 364 MB, free: 5.406 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.09707, allocations: 3.938 kB / 364 MB, free: 5.402 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.09726, allocations: 139.8 kB / 364.2 MB, free: 5.266 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006812/0.09795, allocations: 72.36 kB / 364.2 MB, free: 5.199 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003526/0.1015, allocations: 3.396 MB / 367.6 MB, free: 1.617 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00031/0.1018, allocations: 0.7686 MB / 368.4 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001209/0.1019, allocations: 38.94 kB / 368.4 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.1021, allocations: 87.42 kB / 368.5 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.1021, allocations: 0 / 368.5 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5248/0.6269, allocations: 5.596 MB / 374.1 MB, free: 24.71 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001423/0.6271, allocations: 198.5 kB / 374.3 MB, free: 24.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.887/2.514, allocations: 1.656 kB / 374.3 MB, free: 24.45 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Damper/Damper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Damper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,damper1.s_rel,damper1.v_rel,damper2.s_rel,damper2.v_rel,springDamper3.s_rel,springDamper3.v_rel 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,damper2.d,damper2.f,damper2.flange_a.f,damper2.flange_a.s,damper2.flange_b.f,damper2.flange_b.s,damper2.lossPower,damper2.s_nominal,damper2.s_rel,damper2.stateSelect,damper2.useHeatPort,damper2.v_rel,der(damper1.s_rel),der(damper1.v_rel),der(damper2.flange_a.s),der(damper2.s_rel),der(damper2.v_rel),der(der(damper2.flange_a.s)),der(der(mass1.flange_b.s)),der(der(mass3.flange_b.s)),der(mass1.flange_b.s),der(mass1.s),der(mass1.v),der(mass2.s),der(mass2.v),der(mass3.flange_b.s),der(mass3.s),der(mass3.v),der(springDamper3.s_rel),der(springDamper3.v_rel),fixed1.flange.f,fixed1.flange.s,fixed1.s0,fixed2.flange.f,fixed2.flange.s,fixed2.s0,fixed3.flange.f,fixed3.flange.s,fixed3.s0,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,mass3.L,mass3.a,mass3.flange_a.f,mass3.flange_a.s,mass3.flange_b.f,mass3.flange_b.s,mass3.m,mass3.s,mass3.stateSelect,mass3.v,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,springDamper3.c,springDamper3.d,springDamper3.f,springDamper3.flange_a.f,springDamper3.flange_a.s,springDamper3.flange_b.f,springDamper3.flange_b.s,springDamper3.lossPower,springDamper3.s_nominal,springDamper3.s_rel,springDamper3.s_rel0,springDamper3.stateSelect,springDamper3.useHeatPort,springDamper3.v_rel,time