Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_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.00136/0.00136, allocations: 110.6 kB / 16.62 MB, free: 6.961 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.001471/0.001471, allocations: 190 kB / 17.54 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 41.16 kB / 300.2 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09644/0.09844, allocations: 49.44 MB / 349.7 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.0174/0.1159, allocations: 17.91 MB / 367.6 MB, free: 2.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1965/0.3125, allocations: 4.933 MB / 372.5 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002938/0.3154, allocations: 72.72 kB / 372.6 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002251/0.3177, allocations: 0.9747 MB / 373.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003601/0.3214, allocations: 1.283 MB / 374.9 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001139/0.3225, allocations: 430.7 kB / 375.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003927/0.3265, allocations: 2.659 MB / 377.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002537/0.329, allocations: 1.618 MB / 379.6 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001376/0.3304, allocations: 0.8525 MB / 380.4 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001812/0.3322, allocations: 1.359 MB / 381.8 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003367/0.3326, allocations: 170.4 kB / 381.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002208/0.3348, allocations: 1.05 MB / 383 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001047/0.3358, allocations: 1.125 MB / 384.1 MB, free: 7.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009838/0.3368, allocations: 1.324 MB / 385.4 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005649/0.3425, allocations: 4.244 MB / 389.7 MB, free: 3.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.3425, allocations: 3.938 kB / 389.7 MB, free: 3.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.3425, allocations: 0 / 389.7 MB, free: 3.926 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001164/0.3427, allocations: 0 / 389.7 MB, free: 3.926 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.007057/0.3497, allocations: 3.064 MB / 392.7 MB, free: 1.824 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.3498, allocations: 9.625 kB / 392.8 MB, free: 1.824 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005946/0.3504, allocations: 474 kB / 393.2 MB, free: 1.523 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00643/0.3568, allocations: 1.744 MB / 395 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003244/0.3601, allocations: 1.691 MB / 396.7 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.3602, allocations: 139.7 kB / 396.8 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006601/0.3609, allocations: 257.8 kB / 397 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01008/0.371, allocations: 6.66 MB / 403.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.101e-05/0.3711, allocations: 27.72 kB / 403.7 MB, free: 9.352 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002524/0.3713, allocations: 85.55 kB / 403.8 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00206/0.3734, allocations: 1.367 MB / 405.2 MB, free: 7.926 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01079/0.3842, allocations: 6.037 MB / 411.2 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02581/0.41, allocations: 25.59 MB / 436.8 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00638/0.4164, allocations: 2.662 MB / 439.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001238/0.4177, allocations: 1.032 MB / 440.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004867/0.4226, allocations: 3.861 MB / 444.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.4226, allocations: 43.12 kB / 444.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 3.106e-06/0.4226, allocations: 0 / 444.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.02576/0.4484, allocations: 10.29 MB / 454.7 MB, free: 5.227 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001169/0.4496, allocations: 1.687 MB / 456.4 MB, free: 3.359 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004016/0.4536, allocations: 2.73 MB / 459.1 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001673/0.4538, allocations: 41.7 kB / 459.2 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001349/0.4552, allocations: 2.094 MB / 461.3 MB, free: 14.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005413/0.4557, allocations: 0.5002 MB / 461.8 MB, free: 13.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001344/0.4571, allocations: 0.9116 MB / 462.7 MB, free: 13.05 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.158e-05/0.4572, allocations: 309.1 kB / 463 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002407/0.4596, allocations: 1.625 MB / 464.6 MB, free: 11.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003862/0.4635, allocations: 4.428 MB / 469 MB, free: 5.277 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006448/0.4699, allocations: 6.493 MB / 475.5 MB, free: 13.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-05/0.47, allocations: 28 kB / 475.5 MB, free: 13.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01281/0.4828, allocations: 7.036 MB / 482.6 MB, free: 6.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.845e-05/0.4829, allocations: 50.03 kB / 482.6 MB, free: 6.273 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005859/0.4888, allocations: 2.54 MB / 485.2 MB, free: 3.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005181/0.494, allocations: 1.493 MB / 486.7 MB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002856/0.4969, allocations: 1.014 MB / 487.7 MB, free: 1.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009791/0.5067, allocations: 7.77 MB / 495.4 MB, free: 9.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003391/0.5101, allocations: 325.4 kB / 495.8 MB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006619/0.5108, allocations: 280.2 kB / 496 MB, free: 8.57 MB / 414.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.002525/0.5133, allocations: 1.424 MB / 497.5 MB, free: 7.133 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004983/0.5138, allocations: 236.9 kB / 497.7 MB, free: 6.898 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006457/0.5203, allocations: 2.838 MB / 0.4888 GB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005536/0.5258, allocations: 2.517 MB / 0.4913 GB, free: 1.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.468e-05/0.5259, allocations: 4 kB / 0.4913 GB, free: 1.496 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.5259, allocations: 3.984 kB / 0.4913 GB, free: 1.492 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01331/0.5392, allocations: 6.872 MB / 0.498 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/0.5392, allocations: 7.938 kB / 0.498 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008184/0.5401, allocations: 167.8 kB / 0.4981 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004644/0.5447, allocations: 1.441 MB / 0.4995 GB, free: 8.938 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001813/0.5449, allocations: 31.97 kB / 0.4996 GB, free: 8.906 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01093/0.5559, allocations: 7.927 MB / 0.5073 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001124/0.557, allocations: 1.546 MB / 0.5088 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008835/0.5659, allocations: 4.848 MB / 0.5136 GB, free: 10.11 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007151/0.5666, allocations: 298 kB / 0.5138 GB, free: 9.797 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005004/0.5671, allocations: 24 kB / 0.5139 GB, free: 9.773 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/0.5685, allocations: 115.7 kB / 0.514 GB, free: 9.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002813/0.5688, allocations: 83.5 kB / 0.5141 GB, free: 9.582 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.5689, allocations: 35.98 kB / 0.5141 GB, free: 9.547 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002975/0.5719, allocations: 1.697 MB / 0.5157 GB, free: 7.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5719, allocations: 0 / 0.5157 GB, free: 7.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003582/0.5755, allocations: 0.7696 MB / 0.5165 GB, free: 7.07 MB / 446.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.008601/0.5841, allocations: 5.495 MB / 0.5219 GB, free: 1.531 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1502/0.7343, allocations: 4.665 MB / 0.5264 GB, free: 155.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/0.7343, allocations: 4.062 kB / 0.5264 GB, free: 155.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003125/0.7375, allocations: 1.716 MB / 0.5281 GB, free: 154.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/0.7393, allocations: 264.5 kB / 0.5284 GB, free: 154.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04678/0.7861, allocations: 37.08 MB / 0.5646 GB, free: 126.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001799/0.7879, allocations: 2.297 MB / 0.5668 GB, free: 124.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002764/0.7907, allocations: 1.409 MB / 0.5682 GB, free: 123.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001033/0.7917, allocations: 1.12 MB / 0.5693 GB, free: 122 MB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.7917, allocations: 0 / 0.5693 GB, free: 122 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7604/1.552, allocations: 51.36 MB / 0.6194 GB, free: 71 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002374/1.552, allocations: 256.5 kB / 0.6197 GB, free: 70.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.326/4.879, allocations: 64 / 0.6197 GB, free: 70.75 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches