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.001418/0.001418, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001602/0.001602, allocations: 203.8 kB / 18.74 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.2606, allocations: 50.53 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008397/0.269, allocations: 7.412 MB / 416.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006102/0.2752, allocations: 3.261 MB / 419.4 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001098/0.2763, allocations: 35.88 kB / 419.5 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002441/0.2788, allocations: 1.012 MB / 420.5 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003189/0.282, allocations: 1.343 MB / 421.8 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.2831, allocations: 463.1 kB / 422.3 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003675/0.2868, allocations: 2.66 MB / 424.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002169/0.289, allocations: 1.521 MB / 426.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001359/0.2904, allocations: 0.833 MB / 427.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001659/0.2921, allocations: 1.223 MB / 428.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004369/0.2925, allocations: 171.9 kB / 428.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001774/0.2943, allocations: 1.006 MB / 429.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001114/0.2955, allocations: 1.095 MB / 430.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001683/0.2972, allocations: 1.289 MB / 432.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005212/0.3024, allocations: 4.329 MB / 436.4 MB, free: 5.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.3025, allocations: 0 / 436.4 MB, free: 5.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3025, allocations: 0 / 436.4 MB, free: 5.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001157/0.3026, allocations: 0 / 436.4 MB, free: 5.762 MB / 350.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.006486/0.3091, allocations: 3.036 MB / 439.4 MB, free: 2.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.3092, allocations: 16.03 kB / 439.4 MB, free: 2.652 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006528/0.3098, allocations: 470.9 kB / 439.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006882/0.3167, allocations: 1.799 MB / 441.7 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003576/0.3203, allocations: 1.604 MB / 443.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.3205, allocations: 131.3 kB / 443.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007207/0.3212, allocations: 251.7 kB / 443.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01061/0.3318, allocations: 6.676 MB / 450.4 MB, free: 7.219 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.907e-05/0.3319, allocations: 31.66 kB / 450.4 MB, free: 7.188 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000296/0.3322, allocations: 87.89 kB / 450.5 MB, free: 7.102 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002125/0.3344, allocations: 1.37 MB / 451.8 MB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01116/0.3455, allocations: 6.044 MB / 457.9 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03078/0.3764, allocations: 25.5 MB / 483.4 MB, free: 5.426 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007111/0.3835, allocations: 2.667 MB / 486.1 MB, free: 2.609 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001484/0.3851, allocations: 1.036 MB / 487.1 MB, free: 1.562 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006916/0.392, allocations: 3.948 MB / 491 MB, free: 13.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/0.3921, allocations: 47.06 kB / 491.1 MB, free: 13.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 4.338e-06/0.3921, allocations: 0 / 491.1 MB, free: 13.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02781/0.4199, allocations: 10.31 MB / 0.4896 GB, free: 2.801 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001388/0.4214, allocations: 1.675 MB / 0.4913 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004155/0.4255, allocations: 2.729 MB / 0.4939 GB, free: 14.2 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003541/0.4259, allocations: 45.69 kB / 0.494 GB, free: 14.15 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001449/0.4274, allocations: 2.079 MB / 0.496 GB, free: 12.04 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006807/0.4281, allocations: 0.4977 MB / 0.4965 GB, free: 11.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001189/0.4293, allocations: 0.9202 MB / 0.4974 GB, free: 10.6 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.466e-05/0.4294, allocations: 305.1 kB / 0.4977 GB, free: 10.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002405/0.4318, allocations: 1.633 MB / 0.4993 GB, free: 8.656 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004922/0.4367, allocations: 4.424 MB / 0.5036 GB, free: 2.824 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008285/0.4451, allocations: 6.497 MB / 0.51 GB, free: 10.94 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001066/0.4452, allocations: 28 kB / 0.51 GB, free: 10.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01496/0.4602, allocations: 7.053 MB / 0.5169 GB, free: 3.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.78e-05/0.4603, allocations: 48 kB / 0.5169 GB, free: 3.793 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006204/0.4665, allocations: 2.54 MB / 0.5194 GB, free: 1.238 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005437/0.472, allocations: 1.504 MB / 0.5209 GB, free: 15.72 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003097/0.4751, allocations: 1.006 MB / 0.5218 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01096/0.4861, allocations: 7.768 MB / 0.5294 GB, free: 6.672 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003467/0.4896, allocations: 331.5 kB / 0.5298 GB, free: 6.348 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007486/0.4904, allocations: 280 kB / 0.53 GB, free: 6.074 MB / 462.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.002445/0.4929, allocations: 1.437 MB / 0.5314 GB, free: 4.625 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004999/0.4934, allocations: 233 kB / 0.5316 GB, free: 4.395 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006303/0.494, allocations: 333.9 kB / 0.532 GB, free: 4.059 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006149/0.5002, allocations: 2.521 MB / 0.5344 GB, free: 1.52 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.076e-05/0.5002, allocations: 4 kB / 0.5344 GB, free: 1.516 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.817e-05/0.5003, allocations: 7.969 kB / 0.5344 GB, free: 1.508 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2063/0.7066, allocations: 6.87 MB / 0.5411 GB, free: 122 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.891e-05/0.7067, allocations: 3.875 kB / 0.5411 GB, free: 122 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008858/0.7076, allocations: 181.4 kB / 0.5413 GB, free: 122 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004615/0.7122, allocations: 1.429 MB / 0.5427 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002101/0.7125, allocations: 30.47 kB / 0.5427 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009/0.7215, allocations: 7.925 MB / 0.5505 GB, free: 117.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008628/0.7224, allocations: 1.538 MB / 0.552 GB, free: 115.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008182/0.7306, allocations: 4.874 MB / 0.5567 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008583/0.7315, allocations: 291.6 kB / 0.557 GB, free: 113.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004061/0.7319, allocations: 23.98 kB / 0.557 GB, free: 113.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/0.7332, allocations: 112.5 kB / 0.5572 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002766/0.7335, allocations: 80.41 kB / 0.5572 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.7336, allocations: 39.97 kB / 0.5573 GB, free: 113.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002278/0.7359, allocations: 1.685 MB / 0.5589 GB, free: 111.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.7359, allocations: 0 / 0.5589 GB, free: 111.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003357/0.7393, allocations: 0.7619 MB / 0.5597 GB, free: 110.9 MB / 462.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.00801/0.7473, allocations: 5.495 MB / 0.565 GB, free: 105.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006307/0.7537, allocations: 4.37 MB / 0.5693 GB, free: 101.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.7537, allocations: 0 / 0.5693 GB, free: 101.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002824/0.7565, allocations: 1.724 MB / 0.571 GB, free: 99.43 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001883/0.7584, allocations: 259.8 kB / 0.5712 GB, free: 99.17 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0427/0.8012, allocations: 33.66 MB / 0.6041 GB, free: 61.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00173/0.8029, allocations: 2.289 MB / 0.6063 GB, free: 59.38 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002557/0.8055, allocations: 1.411 MB / 0.6077 GB, free: 57.96 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001331/0.8069, allocations: 1.112 MB / 0.6088 GB, free: 56.85 MB / 462.1 MB Notification: Performance of SimCode: time 1.252e-06/0.8069, allocations: 0 / 0.6088 GB, free: 56.85 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07811/0.885, allocations: 49.42 MB / 0.6571 GB, free: 7.754 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.83/18.72, allocations: 4.062 kB / 0.6571 GB, free: 7.75 MB / 462.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