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.001285/0.001285, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001277/0.001277, allocations: 198 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2869, allocations: 50.53 MB / 408.7 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008448/0.2953, allocations: 7.424 MB / 416.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006801/0.3022, allocations: 3.253 MB / 419.4 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/0.3033, allocations: 31.94 kB / 419.5 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002209/0.3056, allocations: 1.024 MB / 420.5 MB, free: 5.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003389/0.309, allocations: 1.339 MB / 421.8 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009676/0.31, allocations: 451.1 kB / 422.3 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003468/0.3134, allocations: 2.665 MB / 424.9 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001761/0.3152, allocations: 1.525 MB / 426.4 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001214/0.3164, allocations: 0.833 MB / 427.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001361/0.3178, allocations: 1.223 MB / 428.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003204/0.3182, allocations: 168 kB / 428.7 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001757/0.3199, allocations: 1.01 MB / 429.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008836/0.3208, allocations: 1.087 MB / 430.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00121/0.322, allocations: 1.301 MB / 432.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004724/0.3268, allocations: 4.325 MB / 436.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.3268, allocations: 0 / 436.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3268, allocations: 0 / 436.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001139/0.3269, allocations: 0 / 436.4 MB, free: 5.766 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.005803/0.3328, allocations: 3.036 MB / 439.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.3328, allocations: 8.031 kB / 439.4 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005412/0.3334, allocations: 478.9 kB / 439.9 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006607/0.34, allocations: 1.795 MB / 441.7 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003371/0.3434, allocations: 1.601 MB / 443.3 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.3435, allocations: 135.3 kB / 443.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007353/0.3442, allocations: 255.7 kB / 443.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01074/0.355, allocations: 6.679 MB / 450.4 MB, free: 7.219 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.739e-05/0.3551, allocations: 27.72 kB / 450.4 MB, free: 7.191 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002824/0.3554, allocations: 87.89 kB / 450.5 MB, free: 7.105 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0021/0.3575, allocations: 1.363 MB / 451.8 MB, free: 5.746 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01136/0.3689, allocations: 6.052 MB / 457.9 MB, free: 15.69 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03146/0.4004, allocations: 25.5 MB / 483.4 MB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007011/0.4074, allocations: 2.666 MB / 486 MB, free: 2.617 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00147/0.409, allocations: 1.036 MB / 487.1 MB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006064/0.415, allocations: 3.948 MB / 491 MB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.988e-05/0.4151, allocations: 55.06 kB / 491.1 MB, free: 13.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 4.488e-06/0.4151, allocations: 0 / 491.1 MB, free: 13.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02648/0.4416, allocations: 10.32 MB / 0.4896 GB, free: 2.801 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00131/0.443, allocations: 1.671 MB / 0.4913 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004068/0.4471, allocations: 2.737 MB / 0.494 GB, free: 14.19 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003032/0.4474, allocations: 49.61 kB / 0.494 GB, free: 14.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00185/0.4493, allocations: 2.075 MB / 0.496 GB, free: 12.03 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007285/0.45, allocations: 0.5016 MB / 0.4965 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001431/0.4514, allocations: 0.9202 MB / 0.4974 GB, free: 10.59 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.4517, allocations: 305.2 kB / 0.4977 GB, free: 10.29 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002516/0.4542, allocations: 1.625 MB / 0.4993 GB, free: 8.656 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004566/0.4588, allocations: 4.428 MB / 0.5036 GB, free: 2.82 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007656/0.4665, allocations: 6.499 MB / 0.51 GB, free: 10.94 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001305/0.4666, allocations: 28 kB / 0.51 GB, free: 10.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01634/0.483, allocations: 7.049 MB / 0.5169 GB, free: 3.84 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.433e-05/0.4831, allocations: 44 kB / 0.5169 GB, free: 3.797 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006136/0.4892, allocations: 2.556 MB / 0.5194 GB, free: 1.227 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005185/0.4945, allocations: 1.497 MB / 0.5209 GB, free: 15.72 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003356/0.4978, allocations: 1.006 MB / 0.5219 GB, free: 14.71 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01072/0.5086, allocations: 7.766 MB / 0.5294 GB, free: 6.668 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003518/0.5121, allocations: 323.5 kB / 0.5297 GB, free: 6.352 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007385/0.5129, allocations: 280 kB / 0.53 GB, free: 6.078 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.002955/0.5159, allocations: 1.437 MB / 0.5314 GB, free: 4.629 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005798/0.5165, allocations: 229 kB / 0.5316 GB, free: 4.402 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008084/0.5173, allocations: 333.9 kB / 0.532 GB, free: 4.066 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006141/0.5234, allocations: 2.521 MB / 0.5344 GB, free: 1.527 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.741e-05/0.5235, allocations: 11.98 kB / 0.5344 GB, free: 1.516 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.697e-05/0.5235, allocations: 3.984 kB / 0.5344 GB, free: 1.512 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2407/0.7642, allocations: 6.879 MB / 0.5412 GB, free: 121.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/0.7643, allocations: 0 / 0.5412 GB, free: 121.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000807/0.7651, allocations: 176.4 kB / 0.5413 GB, free: 121.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004482/0.7696, allocations: 1.432 MB / 0.5427 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001763/0.7698, allocations: 32.84 kB / 0.5427 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008206/0.778, allocations: 7.919 MB / 0.5505 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008605/0.7789, allocations: 1.536 MB / 0.552 GB, free: 115.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00738/0.7863, allocations: 4.871 MB / 0.5567 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005189/0.7868, allocations: 297.5 kB / 0.557 GB, free: 113.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003202/0.7872, allocations: 24 kB / 0.557 GB, free: 113.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/0.7882, allocations: 111.8 kB / 0.5572 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002522/0.7885, allocations: 80.92 kB / 0.5572 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.7886, allocations: 36.53 kB / 0.5573 GB, free: 113.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002315/0.7909, allocations: 1.693 MB / 0.5589 GB, free: 111.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.791, allocations: 3.938 kB / 0.5589 GB, free: 111.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00342/0.7944, allocations: 0.7546 MB / 0.5597 GB, free: 110.9 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.007439/0.8018, allocations: 5.5 MB / 0.565 GB, free: 105.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005997/0.8079, allocations: 4.365 MB / 0.5693 GB, free: 101.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.8079, allocations: 0 / 0.5693 GB, free: 101.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002537/0.8105, allocations: 1.716 MB / 0.571 GB, free: 99.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001604/0.8121, allocations: 273.9 kB / 0.5712 GB, free: 99.16 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03884/0.8509, allocations: 33.66 MB / 0.6041 GB, free: 61.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001717/0.8527, allocations: 2.286 MB / 0.6063 GB, free: 59.38 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002533/0.8552, allocations: 1.415 MB / 0.6077 GB, free: 57.95 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001206/0.8565, allocations: 1.112 MB / 0.6088 GB, free: 56.84 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.8565, allocations: 0 / 0.6088 GB, free: 56.84 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08122/0.9377, allocations: 49.41 MB / 0.6571 GB, free: 7.746 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.7/18.64, allocations: 18.31 kB / 0.6571 GB, free: 7.734 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.0.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