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.001056/0.001056, allocations: 88.3 kB / 16.65 MB, free: 6.535 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.001156/0.001156, allocations: 173.8 kB / 17.56 MB, free: 6.184 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.447/1.447, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003811/0.0003812, allocations: 4 kB / 301.5 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09586/0.09626, allocations: 50.42 MB / 351.9 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.002713/0.09901, allocations: 2.104 MB / 354 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005682/0.09961, allocations: 231.1 kB / 354.3 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.09979, allocations: 11.94 kB / 354.3 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001541/0.09996, allocations: 31.77 kB / 354.3 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001984/0.1002, allocations: 75.39 kB / 354.4 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001764/0.1003, allocations: 47.89 kB / 354.4 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00031/0.1007, allocations: 274.7 kB / 354.7 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002914/0.101, allocations: 86.19 kB / 354.8 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.1011, allocations: 95.58 kB / 354.9 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001504/0.1013, allocations: 103.5 kB / 355 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.439e-05/0.1013, allocations: 12 kB / 355 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.909e-05/0.1014, allocations: 12 kB / 355 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.217e-05/0.1014, allocations: 43.78 kB / 355 MB, free: 492 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.1015, allocations: 149.1 kB / 355.2 MB, free: 336 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002595/0.1018, allocations: 275.1 kB / 355.5 MB, free: 60 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1018, allocations: 4 kB / 355.5 MB, free: 56 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1018, allocations: 0 / 355.5 MB, free: 56 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.1018, allocations: 0 / 355.5 MB, free: 56 kB / 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.0006993/0.1025, allocations: 0.504 MB / 356 MB, free: 15.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1026, allocations: 8.031 kB / 356 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.974e-05/0.1027, allocations: 54.73 kB / 356 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.596e-05/0.1027, allocations: 36.55 kB / 356.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.1031, allocations: 241.5 kB / 356.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.1031, allocations: 16.94 kB / 356.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.847e-05/0.1032, allocations: 28.36 kB / 356.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003853/0.1035, allocations: 248 kB / 356.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.1036, allocations: 7.844 kB / 356.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.671e-05/0.1036, allocations: 15.98 kB / 356.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.1036, allocations: 4 kB / 356.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002748/0.1039, allocations: 159.8 kB / 356.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001119/0.105, allocations: 0.7969 MB / 357.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004859/0.1055, allocations: 291.8 kB / 357.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.1058, allocations: 126.5 kB / 358 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.931e-05/0.1058, allocations: 7.938 kB / 358 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/0.1058, allocations: 42.56 kB / 358 MB, free: 13.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.673e-06/0.1058, allocations: 0 / 358 MB, free: 13.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002673/0.1085, allocations: 1.954 MB / 360 MB, free: 11.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.021e-05/0.1086, allocations: 106.8 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001754/0.1088, allocations: 191.2 kB / 360.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.698e-05/0.1088, allocations: 33.7 kB / 360.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001391/0.109, allocations: 140.7 kB / 360.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.1091, allocations: 161.6 kB / 360.6 MB, free: 10.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.215e-05/0.1092, allocations: 41.7 kB / 360.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1093, allocations: 342.8 kB / 361 MB, free: 9.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.1095, allocations: 84.84 kB / 361.1 MB, free: 9.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.1097, allocations: 162.3 kB / 361.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/0.11, allocations: 263.9 kB / 361.5 MB, free: 9.461 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.1101, allocations: 4 kB / 361.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0004932/0.1106, allocations: 349.1 kB / 361.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.1106, allocations: 14.47 kB / 361.8 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.1106, allocations: 0 / 361.8 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.1106, allocations: 4 kB / 361.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003676/0.111, allocations: 95.89 kB / 361.9 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.111, allocations: 4 kB / 361.9 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.1111, allocations: 12 kB / 361.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.836e-05/0.1112, allocations: 8 kB / 362 MB, free: 8.977 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.0001397/0.1113, allocations: 157.7 kB / 362.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.382e-05/0.1114, allocations: 31.66 kB / 362.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.333e-05/0.1115, allocations: 37.86 kB / 362.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1115, allocations: 8.938 kB / 362.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.1115, allocations: 0 / 362.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.1115, allocations: 3.984 kB / 362.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00139/0.1129, allocations: 1.062 MB / 363.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.113, allocations: 8.078 kB / 363.3 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003626/0.1133, allocations: 99.81 kB / 363.4 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.944e-06/0.1133, allocations: 7.938 kB / 363.4 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.1134, allocations: 16 kB / 363.4 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.1134, allocations: 4 kB / 363.4 MB, free: 7.461 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.1134, allocations: 7.938 kB / 363.4 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007168/0.1141, allocations: 0.7328 MB / 364.1 MB, free: 6.676 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.514e-05/0.1142, allocations: 104.7 kB / 364.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.115e-05/0.1142, allocations: 16.06 kB / 364.2 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.1145, allocations: 8 kB / 364.2 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.446e-05/0.1145, allocations: 27.95 kB / 364.3 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.849e-05/0.1145, allocations: 20 kB / 364.3 MB, free: 6.484 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001034/0.1146, allocations: 140.4 kB / 364.4 MB, free: 6.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1146, allocations: 0 / 364.4 MB, free: 6.348 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004752/0.1151, allocations: 72 kB / 364.5 MB, free: 6.277 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.0009873/0.1161, allocations: 1.259 MB / 365.8 MB, free: 4.953 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004111/0.1165, allocations: 266.6 kB / 366 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.1166, allocations: 0 / 366 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.1167, allocations: 144.4 kB / 366.2 MB, free: 4.555 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008024/0.1176, allocations: 68.16 kB / 366.2 MB, free: 4.488 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003898/0.1215, allocations: 3.496 MB / 369.7 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003586/0.1218, allocations: 0.7763 MB / 370.5 MB, free: 8 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.1558/0.2777, allocations: 29.34 kB / 370.5 MB, free: 23.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.2779, allocations: 94.97 kB / 370.6 MB, free: 23.6 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2779, allocations: 1.469 kB / 370.6 MB, free: 23.6 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4896/0.7675, allocations: 5.49 MB / 376.1 MB, free: 23.33 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001733/0.7678, allocations: 199.5 kB / 376.3 MB, free: 23.08 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.193/2.961, allocations: 3 kB / 376.3 MB, free: 23.08 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