Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001234/0.001234, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 247 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001881/0.001881, allocations: 59.91 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2847/0.2866, allocations: 50.55 MB / 408.8 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008747/0.2954, allocations: 7.413 MB / 416.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006426/0.3019, allocations: 3.246 MB / 419.5 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009785/0.3029, allocations: 35.94 kB / 419.5 MB, free: 6.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00213/0.3051, allocations: 1.031 MB / 420.6 MB, free: 5.703 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003459/0.3085, allocations: 1.331 MB / 421.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001109/0.3097, allocations: 463.1 kB / 422.3 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003715/0.3134, allocations: 2.664 MB / 425 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002001/0.3154, allocations: 1.524 MB / 426.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00123/0.3166, allocations: 0.833 MB / 427.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001577/0.3182, allocations: 1.219 MB / 428.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003566/0.3186, allocations: 168 kB / 428.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002014/0.3206, allocations: 1.006 MB / 429.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001178/0.3218, allocations: 1.095 MB / 430.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001343/0.3232, allocations: 1.293 MB / 432.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005364/0.3285, allocations: 4.345 MB / 436.5 MB, free: 5.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.142e-06/0.3286, allocations: 0 / 436.5 MB, free: 5.703 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3286, allocations: 4 kB / 436.5 MB, free: 5.699 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.775e-05/0.3287, allocations: 0 / 436.5 MB, free: 5.699 MB / 350.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.007808/0.3365, allocations: 3.112 MB / 439.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.359e-05/0.3366, allocations: 12.03 kB / 439.6 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007333/0.3373, allocations: 466.9 kB / 440.1 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006969/0.3443, allocations: 1.832 MB / 441.9 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003958/0.3483, allocations: 1.597 MB / 443.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.3485, allocations: 139.3 kB / 443.6 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000676/0.3491, allocations: 263.7 kB / 443.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/0.3614, allocations: 6.672 MB / 450.6 MB, free: 7.039 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.733e-05/0.3616, allocations: 23.81 kB / 450.6 MB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002958/0.3619, allocations: 87.89 kB / 450.7 MB, free: 6.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002348/0.3642, allocations: 1.367 MB / 452 MB, free: 5.566 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01254/0.3768, allocations: 6.041 MB / 458.1 MB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03616/0.413, allocations: 25.56 MB / 483.6 MB, free: 5.203 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007437/0.4205, allocations: 2.666 MB / 486.3 MB, free: 2.387 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001587/0.4221, allocations: 1.032 MB / 487.3 MB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006676/0.4288, allocations: 3.953 MB / 491.3 MB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.06e-05/0.4289, allocations: 47.06 kB / 491.3 MB, free: 13.06 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 4.368e-06/0.4289, allocations: 0 / 491.3 MB, free: 13.06 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02973/0.4586, allocations: 10.46 MB / 0.49 GB, free: 2.445 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001672/0.4604, allocations: 1.667 MB / 0.4917 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005174/0.4656, allocations: 2.742 MB / 0.4943 GB, free: 13.84 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002672/0.4659, allocations: 49.67 kB / 0.4944 GB, free: 13.79 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001958/0.4678, allocations: 2.171 MB / 0.4965 GB, free: 11.59 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007778/0.4686, allocations: 0.5195 MB / 0.497 GB, free: 11.07 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001735/0.4704, allocations: 0.9249 MB / 0.4979 GB, free: 10.13 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.4705, allocations: 301.1 kB / 0.4982 GB, free: 9.832 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002772/0.4733, allocations: 1.629 MB / 0.4998 GB, free: 8.195 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005277/0.4786, allocations: 4.432 MB / 0.5041 GB, free: 2.355 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009096/0.4877, allocations: 6.495 MB / 0.5105 GB, free: 10.47 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001427/0.4879, allocations: 28 kB / 0.5105 GB, free: 10.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.0169/0.5048, allocations: 7.066 MB / 0.5174 GB, free: 3.363 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001167/0.505, allocations: 52.25 kB / 0.5174 GB, free: 3.312 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006306/0.5113, allocations: 2.539 MB / 0.5199 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005228/0.5165, allocations: 1.5 MB / 0.5214 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003377/0.5199, allocations: 1.006 MB / 0.5224 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0111/0.5311, allocations: 7.771 MB / 0.53 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003583/0.5347, allocations: 331.7 kB / 0.5303 GB, free: 5.867 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007523/0.5354, allocations: 280 kB / 0.5305 GB, free: 5.594 MB / 462.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.002816/0.5383, allocations: 1.418 MB / 0.5319 GB, free: 4.164 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005684/0.5388, allocations: 246.4 kB / 0.5322 GB, free: 3.922 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008167/0.5397, allocations: 329.9 kB / 0.5325 GB, free: 3.59 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006117/0.5458, allocations: 2.529 MB / 0.5349 GB, free: 1.043 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.528e-05/0.5458, allocations: 4 kB / 0.535 GB, free: 1.039 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.5459, allocations: 3.984 kB / 0.535 GB, free: 1.035 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.236/0.7818, allocations: 6.876 MB / 0.5417 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.789e-06/0.7819, allocations: 3.906 kB / 0.5417 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007727/0.7826, allocations: 179.4 kB / 0.5418 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004361/0.787, allocations: 1.428 MB / 0.5432 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001227/0.7872, allocations: 24.7 kB / 0.5433 GB, free: 121.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008303/0.7955, allocations: 7.935 MB / 0.551 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000768/0.7963, allocations: 1.533 MB / 0.5525 GB, free: 115.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007556/0.8038, allocations: 4.885 MB / 0.5573 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007355/0.8046, allocations: 304.2 kB / 0.5576 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002565/0.8049, allocations: 27.98 kB / 0.5576 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.806, allocations: 115.8 kB / 0.5577 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000278/0.8063, allocations: 84.31 kB / 0.5578 GB, free: 112.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.511e-05/0.8064, allocations: 31.98 kB / 0.5578 GB, free: 112.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002155/0.8085, allocations: 1.697 MB / 0.5595 GB, free: 111 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8086, allocations: 0 / 0.5595 GB, free: 111 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00358/0.8121, allocations: 0.7479 MB / 0.5602 GB, free: 110.3 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.007559/0.8197, allocations: 5.53 MB / 0.5656 GB, free: 104.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006033/0.8258, allocations: 4.359 MB / 0.5699 GB, free: 100.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.8258, allocations: 0 / 0.5699 GB, free: 100.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002645/0.8285, allocations: 1.736 MB / 0.5716 GB, free: 98.75 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001876/0.8304, allocations: 265.7 kB / 0.5718 GB, free: 98.49 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04244/0.8728, allocations: 33.77 MB / 0.6048 GB, free: 60.89 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002584/0.8755, allocations: 2.301 MB / 0.607 GB, free: 58.56 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002689/0.8782, allocations: 1.411 MB / 0.6084 GB, free: 57.14 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001367/0.8795, allocations: 1.116 MB / 0.6095 GB, free: 56.03 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.8796, allocations: 0 / 0.6095 GB, free: 56.03 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.442/4.322, allocations: 48.5 MB / 0.6569 GB, free: 7.848 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.07/22.39, allocations: 11.8 kB / 0.6569 GB, free: 7.84 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches