Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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 3.2.3+maint.om/package.mo", uses=false) 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 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.SpringWithMass,fileNamePrefix="Modelica_3_2_3_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_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 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 110.5 kB / 17.73 MB, free: 5.324 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.001613/0.001613, allocations: 183 kB / 18.66 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.573/1.573, allocations: 205.1 MB / 224.5 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 59.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1189, allocations: 46.62 MB / 374.6 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.2648/0.3838, allocations: 7.437 MB / 382.1 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00708/0.3909, allocations: 3.238 MB / 385.3 MB, free: 7.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001238/0.3923, allocations: 36.66 kB / 385.4 MB, free: 7.961 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002364/0.3946, allocations: 1.022 MB / 386.4 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004686/0.3993, allocations: 1.369 MB / 387.8 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.4006, allocations: 457.4 kB / 388.2 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004214/0.4049, allocations: 2.644 MB / 390.8 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00239/0.4073, allocations: 1.525 MB / 392.4 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001748/0.409, allocations: 0.8529 MB / 393.2 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002305/0.4114, allocations: 1.223 MB / 394.4 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000552/0.4119, allocations: 171.2 kB / 394.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002806/0.4147, allocations: 1.02 MB / 395.6 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001257/0.416, allocations: 1.113 MB / 396.7 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001767/0.4178, allocations: 1.309 MB / 398.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005667/0.4235, allocations: 4.387 MB / 402.4 MB, free: 80 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.4235, allocations: 0 / 402.4 MB, free: 80 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.4235, allocations: 4 kB / 402.4 MB, free: 76 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.011e-05/0.4236, allocations: 1.312 kB / 402.4 MB, free: 76 kB / 318.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.008279/0.4319, allocations: 3.072 MB / 405.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.787e-05/0.432, allocations: 8.312 kB / 405.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00101/0.433, allocations: 471.8 kB / 406 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007443/0.4405, allocations: 1.748 MB / 407.7 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004683/0.4452, allocations: 1.856 MB / 409.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.4453, allocations: 133.3 kB / 409.7 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007177/0.4461, allocations: 249.8 kB / 410 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01173/0.4578, allocations: 6.658 MB / 416.6 MB, free: 5.273 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.275e-05/0.4579, allocations: 27.75 kB / 416.6 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000268/0.4582, allocations: 88.7 kB / 416.7 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002191/0.4604, allocations: 1.37 MB / 418.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0116/0.472, allocations: 6.033 MB / 424.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0367/0.5087, allocations: 25.51 MB / 449.7 MB, free: 3.477 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007614/0.5164, allocations: 2.675 MB / 452.3 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001655/0.5181, allocations: 1.036 MB / 453.4 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007713/0.5258, allocations: 3.857 MB / 457.2 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.388e-05/0.5259, allocations: 43.06 kB / 457.3 MB, free: 11.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 6.532e-06/0.5259, allocations: 0 / 457.3 MB, free: 11.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.03091/0.5569, allocations: 10.34 MB / 467.6 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001711/0.5586, allocations: 1.675 MB / 469.3 MB, free: 15.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006063/0.5647, allocations: 2.754 MB / 472 MB, free: 12.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004084/0.5652, allocations: 41.64 kB / 472.1 MB, free: 12.26 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002047/0.5672, allocations: 2.095 MB / 474.2 MB, free: 10.13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009331/0.5682, allocations: 0.4976 MB / 474.7 MB, free: 9.629 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003022/0.5712, allocations: 0.9163 MB / 475.6 MB, free: 8.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.5714, allocations: 309 kB / 475.9 MB, free: 8.395 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00323/0.5746, allocations: 1.625 MB / 477.5 MB, free: 6.762 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00584/0.5805, allocations: 4.425 MB / 481.9 MB, free: 0.9258 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009138/0.5896, allocations: 6.498 MB / 488.4 MB, free: 9.039 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001241/0.5898, allocations: 28 kB / 488.5 MB, free: 9.012 MB / 414.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01654/0.6063, allocations: 7.026 MB / 495.5 MB, free: 1.961 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001181/0.6065, allocations: 48 kB / 495.5 MB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006343/0.6129, allocations: 2.548 MB / 498.1 MB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005356/0.6182, allocations: 1.49 MB / 499.6 MB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003459/0.6217, allocations: 0.9981 MB / 0.4888 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01098/0.6327, allocations: 7.782 MB / 0.4964 GB, free: 4.797 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004129/0.6369, allocations: 319.6 kB / 0.4967 GB, free: 4.484 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009964/0.6379, allocations: 280.1 kB / 0.497 GB, free: 4.211 MB / 430.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.003577/0.6415, allocations: 1.427 MB / 0.4984 GB, free: 2.773 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009646/0.6425, allocations: 240.8 kB / 0.4986 GB, free: 2.535 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007659/0.6502, allocations: 2.846 MB / 0.5014 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005994/0.6562, allocations: 2.501 MB / 0.5038 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2e-05/0.6562, allocations: 4 kB / 0.5039 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.801e-05/0.6563, allocations: 11.92 kB / 0.5039 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01766/0.674, allocations: 6.879 MB / 0.5106 GB, free: 6.148 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.88e-05/0.674, allocations: 0 / 0.5106 GB, free: 6.148 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009539/0.675, allocations: 175.7 kB / 0.5107 GB, free: 5.977 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00506/0.6801, allocations: 1.43 MB / 0.5121 GB, free: 4.535 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002594/0.6803, allocations: 31.98 kB / 0.5122 GB, free: 4.504 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01092/0.6913, allocations: 7.92 MB / 0.5199 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001119/0.6924, allocations: 1.554 MB / 0.5214 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009788/0.7023, allocations: 4.849 MB / 0.5262 GB, free: 5.719 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009973/0.7033, allocations: 290 kB / 0.5264 GB, free: 5.414 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006161/0.7039, allocations: 31.98 kB / 0.5265 GB, free: 5.383 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/0.7055, allocations: 107.8 kB / 0.5266 GB, free: 5.277 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004327/0.706, allocations: 80.44 kB / 0.5266 GB, free: 5.199 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000147/0.7062, allocations: 39.97 kB / 0.5267 GB, free: 5.16 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00416/0.7103, allocations: 1.709 MB / 0.5284 GB, free: 3.441 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7104, allocations: 0 / 0.5284 GB, free: 3.441 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005586/0.7159, allocations: 0.7656 MB / 0.5291 GB, free: 2.676 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.01044/0.7264, allocations: 5.499 MB / 0.5345 GB, free: 13.11 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00907/0.7355, allocations: 4.363 MB / 0.5387 GB, free: 8.723 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.548e-06/0.7356, allocations: 0 / 0.5387 GB, free: 8.723 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003664/0.7392, allocations: 1.709 MB / 0.5404 GB, free: 6.965 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00284/0.7421, allocations: 281.3 kB / 0.5407 GB, free: 6.691 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2947/1.037, allocations: 33.73 MB / 0.5736 GB, free: 138.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002297/1.039, allocations: 2.295 MB / 0.5758 GB, free: 137.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003141/1.042, allocations: 1.404 MB / 0.5772 GB, free: 137.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00128/1.044, allocations: 1.117 MB / 0.5783 GB, free: 136.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.232e-06/1.044, allocations: 0 / 0.5783 GB, free: 136.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1056/1.149, allocations: 49.68 MB / 0.6268 GB, free: 91.68 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.51/18.66, allocations: 7.531 kB / 0.6268 GB, free: 91.67 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches