Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",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.0008256/0.0008256, allocations: 175 kB / 16.72 MB, free: 5.082 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.196/1.196, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007498/0.0007498, allocations: 95.44 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003168/0.0003169, allocations: 12 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2066, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01203/0.2187, allocations: 16.11 MB / 391.3 MB, free: 32.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008106/0.2268, allocations: 4.675 MB / 396 MB, free: 27.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002835/0.2296, allocations: 71.81 kB / 396.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002425/0.2321, allocations: 0.7854 MB / 396.8 MB, free: 27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005723/0.2378, allocations: 2.682 MB / 399.5 MB, free: 24.31 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.2389, allocations: 407.4 kB / 399.9 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00257/0.2415, allocations: 2.892 MB / 402.8 MB, free: 21.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002171/0.2437, allocations: 1.973 MB / 404.8 MB, free: 18.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009875/0.2447, allocations: 0.7355 MB / 405.5 MB, free: 18.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001181/0.2458, allocations: 1.215 MB / 406.7 MB, free: 17.04 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002087/0.2461, allocations: 88 kB / 406.8 MB, free: 16.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00122/0.2473, allocations: 0.9906 MB / 407.8 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005652/0.2479, allocations: 1.025 MB / 408.8 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006679/0.2485, allocations: 1.167 MB / 410 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001941/0.2505, allocations: 3.298 MB / 413.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2505, allocations: 0 / 413.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2505, allocations: 3.938 kB / 413.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.155e-05/0.2506, allocations: 0 / 413.3 MB, free: 10.44 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.003506/0.2541, allocations: 2.548 MB / 415.8 MB, free: 7.836 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.2541, allocations: 16.03 kB / 415.9 MB, free: 7.82 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003928/0.2545, allocations: 470.9 kB / 416.3 MB, free: 7.352 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005593/0.2601, allocations: 1.791 MB / 418.1 MB, free: 5.555 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002327/0.2625, allocations: 1.843 MB / 420 MB, free: 3.664 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.775e-05/0.2625, allocations: 135.3 kB / 420.1 MB, free: 3.531 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005086/0.2631, allocations: 255.6 kB / 420.3 MB, free: 3.281 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00801/0.2711, allocations: 6.648 MB / 427 MB, free: 12.17 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.626e-05/0.2711, allocations: 27.81 kB / 427 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000224/0.2714, allocations: 87.89 kB / 427.1 MB, free: 12.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001923/0.2733, allocations: 1.363 MB / 428.5 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008998/0.2823, allocations: 6.025 MB / 434.5 MB, free: 4.668 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02359/0.3059, allocations: 25.59 MB / 460.1 MB, free: 10.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006187/0.3121, allocations: 2.684 MB / 462.8 MB, free: 7.473 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.3133, allocations: 1.028 MB / 463.8 MB, free: 6.434 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004808/0.3182, allocations: 3.857 MB / 467.7 MB, free: 2.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.3182, allocations: 47.06 kB / 467.7 MB, free: 2.266 MB / 346.7 MB Notification: Performance of pre-optimization done (n=112): time 3.506e-06/0.3182, allocations: 0 / 467.7 MB, free: 2.266 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.02479/0.343, allocations: 10.36 MB / 478.1 MB, free: 7.734 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001095/0.3442, allocations: 1.592 MB / 479.7 MB, free: 5.973 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003756/0.3479, allocations: 2.734 MB / 482.4 MB, free: 3.219 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.3481, allocations: 45.64 kB / 482.4 MB, free: 3.168 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001413/0.3495, allocations: 2.087 MB / 484.5 MB, free: 1.047 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004672/0.35, allocations: 0.5093 MB / 485 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002148/0.3502, allocations: 84 kB / 485.1 MB, free: 460 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000306/0.3505, allocations: 0.4961 MB / 485.6 MB, free: 15.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002409/0.3529, allocations: 1.606 MB / 487.2 MB, free: 14.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004008/0.3569, allocations: 4.409 MB / 491.6 MB, free: 8.512 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006424/0.3634, allocations: 6.473 MB / 498.1 MB, free: 0.6484 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.974e-05/0.3635, allocations: 35.94 kB / 498.1 MB, free: 0.6133 MB / 378.7 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.0124/0.3759, allocations: 6.998 MB / 0.4933 GB, free: 9.602 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.354e-05/0.376, allocations: 48.19 kB / 0.4933 GB, free: 9.555 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005639/0.3816, allocations: 2.54 MB / 0.4958 GB, free: 7.004 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004961/0.3866, allocations: 1.481 MB / 0.4973 GB, free: 5.512 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002796/0.3894, allocations: 1.01 MB / 0.4982 GB, free: 4.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1584/0.5478, allocations: 7.192 MB / 0.5053 GB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003093/0.5509, allocations: 326.8 kB / 0.5056 GB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002953/0.5512, allocations: 280.8 kB / 0.5058 GB, free: 117.2 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002138/0.5534, allocations: 1.422 MB / 0.5072 GB, free: 116.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004066/0.5538, allocations: 232 kB / 0.5075 GB, free: 116.7 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006086/0.5599, allocations: 2.851 MB / 0.5102 GB, free: 115.9 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005365/0.5653, allocations: 2.515 MB / 0.5127 GB, free: 115.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/0.5653, allocations: 5.438 kB / 0.5127 GB, free: 115.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.5653, allocations: 7.062 kB / 0.5127 GB, free: 115.3 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01088/0.5762, allocations: 6.876 MB / 0.5194 GB, free: 112.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.993e-06/0.5762, allocations: 3.984 kB / 0.5194 GB, free: 112.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006974/0.5769, allocations: 167.6 kB / 0.5196 GB, free: 112.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004282/0.5812, allocations: 1.439 MB / 0.521 GB, free: 111.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.39e-05/0.5813, allocations: 33.69 kB / 0.521 GB, free: 111.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007583/0.5889, allocations: 7.326 MB / 0.5282 GB, free: 106.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006328/0.5896, allocations: 1.46 MB / 0.5296 GB, free: 104.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006951/0.5965, allocations: 4.84 MB / 0.5343 GB, free: 100.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004961/0.597, allocations: 301.1 kB / 0.5346 GB, free: 99.87 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002115/0.5973, allocations: 25.23 kB / 0.5346 GB, free: 99.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.5983, allocations: 107.8 kB / 0.5347 GB, free: 99.74 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003108/0.5986, allocations: 84.22 kB / 0.5348 GB, free: 99.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-05/0.5987, allocations: 49.61 kB / 0.5349 GB, free: 99.62 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001864/0.6006, allocations: 1.69 MB / 0.5365 GB, free: 97.92 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6006, allocations: 0 / 0.5365 GB, free: 97.92 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00288/0.6035, allocations: 0.7624 MB / 0.5373 GB, free: 97.16 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007393/0.6109, allocations: 5.488 MB / 0.5426 GB, free: 91.64 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005909/0.6168, allocations: 4.32 MB / 0.5468 GB, free: 87.33 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.6168, allocations: 0 / 0.5468 GB, free: 87.33 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002553/0.6194, allocations: 1.715 MB / 0.5485 GB, free: 85.57 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001981/0.6214, allocations: 258.9 kB / 0.5488 GB, free: 85.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02869/0.6501, allocations: 24.07 MB / 0.5723 GB, free: 58.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001564/0.6517, allocations: 2.305 MB / 0.5745 GB, free: 56.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001148/0.6529, allocations: 1.148 MB / 0.5756 GB, free: 55.25 MB / 394.7 MB Notification: Performance of SimCode: time 1.012e-06/0.6529, allocations: 0 / 0.5756 GB, free: 55.25 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.954/6.607, allocations: 84.36 MB / 0.658 GB, free: 139 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches