Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.Damper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001196/0.001196, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.4 MB / 246.3 MB, free: 9.027 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 60.59 kB / 306.3 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07931/0.08047, allocations: 50.54 MB / 356.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.003445/0.08394, allocations: 2.482 MB / 359.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005141/0.08448, allocations: 243.1 kB / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.08466, allocations: 4 kB / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.08483, allocations: 27.77 kB / 359.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001736/0.08501, allocations: 75.41 kB / 359.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001555/0.08518, allocations: 47.89 kB / 359.8 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002808/0.08547, allocations: 278.7 kB / 360 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.08565, allocations: 91.31 kB / 360.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.08576, allocations: 99.58 kB / 360.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001344/0.08591, allocations: 115.4 kB / 360.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.81e-05/0.08595, allocations: 16 kB / 360.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.06e-05/0.086, allocations: 16 kB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.344e-05/0.08605, allocations: 43.84 kB / 360.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.08616, allocations: 127.3 kB / 360.5 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002323/0.0864, allocations: 279.2 kB / 360.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.08641, allocations: 0 / 360.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.08642, allocations: 0 / 360.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.08643, allocations: 0 / 360.8 MB, free: 10.24 MB / 302.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.000767/0.0872, allocations: 0.5403 MB / 361.3 MB, free: 9.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.08725, allocations: 8.031 kB / 361.3 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.531e-05/0.08731, allocations: 58.73 kB / 361.4 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.795e-05/0.08737, allocations: 32.56 kB / 361.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002271/0.08761, allocations: 248.5 kB / 361.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.735e-05/0.08763, allocations: 20.94 kB / 361.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.513e-05/0.08768, allocations: 28.28 kB / 361.7 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003519/0.08804, allocations: 240 kB / 362 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.08806, allocations: 3.938 kB / 362 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.08809, allocations: 12 kB / 362 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.08811, allocations: 4 kB / 362 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.08836, allocations: 155.8 kB / 362.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001033/0.0894, allocations: 0.8084 MB / 362.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004393/0.08985, allocations: 283.7 kB / 363.2 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/0.09008, allocations: 134.5 kB / 363.3 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.0901, allocations: 4 kB / 363.4 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.927e-05/0.09013, allocations: 38.56 kB / 363.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.442e-06/0.09014, allocations: 3.938 kB / 363.4 MB, free: 7.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002585/0.09273, allocations: 1.949 MB / 365.3 MB, free: 5.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.07e-05/0.09279, allocations: 110.8 kB / 365.5 MB, free: 5.086 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.09295, allocations: 190.6 kB / 365.6 MB, free: 4.883 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.09298, allocations: 29.7 kB / 365.7 MB, free: 4.848 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.221e-05/0.09306, allocations: 136.8 kB / 365.8 MB, free: 4.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.782e-05/0.09316, allocations: 165.6 kB / 366 MB, free: 4.543 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.731e-05/0.09326, allocations: 70.14 kB / 366 MB, free: 4.469 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.09337, allocations: 342.8 kB / 366.4 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.09351, allocations: 92.83 kB / 366.5 MB, free: 4.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.09369, allocations: 162.3 kB / 366.6 MB, free: 3.852 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003346/0.09403, allocations: 270.1 kB / 366.9 MB, free: 3.566 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.09404, allocations: 4 kB / 366.9 MB, free: 3.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0005279/0.09458, allocations: 350.5 kB / 367.2 MB, free: 3.219 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.0946, allocations: 11.94 kB / 367.2 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.09461, allocations: 0 / 367.2 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.09463, allocations: 4 kB / 367.2 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003065/0.09494, allocations: 91.89 kB / 367.3 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.09496, allocations: 7.938 kB / 367.3 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.09507, allocations: 12 kB / 367.3 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.02e-05/0.09509, allocations: 12.09 kB / 367.4 MB, free: 3.082 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.0001302/0.09523, allocations: 157.7 kB / 367.5 MB, free: 2.918 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.11e-05/0.09532, allocations: 28.59 kB / 367.5 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.143e-05/0.09538, allocations: 37.86 kB / 367.6 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.09539, allocations: 8 kB / 367.6 MB, free: 2.848 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.09541, allocations: 4 kB / 367.6 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.09542, allocations: 0 / 367.6 MB, free: 2.844 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0013/0.09672, allocations: 1.077 MB / 368.7 MB, free: 1.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.09674, allocations: 4 kB / 368.7 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003449/0.09709, allocations: 87.91 kB / 368.8 MB, free: 1.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.214e-06/0.0971, allocations: 7.938 kB / 368.8 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.364e-05/0.09713, allocations: 11.98 kB / 368.8 MB, free: 1.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.09714, allocations: 8.219 kB / 368.8 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.09715, allocations: 8 kB / 368.8 MB, free: 1.559 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006546/0.09781, allocations: 0.7095 MB / 369.5 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.462e-05/0.09788, allocations: 112.8 kB / 369.6 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.563e-05/0.09792, allocations: 8 kB / 369.6 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002505/0.09818, allocations: 12 kB / 369.6 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.551e-05/0.09823, allocations: 35.91 kB / 369.7 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.09825, allocations: 15.98 kB / 369.7 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.78e-05/0.09836, allocations: 144.8 kB / 369.8 MB, free: 480 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09836, allocations: 0 / 369.8 MB, free: 480 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003961/0.09876, allocations: 72 kB / 369.9 MB, free: 408 kB / 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.1307/0.2295, allocations: 1.264 MB / 371.2 MB, free: 18.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004332/0.2299, allocations: 265 kB / 371.4 MB, free: 18.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2299, allocations: 0 / 371.4 MB, free: 18.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001753/0.2301, allocations: 141.2 kB / 371.6 MB, free: 18.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008177/0.2309, allocations: 68.66 kB / 371.6 MB, free: 18.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003083/0.234, allocations: 3.376 MB / 375 MB, free: 16.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.2344, allocations: 0.768 MB / 375.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001301/0.2345, allocations: 39.77 kB / 375.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.2346, allocations: 90.48 kB / 375.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2346, allocations: 1.125 kB / 375.9 MB, free: 15.87 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1372/0.3718, allocations: 5.596 MB / 381.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002515/0.3721, allocations: 200.2 kB / 381.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.091/2.463, allocations: 4 kB / 381.7 MB, free: 15.11 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Damper_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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