Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001254/0.001254, allocations: 114 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001379/0.001379, allocations: 205.8 kB / 18.27 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 63.8 kB / 306.6 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08214/0.08351, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.1523/0.2358, allocations: 17.79 MB / 374.9 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007755/0.2436, allocations: 4.934 MB / 379.8 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002286/0.2459, allocations: 70.38 kB / 379.9 MB, free: 8.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001823/0.2478, allocations: 0.9722 MB / 380.9 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00283/0.2507, allocations: 1.256 MB / 382.1 MB, free: 7.641 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009049/0.2516, allocations: 425.9 kB / 382.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003674/0.2553, allocations: 2.689 MB / 385.2 MB, free: 6.742 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002346/0.2576, allocations: 1.614 MB / 386.8 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001487/0.2591, allocations: 0.8457 MB / 387.7 MB, free: 5.848 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001651/0.2608, allocations: 1.356 MB / 389 MB, free: 5.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000364/0.2612, allocations: 170.8 kB / 389.2 MB, free: 5.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001753/0.2629, allocations: 1.026 MB / 390.2 MB, free: 5.219 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009115/0.2639, allocations: 1.108 MB / 391.3 MB, free: 4.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001041/0.2649, allocations: 1.317 MB / 392.7 MB, free: 3.594 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003703/0.2686, allocations: 4.188 MB / 396.8 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.471e-06/0.2686, allocations: 2.531 kB / 396.8 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2686, allocations: 3.938 kB / 396.9 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.834e-05/0.2687, allocations: 4 kB / 396.9 MB, free: 0.875 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.005225/0.2739, allocations: 3.033 MB / 399.9 MB, free: 14.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.274, allocations: 9.844 kB / 399.9 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004888/0.2745, allocations: 483.3 kB / 400.4 MB, free: 14.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006612/0.2811, allocations: 1.803 MB / 402.2 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00252/0.2836, allocations: 1.58 MB / 403.8 MB, free: 12.13 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.471e-05/0.2837, allocations: 140.4 kB / 403.9 MB, free: 12.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005859/0.2843, allocations: 259.3 kB / 404.1 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008932/0.2933, allocations: 6.663 MB / 410.8 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.334e-05/0.2934, allocations: 23.81 kB / 410.8 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002342/0.2936, allocations: 86.56 kB / 410.9 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001905/0.2955, allocations: 1.374 MB / 412.3 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009469/0.305, allocations: 6.042 MB / 418.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02737/0.3324, allocations: 25.59 MB / 443.9 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006663/0.3391, allocations: 2.682 MB / 446.6 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.3404, allocations: 1.036 MB / 447.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005379/0.3458, allocations: 3.944 MB / 451.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.595e-05/0.3459, allocations: 51.11 kB / 451.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 2.966e-06/0.3459, allocations: 0 / 451.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.02495/0.3708, allocations: 10.32 MB / 462 MB, free: 436 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001242/0.3721, allocations: 1.671 MB / 463.6 MB, free: 14.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004109/0.3762, allocations: 2.733 MB / 466.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001504/0.3764, allocations: 37.7 kB / 466.4 MB, free: 11.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001394/0.3778, allocations: 2.08 MB / 468.5 MB, free: 9.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005586/0.3784, allocations: 0.5053 MB / 469 MB, free: 9.203 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00132/0.3797, allocations: 0.9089 MB / 469.9 MB, free: 8.281 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.662e-05/0.3798, allocations: 313 kB / 470.2 MB, free: 7.973 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002365/0.3822, allocations: 1.629 MB / 471.8 MB, free: 6.336 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004071/0.3863, allocations: 4.436 MB / 476.3 MB, free: 500 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006581/0.3929, allocations: 6.492 MB / 482.7 MB, free: 8.609 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.956e-05/0.3929, allocations: 28 kB / 482.8 MB, free: 8.582 MB / 398.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01243/0.4054, allocations: 7.052 MB / 489.8 MB, free: 1.516 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.631e-05/0.4055, allocations: 50.5 kB / 489.9 MB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005742/0.4112, allocations: 2.544 MB / 492.4 MB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00488/0.4161, allocations: 1.495 MB / 493.9 MB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002673/0.4188, allocations: 1.018 MB / 494.9 MB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009675/0.4285, allocations: 7.78 MB / 0.4909 GB, free: 4.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003672/0.4322, allocations: 323.6 kB / 0.4912 GB, free: 4.023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008694/0.4331, allocations: 286.9 kB / 0.4915 GB, free: 3.746 MB / 414.1 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 (not torn): 2 * 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): 1 system {(4,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 {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002831/0.4359, allocations: 1.42 MB / 0.4929 GB, free: 2.316 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006837/0.4366, allocations: 244.8 kB / 0.4931 GB, free: 2.074 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000793/0.4374, allocations: 325.9 kB / 0.4934 GB, free: 1.742 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005874/0.4433, allocations: 2.517 MB / 0.4959 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/0.4433, allocations: 4 kB / 0.4959 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.658e-05/0.4434, allocations: 3.984 kB / 0.4959 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01316/0.4565, allocations: 6.89 MB / 0.5026 GB, free: 8.242 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/0.4566, allocations: 4 kB / 0.5026 GB, free: 8.238 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008243/0.4574, allocations: 175.7 kB / 0.5028 GB, free: 8.066 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00463/0.462, allocations: 1.438 MB / 0.5042 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001585/0.4622, allocations: 31.98 kB / 0.5042 GB, free: 6.586 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009771/0.472, allocations: 7.928 MB / 0.512 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000977/0.473, allocations: 1.537 MB / 0.5135 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008642/0.4816, allocations: 4.864 MB / 0.5182 GB, free: 7.793 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007304/0.4824, allocations: 290 kB / 0.5185 GB, free: 7.488 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000435/0.4828, allocations: 31.92 kB / 0.5185 GB, free: 7.457 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/0.4841, allocations: 118.4 kB / 0.5187 GB, free: 7.344 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00027/0.4844, allocations: 80.62 kB / 0.5187 GB, free: 7.266 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.4846, allocations: 39.98 kB / 0.5188 GB, free: 7.227 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002927/0.4875, allocations: 1.685 MB / 0.5204 GB, free: 5.531 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4875, allocations: 0 / 0.5204 GB, free: 5.531 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003504/0.491, allocations: 0.7501 MB / 0.5212 GB, free: 4.781 MB / 446.1 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 (not torn): 2 * 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): 1 system {(4,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 {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.1585/0.6496, allocations: 5.504 MB / 0.5265 GB, free: 144.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00745/0.657, allocations: 4.679 MB / 0.5311 GB, free: 143.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.6571, allocations: 3.969 kB / 0.5311 GB, free: 143.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002765/0.6598, allocations: 1.718 MB / 0.5328 GB, free: 143.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001701/0.6615, allocations: 270.4 kB / 0.533 GB, free: 143.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04335/0.7049, allocations: 37.06 MB / 0.5692 GB, free: 116.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001626/0.7066, allocations: 2.288 MB / 0.5715 GB, free: 114.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002571/0.7092, allocations: 1.412 MB / 0.5728 GB, free: 113 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009925/0.7102, allocations: 1.116 MB / 0.5739 GB, free: 111.8 MB / 446.1 MB Notification: Performance of SimCode: time 6.42e-07/0.7102, allocations: 0 / 0.5739 GB, free: 111.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.646/4.357, allocations: 51.22 MB / 0.6239 GB, free: 60.93 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000202/4.357, allocations: 250 kB / 0.6242 GB, free: 60.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.582/7.939, allocations: 4.875 kB / 0.6242 GB, free: 60.68 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches