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.001084/0.001084, allocations: 106 kB / 17.58 MB, free: 5.426 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.001126/0.001126, allocations: 188.2 kB / 18.51 MB, free: 4.512 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.263/1.263, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001333/0.001333, allocations: 55.92 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07561/0.07695, allocations: 46.62 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.007991/0.08498, allocations: 7.437 MB / 334.8 MB, free: 12.89 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005596/0.09061, allocations: 3.231 MB / 338 MB, free: 9.645 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007371/0.09142, allocations: 35.88 kB / 338.1 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002055/0.09349, allocations: 1.028 MB / 339.1 MB, free: 8.578 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003039/0.09655, allocations: 1.37 MB / 340.5 MB, free: 7.203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009263/0.09749, allocations: 459.1 kB / 340.9 MB, free: 6.754 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003235/0.1007, allocations: 2.641 MB / 343.6 MB, free: 4.105 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001859/0.1026, allocations: 1.535 MB / 345.1 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00131/0.1039, allocations: 0.8407 MB / 345.9 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001616/0.1056, allocations: 1.223 MB / 347.2 MB, free: 496 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004815/0.1061, allocations: 168 kB / 347.3 MB, free: 328 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001812/0.1079, allocations: 1.026 MB / 348.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00115/0.1091, allocations: 1.118 MB / 349.5 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001577/0.1106, allocations: 1.316 MB / 350.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004097/0.1147, allocations: 4.202 MB / 355 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1148, allocations: 0 / 355 MB, free: 8.633 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1148, allocations: 0 / 355 MB, free: 8.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.872e-05/0.1149, allocations: 0 / 355 MB, free: 8.633 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.005376/0.1203, allocations: 3.07 MB / 358.1 MB, free: 5.504 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.1203, allocations: 12.03 kB / 358.1 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004907/0.1208, allocations: 470.8 kB / 358.5 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006429/0.1272, allocations: 1.744 MB / 360.3 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002905/0.1302, allocations: 1.839 MB / 362.1 MB, free: 1.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.1303, allocations: 131.3 kB / 362.2 MB, free: 1.262 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007113/0.131, allocations: 255.6 kB / 362.5 MB, free: 1.012 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009518/0.1405, allocations: 6.664 MB / 369.2 MB, free: 9.883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.584e-05/0.1406, allocations: 27.72 kB / 369.2 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002834/0.1409, allocations: 87.89 kB / 369.3 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002009/0.1429, allocations: 1.363 MB / 370.6 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01027/0.1532, allocations: 6.037 MB / 376.7 MB, free: 2.359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1693/0.3226, allocations: 25.61 MB / 402.3 MB, free: 32.28 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00642/0.329, allocations: 2.655 MB / 404.9 MB, free: 31.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00114/0.3302, allocations: 1.043 MB / 406 MB, free: 30.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004249/0.3344, allocations: 3.861 MB / 409.8 MB, free: 27.69 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.841e-05/0.3345, allocations: 39.09 kB / 409.9 MB, free: 27.64 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 2.916e-06/0.3345, allocations: 0 / 409.9 MB, free: 27.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02396/0.3585, allocations: 10.35 MB / 420.2 MB, free: 20.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001117/0.3596, allocations: 1.668 MB / 421.9 MB, free: 18.27 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00417/0.3638, allocations: 2.754 MB / 424.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003195/0.3642, allocations: 41.7 kB / 424.7 MB, free: 15.45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009648/0.3651, allocations: 2.089 MB / 426.8 MB, free: 13.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000553/0.3657, allocations: 0.5045 MB / 427.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001379/0.3671, allocations: 0.9086 MB / 428.2 MB, free: 11.94 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.768e-05/0.3672, allocations: 305.1 kB / 428.5 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002011/0.3692, allocations: 1.628 MB / 430.1 MB, free: 10.01 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002687/0.3719, allocations: 4.424 MB / 434.5 MB, free: 4.176 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005457/0.3773, allocations: 6.503 MB / 441.1 MB, free: 12.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.443e-05/0.3774, allocations: 28 kB / 441.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01264/0.3901, allocations: 7.048 MB / 448.1 MB, free: 5.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.041e-05/0.3902, allocations: 52.06 kB / 448.2 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005842/0.396, allocations: 2.532 MB / 450.7 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005038/0.4011, allocations: 1.492 MB / 452.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003042/0.4041, allocations: 1.01 MB / 453.2 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/0.4142, allocations: 7.773 MB / 461 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003442/0.4177, allocations: 327.5 kB / 461.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006622/0.4184, allocations: 287.9 kB / 461.6 MB, free: 7.438 MB / 350.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.002246/0.4206, allocations: 1.415 MB / 463 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004573/0.4211, allocations: 233 kB / 463.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006667/0.4278, allocations: 2.84 MB / 466.1 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005874/0.4337, allocations: 2.517 MB / 468.6 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.4337, allocations: 8 kB / 468.6 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.4337, allocations: 3.984 kB / 468.6 MB, free: 388 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01357/0.4473, allocations: 6.88 MB / 475.5 MB, free: 9.426 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.828e-05/0.4474, allocations: 4 kB / 475.5 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008856/0.4483, allocations: 179.7 kB / 475.7 MB, free: 9.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004892/0.4532, allocations: 1.433 MB / 477.1 MB, free: 7.805 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001591/0.4533, allocations: 39.48 kB / 477.1 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01023/0.4636, allocations: 7.92 MB / 485 MB, free: 15.57 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009554/0.4646, allocations: 1.537 MB / 486.6 MB, free: 13.89 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008581/0.4731, allocations: 4.856 MB / 491.4 MB, free: 9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005529/0.4737, allocations: 294 kB / 491.7 MB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003807/0.4741, allocations: 31.98 kB / 491.8 MB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001294/0.4754, allocations: 115.8 kB / 491.9 MB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002987/0.4757, allocations: 76.38 kB / 491.9 MB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.4759, allocations: 39.98 kB / 492 MB, free: 8.434 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002585/0.4785, allocations: 1.702 MB / 493.7 MB, free: 6.723 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4785, allocations: 0 / 493.7 MB, free: 6.723 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003433/0.4819, allocations: 0.7592 MB / 494.4 MB, free: 5.969 MB / 382.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.009263/0.4912, allocations: 5.497 MB / 499.9 MB, free: 424 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007743/0.499, allocations: 4.684 MB / 0.4928 GB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/0.499, allocations: 0 / 0.4928 GB, free: 11.72 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003175/0.5022, allocations: 1.717 MB / 0.4945 GB, free: 9.953 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00181/0.504, allocations: 272.4 kB / 0.4947 GB, free: 9.688 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04667/0.5507, allocations: 36.1 MB / 0.53 GB, free: 468 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1351/0.6858, allocations: 2.296 MB / 0.5322 GB, free: 150.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004931/0.6907, allocations: 1.408 MB / 0.5336 GB, free: 150.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00182/0.6926, allocations: 1.116 MB / 0.5347 GB, free: 150.8 MB / 430.1 MB Notification: Performance of SimCode: time 1.212e-06/0.6926, allocations: 0 / 0.5347 GB, free: 150.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0732/0.7658, allocations: 51.48 MB / 0.585 GB, free: 112 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.84/14.6, allocations: 15.78 kB / 0.585 GB, free: 112 MB / 430.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