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.001266/0.001266, allocations: 113.9 kB / 17.74 MB, free: 5.355 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.001348/0.001348, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.358/1.358, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001588/0.001588, allocations: 51.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08127/0.08287, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.1657/0.2486, allocations: 7.439 MB / 382.1 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00504/0.2537, allocations: 3.24 MB / 385.3 MB, free: 7.988 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007035/0.2545, allocations: 37.38 kB / 385.4 MB, free: 7.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001826/0.2564, allocations: 1.027 MB / 386.4 MB, free: 7.555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002749/0.2591, allocations: 1.364 MB / 387.8 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009726/0.2601, allocations: 458.6 kB / 388.2 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003183/0.2633, allocations: 2.643 MB / 390.8 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001759/0.2651, allocations: 1.524 MB / 392.4 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001268/0.2664, allocations: 0.8493 MB / 393.2 MB, free: 4.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001564/0.2679, allocations: 1.219 MB / 394.4 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003987/0.2683, allocations: 171 kB / 394.6 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001874/0.2702, allocations: 1.027 MB / 395.6 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008822/0.2711, allocations: 1.106 MB / 396.7 MB, free: 3.816 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001018/0.2721, allocations: 1.308 MB / 398 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004034/0.2762, allocations: 4.399 MB / 402.4 MB, free: 84 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2762, allocations: 4 kB / 402.5 MB, free: 80 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2762, allocations: 3.938 kB / 402.5 MB, free: 76 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.418e-05/0.2763, allocations: 0 / 402.5 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.006909/0.2832, allocations: 3.157 MB / 405.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.2833, allocations: 9.281 kB / 405.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007908/0.2841, allocations: 476.2 kB / 406.1 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006831/0.2909, allocations: 1.757 MB / 407.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003724/0.2947, allocations: 1.864 MB / 409.7 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.2948, allocations: 137 kB / 409.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006782/0.2955, allocations: 258 kB / 410.1 MB, free: 11.22 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01129/0.3068, allocations: 6.653 MB / 416.7 MB, free: 5.133 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.903e-05/0.3069, allocations: 31.75 kB / 416.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002608/0.3072, allocations: 87.89 kB / 416.9 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00222/0.3094, allocations: 1.367 MB / 418.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01109/0.3205, allocations: 6.029 MB / 424.3 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03012/0.3506, allocations: 25.57 MB / 449.8 MB, free: 3.293 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006898/0.3576, allocations: 2.663 MB / 452.5 MB, free: 496 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001418/0.359, allocations: 1.036 MB / 453.5 MB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005574/0.3646, allocations: 3.865 MB / 457.4 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.394e-05/0.3647, allocations: 43.12 kB / 457.4 MB, free: 11.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 3.767e-06/0.3647, allocations: 0 / 457.4 MB, free: 11.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.02692/0.3916, allocations: 10.49 MB / 467.9 MB, free: 0.625 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001482/0.3931, allocations: 1.675 MB / 469.6 MB, free: 14.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003861/0.397, allocations: 2.758 MB / 472.4 MB, free: 11.99 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002143/0.3972, allocations: 41.7 kB / 472.4 MB, free: 11.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001587/0.3988, allocations: 2.175 MB / 474.6 MB, free: 9.746 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006238/0.3995, allocations: 0.5273 MB / 475.1 MB, free: 9.215 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001271/0.4007, allocations: 0.9171 MB / 476 MB, free: 8.285 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.4009, allocations: 313 kB / 476.3 MB, free: 7.977 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00251/0.4034, allocations: 1.625 MB / 477.9 MB, free: 6.344 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004741/0.4081, allocations: 4.424 MB / 482.4 MB, free: 0.5078 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007778/0.4159, allocations: 6.498 MB / 488.9 MB, free: 8.617 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.2e-05/0.416, allocations: 28 kB / 488.9 MB, free: 8.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01398/0.43, allocations: 7.055 MB / 496 MB, free: 1.516 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.666e-05/0.4301, allocations: 44 kB / 496 MB, free: 1.473 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006095/0.4362, allocations: 2.536 MB / 498.5 MB, free: 14.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005115/0.4414, allocations: 1.49 MB / 0.4883 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003045/0.4444, allocations: 1.006 MB / 0.4893 GB, free: 12.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01089/0.4553, allocations: 7.777 MB / 0.4969 GB, free: 4.363 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003566/0.4589, allocations: 323.7 kB / 0.4972 GB, free: 4.047 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005827/0.4595, allocations: 280 kB / 0.4975 GB, free: 3.773 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.002255/0.4618, allocations: 1.434 MB / 0.4989 GB, free: 2.328 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004371/0.4622, allocations: 250.4 kB / 0.4991 GB, free: 2.082 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006767/0.469, allocations: 2.835 MB / 0.5019 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006001/0.475, allocations: 2.513 MB / 0.5043 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/0.4751, allocations: 8 kB / 0.5043 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-05/0.4751, allocations: 7.922 kB / 0.5043 GB, free: 12.67 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01352/0.4886, allocations: 6.875 MB / 0.511 GB, free: 5.699 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.868e-06/0.4887, allocations: 0 / 0.511 GB, free: 5.699 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008067/0.4895, allocations: 175.7 kB / 0.5112 GB, free: 5.527 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004899/0.4944, allocations: 1.434 MB / 0.5126 GB, free: 4.082 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001542/0.4946, allocations: 31.97 kB / 0.5126 GB, free: 4.051 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01091/0.5055, allocations: 7.923 MB / 0.5204 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001214/0.5067, allocations: 1.546 MB / 0.5219 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009067/0.5158, allocations: 4.875 MB / 0.5267 GB, free: 5.246 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007276/0.5166, allocations: 311.3 kB / 0.5269 GB, free: 4.922 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003036/0.5169, allocations: 20 kB / 0.527 GB, free: 4.902 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.518, allocations: 111.8 kB / 0.5271 GB, free: 4.793 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002793/0.5183, allocations: 88.36 kB / 0.5272 GB, free: 4.707 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.5184, allocations: 35.98 kB / 0.5272 GB, free: 4.672 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002813/0.5212, allocations: 1.705 MB / 0.5289 GB, free: 2.957 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5213, allocations: 0 / 0.5289 GB, free: 2.957 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003928/0.5252, allocations: 0.7655 MB / 0.5296 GB, free: 2.191 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.009563/0.5348, allocations: 5.512 MB / 0.535 GB, free: 12.62 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007606/0.5424, allocations: 4.356 MB / 0.5392 GB, free: 8.234 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5424, allocations: 0 / 0.5392 GB, free: 8.234 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003268/0.5457, allocations: 1.717 MB / 0.5409 GB, free: 6.469 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/0.5476, allocations: 284.1 kB / 0.5412 GB, free: 6.191 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2205/0.7681, allocations: 33.84 MB / 0.5742 GB, free: 138.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002021/0.7702, allocations: 2.298 MB / 0.5765 GB, free: 137.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002496/0.7727, allocations: 1.409 MB / 0.5779 GB, free: 137.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001079/0.7738, allocations: 1.115 MB / 0.5789 GB, free: 136.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.523e-06/0.7738, allocations: 0 / 0.5789 GB, free: 136.5 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3494/1.123, allocations: 48.77 MB / 0.6266 GB, free: 91.98 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.26/19.38, allocations: 10.91 kB / 0.6266 GB, free: 91.97 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