Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Damper,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Damper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008502/0.00085, allocations: 171.9 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.219/1.219, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008/0.0008, allocations: 93.3 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003278/0.0003279, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2088/0.2092, allocations: 47.57 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Damper): time 0.001872/0.2111, allocations: 2.006 MB / 377.2 MB, free: 43.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003787/0.2115, allocations: 232.6 kB / 377.4 MB, free: 43.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.2116, allocations: 5 kB / 377.4 MB, free: 43.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.2118, allocations: 35.48 kB / 377.5 MB, free: 43.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001085/0.2119, allocations: 69.2 kB / 377.5 MB, free: 43.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00013/0.212, allocations: 42.39 kB / 377.6 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002233/0.2122, allocations: 272.9 kB / 377.8 MB, free: 43.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/0.2124, allocations: 82.98 kB / 377.9 MB, free: 43.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.679e-05/0.2125, allocations: 92.84 kB / 378 MB, free: 43.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.2127, allocations: 107.1 kB / 378.1 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.001e-05/0.2127, allocations: 12.62 kB / 378.1 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.552e-05/0.2127, allocations: 11.66 kB / 378.1 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.922e-05/0.2128, allocations: 42.95 kB / 378.2 MB, free: 43.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.547e-05/0.2129, allocations: 138.2 kB / 378.3 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001641/0.213, allocations: 212 kB / 378.5 MB, free: 42.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.213, allocations: 0 / 378.5 MB, free: 42.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.2131, allocations: 0 / 378.5 MB, free: 42.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.2131, allocations: 5.594 kB / 378.5 MB, free: 42.89 MB / 298.7 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.0005567/0.2136, allocations: 0.5 MB / 379 MB, free: 42.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.2137, allocations: 9.906 kB / 379 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.582e-05/0.2137, allocations: 58 kB / 379.1 MB, free: 42.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.2138, allocations: 31.38 kB / 379.1 MB, free: 42.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001781/0.214, allocations: 250.9 kB / 379.4 MB, free: 42.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.725e-05/0.214, allocations: 23 kB / 379.4 MB, free: 42.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.912e-05/0.214, allocations: 23.59 kB / 379.4 MB, free: 42.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003307/0.2144, allocations: 239.2 kB / 379.6 MB, free: 41.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.2144, allocations: 5.031 kB / 379.6 MB, free: 41.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.2144, allocations: 10.62 kB / 379.7 MB, free: 41.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.2144, allocations: 6.5 kB / 379.7 MB, free: 41.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002347/0.2147, allocations: 157.9 kB / 379.8 MB, free: 41.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008476/0.2155, allocations: 0.8085 MB / 380.6 MB, free: 41.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004163/0.216, allocations: 287.2 kB / 380.9 MB, free: 40.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002022/0.2162, allocations: 132.1 kB / 381 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.2162, allocations: 7.562 kB / 381 MB, free: 40.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.575e-05/0.2162, allocations: 32.62 kB / 381.1 MB, free: 40.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 2.154e-06/0.2162, allocations: 1.031 kB / 381.1 MB, free: 40.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002081/0.2183, allocations: 1.95 MB / 383 MB, free: 39.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.081e-05/0.2184, allocations: 112.5 kB / 383.1 MB, free: 38.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.2185, allocations: 187.2 kB / 383.3 MB, free: 38.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.2186, allocations: 35.92 kB / 383.4 MB, free: 38.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.633e-05/0.2186, allocations: 137.5 kB / 383.5 MB, free: 38.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.257e-05/0.2187, allocations: 160.6 kB / 383.6 MB, free: 38.48 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.449e-05/0.2187, allocations: 10.31 kB / 383.7 MB, free: 38.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.079e-05/0.2188, allocations: 340.4 kB / 384 MB, free: 38.14 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001308/0.2189, allocations: 95.83 kB / 384.1 MB, free: 38.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.2191, allocations: 151.5 kB / 384.2 MB, free: 37.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.2194, allocations: 279.2 kB / 384.5 MB, free: 37.8 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.2194, allocations: 1.188 kB / 384.5 MB, free: 37.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0004369/0.2199, allocations: 330 kB / 384.8 MB, free: 37.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.2199, allocations: 12.69 kB / 384.8 MB, free: 37.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.2199, allocations: 1.906 kB / 384.8 MB, free: 37.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.2199, allocations: 3.094 kB / 384.8 MB, free: 37.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000306/0.2202, allocations: 95.08 kB / 384.9 MB, free: 37.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.2202, allocations: 7.469 kB / 384.9 MB, free: 37.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.2204, allocations: 18.5 kB / 385 MB, free: 37.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.125e-05/0.2204, allocations: 15.25 kB / 385 MB, free: 37.59 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.2205, allocations: 146.6 kB / 385.1 MB, free: 37.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.67e-05/0.2206, allocations: 30.66 kB / 385.1 MB, free: 37.44 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.898e-05/0.2207, allocations: 37.73 kB / 385.2 MB, free: 37.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.59e-06/0.2207, allocations: 6.406 kB / 385.2 MB, free: 37.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.2207, allocations: 0 / 385.2 MB, free: 37.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.2207, allocations: 6.359 kB / 385.2 MB, free: 37.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.2218, allocations: 1.06 MB / 386.3 MB, free: 36.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.2218, allocations: 3.219 kB / 386.3 MB, free: 36.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003469/0.2222, allocations: 86.17 kB / 386.3 MB, free: 36.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.2222, allocations: 8.562 kB / 386.4 MB, free: 36.5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.2222, allocations: 21.22 kB / 386.4 MB, free: 36.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/0.2222, allocations: 12.56 kB / 386.4 MB, free: 36.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.2222, allocations: 3.062 kB / 386.4 MB, free: 36.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006077/0.2229, allocations: 0.7238 MB / 387.1 MB, free: 35.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.198e-05/0.2229, allocations: 102 kB / 387.2 MB, free: 35.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.688e-05/0.223, allocations: 13.59 kB / 387.2 MB, free: 35.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001892/0.2232, allocations: 11.88 kB / 387.2 MB, free: 35.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.01e-05/0.2232, allocations: 34.36 kB / 387.3 MB, free: 35.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.093e-05/0.2232, allocations: 15.72 kB / 387.3 MB, free: 35.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.313e-05/0.2233, allocations: 141.8 kB / 387.4 MB, free: 35.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.2233, allocations: 1.469 kB / 387.4 MB, free: 35.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004195/0.2238, allocations: 73.53 kB / 387.5 MB, free: 35.64 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006693/0.2244, allocations: 1.257 MB / 388.8 MB, free: 34.32 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003416/0.2248, allocations: 267.8 kB / 389 MB, free: 34.06 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2248, allocations: 4.188 kB / 389 MB, free: 34.06 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.2249, allocations: 135.8 kB / 389.2 MB, free: 33.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007009/0.2257, allocations: 59.91 kB / 389.2 MB, free: 33.87 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.2278, allocations: 2.055 MB / 391.3 MB, free: 31.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001694/0.228, allocations: 0.7686 MB / 392 MB, free: 30.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.2281, allocations: 95.59 kB / 392.1 MB, free: 30.82 MB / 298.7 MB Notification: Performance of SimCode: time 3.91e-07/0.2281, allocations: 0 / 392.1 MB, free: 30.82 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.603/2.831, allocations: 4.052 MB / 396.2 MB, free: 26.76 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Damper_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Translational_Examples_Damper.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Translational.Examples.Damper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_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.f_c,springDamper3.f_d,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