Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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.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_3_2_3_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_3_2_3_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.001376/0.001376, allocations: 112.7 kB / 17.28 MB, free: 6.199 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.001544/0.001544, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.324/1.324, allocations: 205.1 MB / 224.1 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 47.92 kB / 280.2 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07635/0.07761, allocations: 46.62 MB / 326.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.003178/0.08082, allocations: 2.45 MB / 329.3 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005278/0.08137, allocations: 235.1 kB / 329.6 MB, free: 2.004 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001824/0.08157, allocations: 8 kB / 329.6 MB, free: 1.996 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001538/0.08175, allocations: 31.77 kB / 329.6 MB, free: 1.965 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001863/0.08195, allocations: 71.39 kB / 329.7 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001522/0.08211, allocations: 47.95 kB / 329.7 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00029/0.08241, allocations: 298.6 kB / 330 MB, free: 1.555 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.0826, allocations: 97.95 kB / 330.1 MB, free: 1.461 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001171/0.08272, allocations: 103.6 kB / 330.2 MB, free: 1.359 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.08287, allocations: 123.5 kB / 330.3 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.442e-05/0.08291, allocations: 24 kB / 330.3 MB, free: 1.215 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.986e-05/0.08295, allocations: 24 kB / 330.4 MB, free: 1.191 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 4.048e-05/0.083, allocations: 47.83 kB / 330.4 MB, free: 1.145 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.08311, allocations: 135.3 kB / 330.5 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002321/0.08335, allocations: 282.9 kB / 330.8 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.08336, allocations: 0 / 330.8 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.083e-06/0.08337, allocations: 4 kB / 330.8 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.08338, allocations: 0 / 330.8 MB, free: 0.7305 MB / 270.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.0006633/0.08405, allocations: 0.5458 MB / 331.4 MB, free: 136 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.08409, allocations: 12.03 kB / 331.4 MB, free: 124 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.818e-05/0.08415, allocations: 62.66 kB / 331.4 MB, free: 52 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.817e-05/0.08421, allocations: 24.66 kB / 331.5 MB, free: 28 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002272/0.08444, allocations: 252.5 kB / 331.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.08446, allocations: 16.94 kB / 331.7 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.839e-05/0.08451, allocations: 28.38 kB / 331.8 MB, free: 15.7 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.08486, allocations: 240 kB / 332 MB, free: 15.45 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.08489, allocations: 11.84 kB / 332 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.97e-05/0.08492, allocations: 8 kB / 332 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.08493, allocations: 8 kB / 332 MB, free: 15.42 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002413/0.08518, allocations: 155.8 kB / 332.2 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009123/0.0861, allocations: 0.8009 MB / 333 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004153/0.08653, allocations: 291.8 kB / 333.3 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002102/0.08675, allocations: 146.4 kB / 333.4 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/0.08677, allocations: 4 kB / 333.4 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.0868, allocations: 38.56 kB / 333.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of pre-optimization done (n=33): time 1.422e-06/0.08681, allocations: 0 / 333.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.002272/0.08908, allocations: 1.938 MB / 335.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.08915, allocations: 114.8 kB / 335.5 MB, free: 11.55 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.0893, allocations: 190.5 kB / 335.7 MB, free: 11.35 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.44e-05/0.08933, allocations: 33.8 kB / 335.7 MB, free: 11.31 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.576e-05/0.08942, allocations: 144.6 kB / 335.9 MB, free: 11.16 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.08953, allocations: 157.7 kB / 336 MB, free: 11.01 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.718e-05/0.08962, allocations: 74.12 kB / 336.1 MB, free: 10.93 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.809e-05/0.08972, allocations: 334.8 kB / 336.4 MB, free: 10.59 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.08987, allocations: 92.78 kB / 336.5 MB, free: 10.5 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.09004, allocations: 162.3 kB / 336.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003229/0.09037, allocations: 278.1 kB / 336.9 MB, free: 10.03 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.09038, allocations: 4 kB / 336.9 MB, free: 10.02 MB / 286.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0004289/0.09081, allocations: 344.9 kB / 337.3 MB, free: 9.68 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.09083, allocations: 11.94 kB / 337.3 MB, free: 9.668 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.09084, allocations: 0 / 337.3 MB, free: 9.668 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.09086, allocations: 4 kB / 337.3 MB, free: 9.664 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/0.09116, allocations: 91.91 kB / 337.4 MB, free: 9.574 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.09117, allocations: 3.938 kB / 337.4 MB, free: 9.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.965e-05/0.09128, allocations: 8 kB / 337.4 MB, free: 9.562 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.955e-05/0.09131, allocations: 20.08 kB / 337.4 MB, free: 9.543 MB / 286.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.0001153/0.09143, allocations: 149.8 kB / 337.5 MB, free: 9.387 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.56e-05/0.09151, allocations: 31.66 kB / 337.6 MB, free: 9.355 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.32e-05/0.09158, allocations: 33.88 kB / 337.6 MB, free: 9.324 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.09159, allocations: 4 kB / 337.6 MB, free: 9.32 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.0916, allocations: 7.984 kB / 337.6 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.09161, allocations: 0 / 337.6 MB, free: 9.312 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001171/0.09278, allocations: 1.058 MB / 338.7 MB, free: 8.168 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.0928, allocations: 4 kB / 338.7 MB, free: 8.164 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003431/0.09315, allocations: 87.89 kB / 338.8 MB, free: 8.078 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/0.09317, allocations: 7.938 kB / 338.8 MB, free: 8.07 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.388e-05/0.0932, allocations: 16 kB / 338.8 MB, free: 8.055 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.09321, allocations: 4.281 kB / 338.8 MB, free: 8.051 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.09322, allocations: 11.94 kB / 338.8 MB, free: 8.039 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006557/0.09388, allocations: 0.7247 MB / 339.5 MB, free: 7.273 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.873e-05/0.09394, allocations: 104.8 kB / 339.6 MB, free: 7.152 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.09399, allocations: 12.05 kB / 339.7 MB, free: 7.141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.09421, allocations: 12 kB / 339.7 MB, free: 7.129 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.09426, allocations: 35.91 kB / 339.7 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.09428, allocations: 12.09 kB / 339.7 MB, free: 7.082 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001025/0.09439, allocations: 148.1 kB / 339.9 MB, free: 6.938 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.0944, allocations: 0 / 339.9 MB, free: 6.938 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003948/0.0948, allocations: 72 kB / 339.9 MB, free: 6.867 MB / 286.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.000875/0.09568, allocations: 1.263 MB / 341.2 MB, free: 5.547 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004059/0.09609, allocations: 291.8 kB / 341.5 MB, free: 5.266 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.0961, allocations: 0 / 341.5 MB, free: 5.266 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001725/0.09628, allocations: 148.1 kB / 341.6 MB, free: 5.121 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006466/0.09694, allocations: 62 kB / 341.7 MB, free: 5.062 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003351/0.1003, allocations: 3.395 MB / 345.1 MB, free: 1.484 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/0.1006, allocations: 0.772 MB / 345.8 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001154/0.1007, allocations: 34.97 kB / 345.9 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.1008, allocations: 91.59 kB / 346 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1009, allocations: 3.938 kB / 346 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3166/0.4175, allocations: 5.73 MB / 351.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/0.4177, allocations: 196.7 kB / 351.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.965/2.383, allocations: 0 / 351.9 MB, free: 10.56 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Damper_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Damper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Damper/Damper.csv","../files/Modelica_3.2.3_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