Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",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.001079/0.001079, allocations: 105.7 kB / 17.06 MB, free: 6.012 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.001087/0.001087, allocations: 195 kB / 18 MB, free: 5.094 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.293/1.293, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 47.92 kB / 350.8 MB, free: 3.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2319/0.2329, allocations: 49.45 MB / 400.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.0118/0.2448, allocations: 12 MB / 412.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007665/0.2525, allocations: 4.192 MB / 416.4 MB, free: 8.562 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001667/0.2542, allocations: 75.75 kB / 416.5 MB, free: 8.488 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004887/0.2591, allocations: 2.764 MB / 419.3 MB, free: 5.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004745/0.2639, allocations: 1.953 MB / 421.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001791/0.2657, allocations: 0.8111 MB / 422 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005915/0.2716, allocations: 4.611 MB / 426.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004498/0.2762, allocations: 3.538 MB / 430.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002578/0.2788, allocations: 1.69 MB / 431.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003127/0.2819, allocations: 2.336 MB / 434.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009882/0.2829, allocations: 352 kB / 434.6 MB, free: 6.344 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002538/0.2855, allocations: 1.28 MB / 435.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002192/0.2877, allocations: 2.123 MB / 438 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003305/0.291, allocations: 2.435 MB / 440.4 MB, free: 496 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00803/0.2991, allocations: 7.544 MB / 447.9 MB, free: 8.914 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.2991, allocations: 0 / 447.9 MB, free: 8.914 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.2991, allocations: 3.938 kB / 447.9 MB, free: 8.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003143/0.2994, allocations: 0 / 447.9 MB, free: 8.91 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01262/0.312, allocations: 5.293 MB / 453.2 MB, free: 3.547 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.3121, allocations: 12.03 kB / 453.3 MB, free: 3.535 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001624/0.3137, allocations: 0.7982 MB / 454 MB, free: 2.727 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008467/0.3222, allocations: 2.131 MB / 456.2 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00666/0.3289, allocations: 3.148 MB / 459.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00026/0.3292, allocations: 274.8 kB / 459.6 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001434/0.3306, allocations: 427.7 kB / 460 MB, free: 12.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02344/0.3541, allocations: 12.22 MB / 472.2 MB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002252/0.3544, allocations: 55.52 kB / 472.3 MB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001231/0.3556, allocations: 171.8 kB / 472.5 MB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003304/0.3589, allocations: 2.166 MB / 474.6 MB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0217/0.3806, allocations: 10.2 MB / 484.8 MB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05163/0.4323, allocations: 44.09 MB / 0.5165 GB, free: 5.707 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01147/0.4438, allocations: 4.595 MB / 0.521 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002549/0.4464, allocations: 1.728 MB / 0.5227 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0123/0.4587, allocations: 8.183 MB / 0.5307 GB, free: 6.605 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.136e-05/0.4588, allocations: 55.8 kB / 0.5307 GB, free: 6.543 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 5.821e-06/0.4588, allocations: 3.984 kB / 0.5307 GB, free: 6.539 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.2294/0.6882, allocations: 15.92 MB / 0.5463 GB, free: 127.8 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009109/0.6891, allocations: 1.694 MB / 0.5479 GB, free: 126.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004321/0.6935, allocations: 4.209 MB / 0.5521 GB, free: 124.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000279/0.6938, allocations: 61.19 kB / 0.5521 GB, free: 124.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001261/0.695, allocations: 3.404 MB / 0.5554 GB, free: 121.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000548/0.6956, allocations: 0.8053 MB / 0.5562 GB, free: 121.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001254/0.6969, allocations: 1.345 MB / 0.5575 GB, free: 120.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.738e-05/0.6969, allocations: 301.5 kB / 0.5578 GB, free: 120.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002557/0.6995, allocations: 2.229 MB / 0.56 GB, free: 119.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003554/0.703, allocations: 6.358 MB / 0.5662 GB, free: 112.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006617/0.7097, allocations: 9.253 MB / 0.5752 GB, free: 101.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-05/0.7097, allocations: 43.94 kB / 0.5753 GB, free: 101 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01193/0.7217, allocations: 9.087 MB / 0.5842 GB, free: 91.93 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.082e-05/0.7218, allocations: 72.03 kB / 0.5842 GB, free: 91.86 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004329/0.7261, allocations: 2.84 MB / 0.587 GB, free: 89.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002809/0.7289, allocations: 1.08 MB / 0.5881 GB, free: 87.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003942/0.7329, allocations: 1.567 MB / 0.5896 GB, free: 86.35 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003392/0.7363, allocations: 4.68 MB / 0.5942 GB, free: 81.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004339/0.7406, allocations: 416.9 kB / 0.5946 GB, free: 80.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000466/0.7411, allocations: 419.4 kB / 0.595 GB, free: 80.58 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002316/0.7434, allocations: 2.21 MB / 0.5971 GB, free: 78.36 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004785/0.7439, allocations: 375.1 kB / 0.5975 GB, free: 77.99 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005211/0.7491, allocations: 3.289 MB / 0.6007 GB, free: 74.68 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004265/0.7534, allocations: 2.746 MB / 0.6034 GB, free: 71.91 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.749e-06/0.7534, allocations: 4 kB / 0.6034 GB, free: 71.91 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.493e-05/0.7535, allocations: 11.91 kB / 0.6034 GB, free: 71.89 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01409/0.7675, allocations: 10.32 MB / 0.6135 GB, free: 61.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/0.7676, allocations: 12 kB / 0.6135 GB, free: 61.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/0.7689, allocations: 368.2 kB / 0.6138 GB, free: 60.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002637/0.7716, allocations: 0.9902 MB / 0.6148 GB, free: 59.96 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001495/0.7717, allocations: 68.03 kB / 0.6149 GB, free: 59.89 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003832/0.7756, allocations: 4.896 MB / 0.6196 GB, free: 54.72 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006539/0.7762, allocations: 1.557 MB / 0.6212 GB, free: 53.02 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006968/0.7832, allocations: 5.914 MB / 0.6269 GB, free: 46.91 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009629/0.7842, allocations: 447.9 kB / 0.6274 GB, free: 46.45 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003794/0.7846, allocations: 55.98 kB / 0.6274 GB, free: 46.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001503/0.7861, allocations: 147.8 kB / 0.6276 GB, free: 46.25 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002615/0.7864, allocations: 180.4 kB / 0.6277 GB, free: 46.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/0.7865, allocations: 71.98 kB / 0.6278 GB, free: 46 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002862/0.7894, allocations: 2.606 MB / 0.6303 GB, free: 43.39 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7894, allocations: 0 / 0.6303 GB, free: 43.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004378/0.7938, allocations: 1.134 MB / 0.6314 GB, free: 42.26 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007132/0.8009, allocations: 6.611 MB / 0.6379 GB, free: 35.44 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00789/0.8088, allocations: 5.921 MB / 0.6437 GB, free: 29.49 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/0.8088, allocations: 192 / 0.6437 GB, free: 29.49 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003211/0.8121, allocations: 2.204 MB / 0.6458 GB, free: 27.21 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002713/0.8148, allocations: 0.4981 MB / 0.6463 GB, free: 26.72 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05762/0.8724, allocations: 50.45 MB / 0.6956 GB, free: 1.422 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003355/0.8758, allocations: 3.455 MB / 0.699 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004242/0.8801, allocations: 2.026 MB / 0.7009 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002375/0.8825, allocations: 2.096 MB / 0.703 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of SimCode: time 6.41e-07/0.8825, allocations: 0 / 0.703 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.332/3.214, allocations: 74.27 MB / 0.7755 GB, free: 145.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 57.57/60.78, allocations: 7.031 kB / 0.7755 GB, free: 145.1 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches