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.001393/0.001393, allocations: 115.9 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001723/0.001723, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.4 MB / 246.4 MB, free: 9.094 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 60.59 kB / 306.6 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09753/0.09868, allocations: 50.53 MB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.003532/0.1022, allocations: 2.487 MB / 359.6 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005431/0.1028, allocations: 235.1 kB / 359.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001761/0.103, allocations: 7.938 kB / 359.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001834/0.1032, allocations: 31.77 kB / 359.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002513/0.1035, allocations: 71.39 kB / 359.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001873/0.1037, allocations: 55.94 kB / 360 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003342/0.104, allocations: 286.7 kB / 360.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000199/0.1042, allocations: 101.7 kB / 360.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.1044, allocations: 99.66 kB / 360.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/0.1045, allocations: 123.4 kB / 360.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.867e-05/0.1046, allocations: 24 kB / 360.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.452e-05/0.1046, allocations: 24 kB / 360.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.875e-05/0.1047, allocations: 55.77 kB / 360.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.1048, allocations: 131.3 kB / 360.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002879/0.1051, allocations: 287.2 kB / 361.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1051, allocations: 0 / 361.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1051, allocations: 0 / 361.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.1051, allocations: 3.938 kB / 361.1 MB, free: 10.1 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.0007141/0.1058, allocations: 0.542 MB / 361.6 MB, free: 9.504 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.1059, allocations: 8.031 kB / 361.6 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.782e-05/0.106, allocations: 58.73 kB / 361.7 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.61e-05/0.106, allocations: 32.56 kB / 361.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002392/0.1063, allocations: 236.6 kB / 361.9 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.1063, allocations: 20.94 kB / 362 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.879e-05/0.1063, allocations: 28.28 kB / 362 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.1067, allocations: 248 kB / 362.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.1068, allocations: 3.938 kB / 362.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.331e-05/0.1068, allocations: 12 kB / 362.3 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.284e-06/0.1068, allocations: 4 kB / 362.3 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000295/0.1071, allocations: 159.8 kB / 362.4 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.1082, allocations: 0.8006 MB / 363.2 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004581/0.1086, allocations: 287.7 kB / 363.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.1089, allocations: 134.5 kB / 363.6 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.273e-05/0.1089, allocations: 4 kB / 363.6 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.1089, allocations: 42.5 kB / 363.7 MB, free: 7.285 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 2.665e-06/0.1089, allocations: 3.984 kB / 363.7 MB, free: 7.281 MB / 302.1 MB Notification: Performance of matching and sorting (n=45): time 0.002702/0.1116, allocations: 1.951 MB / 365.6 MB, free: 5.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.738e-05/0.1117, allocations: 106.8 kB / 365.7 MB, free: 4.941 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.1119, allocations: 190.6 kB / 365.9 MB, free: 4.738 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/0.112, allocations: 33.7 kB / 365.9 MB, free: 4.699 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.493e-05/0.1121, allocations: 132.8 kB / 366.1 MB, free: 4.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.1122, allocations: 165.6 kB / 366.2 MB, free: 4.398 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.1123, allocations: 74.14 kB / 366.3 MB, free: 4.32 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1124, allocations: 338.8 kB / 366.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.1126, allocations: 88.83 kB / 366.7 MB, free: 3.895 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.1128, allocations: 162.3 kB / 366.9 MB, free: 3.711 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003415/0.1131, allocations: 269.7 kB / 367.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1131, allocations: 4 kB / 367.2 MB, free: 3.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0004785/0.1136, allocations: 355.3 kB / 367.5 MB, free: 3.074 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.1137, allocations: 7.938 kB / 367.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.67e-05/0.1137, allocations: 4 kB / 367.5 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.1137, allocations: 0 / 367.5 MB, free: 3.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003112/0.114, allocations: 95.89 kB / 367.6 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.114, allocations: 4 kB / 367.6 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.1142, allocations: 16 kB / 367.6 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.1142, allocations: 8 kB / 367.6 MB, free: 2.941 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.0001374/0.1143, allocations: 162.8 kB / 367.8 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.115e-05/0.1144, allocations: 27.66 kB / 367.8 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.401e-05/0.1145, allocations: 41.86 kB / 367.9 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.1145, allocations: 4 kB / 367.9 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1145, allocations: 0 / 367.9 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1145, allocations: 0 / 367.9 MB, free: 2.703 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.1159, allocations: 1.069 MB / 368.9 MB, free: 1.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.1159, allocations: 0 / 368.9 MB, free: 1.551 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003543/0.1162, allocations: 91.84 kB / 369 MB, free: 1.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-06/0.1163, allocations: 7.938 kB / 369 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.67e-05/0.1163, allocations: 15.98 kB / 369 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.764e-06/0.1163, allocations: 8 kB / 369.1 MB, free: 1.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.1163, allocations: 4.219 kB / 369.1 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006757/0.117, allocations: 0.7178 MB / 369.8 MB, free: 0.668 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.266e-05/0.1171, allocations: 104.8 kB / 369.9 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.1171, allocations: 8.062 kB / 369.9 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.1173, allocations: 15.94 kB / 369.9 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.349e-05/0.1174, allocations: 31.97 kB / 369.9 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.04e-05/0.1174, allocations: 19.98 kB / 370 MB, free: 484 kB / 302.1 MB Notification: Performance of sorting global known variables: time 9.481e-05/0.1175, allocations: 140.8 kB / 370.1 MB, free: 344 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1175, allocations: 0 / 370.1 MB, free: 344 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004301/0.118, allocations: 72 kB / 370.2 MB, free: 272 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.1642/0.2821, allocations: 1.266 MB / 371.4 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004953/0.2827, allocations: 283.7 kB / 371.7 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.2827, allocations: 1.156 kB / 371.7 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001843/0.2829, allocations: 145.2 kB / 371.8 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007607/0.2836, allocations: 66.02 kB / 371.9 MB, free: 18.73 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00369/0.2873, allocations: 3.387 MB / 375.3 MB, free: 16.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002448/0.2876, allocations: 0.776 MB / 376.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001413/0.2877, allocations: 31.47 kB / 376.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.2879, allocations: 90.81 kB / 376.2 MB, free: 15.84 MB / 302.1 MB Notification: Performance of SimCode: time 6.22e-07/0.2879, allocations: 4 kB / 376.2 MB, free: 15.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02487/0.3127, allocations: 5.738 MB / 381.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001246/0.3129, allocations: 204.5 kB / 382.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.87/2.183, allocations: 1.375 kB / 382.1 MB, free: 15.07 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