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.001278/0.001278, allocations: 106.6 kB / 17.73 MB, free: 5.348 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.00125/0.001251, allocations: 191 kB / 18.67 MB, free: 4.414 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.284/1.284, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001208/0.001208, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08293/0.08414, allocations: 46.61 MB / 374.6 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.1774/0.2616, allocations: 7.44 MB / 382.1 MB, free: 9.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00565/0.2673, allocations: 3.238 MB / 385.3 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001189/0.2686, allocations: 33.59 kB / 385.4 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002133/0.2707, allocations: 1.029 MB / 386.4 MB, free: 7.547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003725/0.2745, allocations: 1.364 MB / 387.7 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001119/0.2756, allocations: 460.2 kB / 388.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003767/0.2794, allocations: 2.644 MB / 390.8 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002305/0.2817, allocations: 1.53 MB / 392.4 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00173/0.2835, allocations: 0.8483 MB / 393.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001932/0.2854, allocations: 1.221 MB / 394.4 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004524/0.2859, allocations: 170.8 kB / 394.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002003/0.2879, allocations: 1.034 MB / 395.6 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000996/0.2889, allocations: 1.103 MB / 396.7 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001091/0.29, allocations: 1.314 MB / 398.1 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004253/0.2943, allocations: 4.387 MB / 402.4 MB, free: 84 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2943, allocations: 0 / 402.4 MB, free: 84 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2943, allocations: 1.125 kB / 402.4 MB, free: 84 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.136e-05/0.2944, allocations: 0 / 402.4 MB, free: 84 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.006667/0.3011, allocations: 3.068 MB / 405.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.3011, allocations: 12.92 kB / 405.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006766/0.3018, allocations: 471.7 kB / 406 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006521/0.3084, allocations: 1.747 MB / 407.7 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00374/0.3121, allocations: 1.853 MB / 409.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.3123, allocations: 128.9 kB / 409.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007879/0.3131, allocations: 255.5 kB / 410 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01111/0.3242, allocations: 6.661 MB / 416.6 MB, free: 5.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-05/0.3243, allocations: 23.81 kB / 416.6 MB, free: 5.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000278/0.3246, allocations: 87.89 kB / 416.7 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002045/0.3266, allocations: 1.37 MB / 418.1 MB, free: 3.793 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01107/0.3377, allocations: 6.029 MB / 424.1 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02985/0.3676, allocations: 25.52 MB / 449.7 MB, free: 3.473 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00684/0.3745, allocations: 2.656 MB / 452.3 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.376, allocations: 1.04 MB / 453.4 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005915/0.3819, allocations: 3.866 MB / 457.2 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.357e-05/0.382, allocations: 47.06 kB / 457.3 MB, free: 11.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 3.737e-06/0.382, allocations: 0 / 457.3 MB, free: 11.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.02547/0.4075, allocations: 10.34 MB / 467.6 MB, free: 0.9375 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001377/0.4089, allocations: 1.675 MB / 469.3 MB, free: 15.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003641/0.4126, allocations: 2.758 MB / 472 MB, free: 12.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001842/0.4128, allocations: 41.7 kB / 472.1 MB, free: 12.26 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.4141, allocations: 2.087 MB / 474.2 MB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005103/0.4146, allocations: 0.5054 MB / 474.7 MB, free: 9.625 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001123/0.4158, allocations: 0.9124 MB / 475.6 MB, free: 8.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.498e-05/0.4159, allocations: 305.1 kB / 475.9 MB, free: 8.398 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002271/0.4182, allocations: 1.625 MB / 477.5 MB, free: 6.766 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00396/0.4221, allocations: 4.428 MB / 481.9 MB, free: 0.9258 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007093/0.4292, allocations: 6.491 MB / 488.4 MB, free: 9.043 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.295e-05/0.4293, allocations: 28 kB / 488.4 MB, free: 9.016 MB / 414.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01342/0.4427, allocations: 7.034 MB / 495.5 MB, free: 1.961 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.461e-05/0.4428, allocations: 48.19 kB / 495.5 MB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005921/0.4488, allocations: 2.543 MB / 498.1 MB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004985/0.4538, allocations: 1.49 MB / 499.6 MB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00324/0.4571, allocations: 1.002 MB / 0.4888 GB, free: 12.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0105/0.4676, allocations: 7.784 MB / 0.4964 GB, free: 4.793 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004247/0.4719, allocations: 323.6 kB / 0.4967 GB, free: 4.477 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008362/0.4727, allocations: 280 kB / 0.497 GB, free: 4.203 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.002927/0.4757, allocations: 1.419 MB / 0.4984 GB, free: 2.773 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005457/0.4762, allocations: 236.8 kB / 0.4986 GB, free: 2.539 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006706/0.483, allocations: 2.846 MB / 0.5014 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00584/0.4888, allocations: 2.509 MB / 0.5039 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.149e-05/0.4889, allocations: 4 kB / 0.5039 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-05/0.4889, allocations: 11.92 kB / 0.5039 GB, free: 13.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01357/0.5025, allocations: 6.875 MB / 0.5106 GB, free: 6.148 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/0.5026, allocations: 0 / 0.5106 GB, free: 6.148 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008371/0.5034, allocations: 175.7 kB / 0.5107 GB, free: 5.977 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004622/0.508, allocations: 1.438 MB / 0.5122 GB, free: 4.527 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001596/0.5082, allocations: 27.98 kB / 0.5122 GB, free: 4.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01034/0.5186, allocations: 7.915 MB / 0.5199 GB, free: 12.31 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001051/0.5196, allocations: 1.553 MB / 0.5214 GB, free: 10.61 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008603/0.5283, allocations: 4.858 MB / 0.5262 GB, free: 5.711 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007/0.529, allocations: 290.5 kB / 0.5264 GB, free: 5.406 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003035/0.5293, allocations: 31.98 kB / 0.5265 GB, free: 5.375 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.5304, allocations: 107.8 kB / 0.5266 GB, free: 5.27 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002453/0.5307, allocations: 76.38 kB / 0.5267 GB, free: 5.195 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.5308, allocations: 39.98 kB / 0.5267 GB, free: 5.156 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002577/0.5334, allocations: 1.709 MB / 0.5284 GB, free: 3.438 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5334, allocations: 0 / 0.5284 GB, free: 3.438 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003647/0.537, allocations: 0.7734 MB / 0.5291 GB, free: 2.664 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.009027/0.5461, allocations: 5.491 MB / 0.5345 GB, free: 13.11 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007974/0.5541, allocations: 4.352 MB / 0.5387 GB, free: 8.73 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/0.5542, allocations: 4 kB / 0.5387 GB, free: 8.727 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003323/0.5575, allocations: 1.713 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.00246/0.56, allocations: 279.1 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.2345/0.7945, allocations: 33.72 MB / 0.5736 GB, free: 138.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002791/0.7973, allocations: 2.295 MB / 0.5758 GB, free: 137.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00292/0.8003, allocations: 1.411 MB / 0.5772 GB, free: 137.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001411/0.8017, allocations: 1.122 MB / 0.5783 GB, free: 136.4 MB / 478.1 MB Notification: Performance of SimCode: time 8.12e-07/0.8017, allocations: 0 / 0.5783 GB, free: 136.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07972/0.8814, allocations: 49.67 MB / 0.6268 GB, free: 91.56 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.29/18.17, allocations: 15.41 kB / 0.6268 GB, free: 91.54 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