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.001956/0.001956, allocations: 122.2 kB / 17.78 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002308/0.002308, allocations: 197.2 kB / 18.72 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.687/1.687, allocations: 227.4 MB / 246.9 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003007/0.003007, allocations: 71.88 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4064/0.4094, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01024/0.4197, allocations: 7.408 MB / 416.2 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007504/0.4273, allocations: 3.246 MB / 419.4 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008437/0.4282, allocations: 43.88 kB / 419.5 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002204/0.4304, allocations: 1.028 MB / 420.5 MB, free: 5.777 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003776/0.4342, allocations: 1.335 MB / 421.8 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.4353, allocations: 459.1 kB / 422.3 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004883/0.4402, allocations: 2.664 MB / 424.9 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002448/0.4426, allocations: 1.524 MB / 426.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001494/0.4442, allocations: 0.8329 MB / 427.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002316/0.4465, allocations: 1.219 MB / 428.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003803/0.4469, allocations: 172 kB / 428.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002492/0.4494, allocations: 1.006 MB / 429.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001741/0.4512, allocations: 1.091 MB / 430.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00135/0.4525, allocations: 1.289 MB / 432.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006444/0.459, allocations: 4.348 MB / 436.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.459, allocations: 0 / 436.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.459, allocations: 4 kB / 436.4 MB, free: 5.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.124e-05/0.4591, allocations: 0 / 436.4 MB, free: 5.77 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.00733/0.4665, allocations: 3.116 MB / 439.5 MB, free: 2.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.755e-05/0.4665, allocations: 8.031 kB / 439.5 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007181/0.4673, allocations: 466.9 kB / 440 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008181/0.4755, allocations: 1.824 MB / 441.8 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003853/0.4793, allocations: 1.605 MB / 443.4 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.4795, allocations: 131.3 kB / 443.5 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001131/0.4806, allocations: 259.8 kB / 443.8 MB, free: 14.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01399/0.4946, allocations: 6.676 MB / 450.5 MB, free: 7.121 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.75e-05/0.4948, allocations: 35.69 kB / 450.5 MB, free: 7.086 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002904/0.4951, allocations: 83.89 kB / 450.6 MB, free: 7.004 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002303/0.4974, allocations: 1.363 MB / 452 MB, free: 5.645 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0119/0.5093, allocations: 6.048 MB / 458 MB, free: 15.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03544/0.5448, allocations: 25.54 MB / 483.6 MB, free: 5.289 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007303/0.5521, allocations: 2.679 MB / 486.2 MB, free: 2.461 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001561/0.5537, allocations: 1.036 MB / 487.3 MB, free: 1.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007247/0.561, allocations: 3.945 MB / 491.2 MB, free: 13.2 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.862e-05/0.5611, allocations: 47.06 kB / 491.3 MB, free: 13.14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 3.988e-06/0.5611, allocations: 0 / 491.3 MB, free: 13.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.0328/0.5939, allocations: 10.46 MB / 0.49 GB, free: 2.527 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00161/0.5955, allocations: 1.671 MB / 0.4916 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005305/0.6009, allocations: 2.738 MB / 0.4943 GB, free: 13.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003058/0.6012, allocations: 45.73 kB / 0.4943 GB, free: 13.87 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002217/0.6034, allocations: 2.175 MB / 0.4964 GB, free: 11.67 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007251/0.6042, allocations: 0.5273 MB / 0.4969 GB, free: 11.14 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001839/0.6061, allocations: 0.9171 MB / 0.4978 GB, free: 10.21 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.6062, allocations: 301.1 kB / 0.4981 GB, free: 9.914 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002944/0.6091, allocations: 1.629 MB / 0.4997 GB, free: 8.277 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006426/0.6156, allocations: 4.432 MB / 0.504 GB, free: 2.438 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009986/0.6257, allocations: 6.499 MB / 0.5104 GB, free: 10.55 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.451e-05/0.6258, allocations: 28 kB / 0.5104 GB, free: 10.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01784/0.6436, allocations: 7.058 MB / 0.5173 GB, free: 3.449 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.16e-05/0.6437, allocations: 52.44 kB / 0.5174 GB, free: 3.398 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006854/0.6506, allocations: 2.543 MB / 0.5198 GB, free: 0.8398 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005993/0.6566, allocations: 1.504 MB / 0.5213 GB, free: 15.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00411/0.6608, allocations: 0.9981 MB / 0.5223 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01271/0.6736, allocations: 7.77 MB / 0.5299 GB, free: 6.277 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003853/0.6774, allocations: 331.7 kB / 0.5302 GB, free: 5.953 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006867/0.6782, allocations: 288 kB / 0.5305 GB, free: 5.672 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.002688/0.6809, allocations: 1.426 MB / 0.5319 GB, free: 4.234 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005265/0.6814, allocations: 242.4 kB / 0.5321 GB, free: 3.996 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000643/0.682, allocations: 329.9 kB / 0.5324 GB, free: 3.664 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006327/0.6884, allocations: 2.525 MB / 0.5349 GB, free: 1.121 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/0.6884, allocations: 4 kB / 0.5349 GB, free: 1.117 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.949e-05/0.6884, allocations: 7.969 kB / 0.5349 GB, free: 1.109 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2859/0.9744, allocations: 6.868 MB / 0.5416 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.298e-05/0.9744, allocations: 6.812 kB / 0.5416 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000793/0.9752, allocations: 175.8 kB / 0.5418 GB, free: 121.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004442/0.9797, allocations: 1.429 MB / 0.5432 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001404/0.9799, allocations: 39.23 kB / 0.5432 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008194/0.9881, allocations: 7.929 MB / 0.5509 GB, free: 117.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001131/0.9892, allocations: 1.541 MB / 0.5524 GB, free: 115.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008319/0.9976, allocations: 4.888 MB / 0.5572 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001039/0.9987, allocations: 302.1 kB / 0.5575 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003165/0.9991, allocations: 31.48 kB / 0.5575 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/1, allocations: 115.8 kB / 0.5576 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002435/1, allocations: 77.81 kB / 0.5577 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.63e-05/1, allocations: 39.98 kB / 0.5578 GB, free: 112.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002693/1.003, allocations: 1.693 MB / 0.5594 GB, free: 111.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/1.003, allocations: 0 / 0.5594 GB, free: 111.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004526/1.008, allocations: 0.7458 MB / 0.5601 GB, free: 110.4 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.008721/1.016, allocations: 5.523 MB / 0.5655 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007574/1.024, allocations: 4.362 MB / 0.5698 GB, free: 100.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/1.024, allocations: 0 / 0.5698 GB, free: 100.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00305/1.027, allocations: 1.721 MB / 0.5715 GB, free: 98.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002455/1.03, allocations: 269.1 kB / 0.5717 GB, free: 98.67 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04929/1.079, allocations: 33.78 MB / 0.6047 GB, free: 61.07 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002151/1.081, allocations: 2.289 MB / 0.607 GB, free: 58.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003341/1.085, allocations: 1.411 MB / 0.6083 GB, free: 57.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00135/1.086, allocations: 1.112 MB / 0.6094 GB, free: 56.21 MB / 462.1 MB Notification: Performance of SimCode: time 5.81e-07/1.086, allocations: 0 / 0.6094 GB, free: 56.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1546/1.241, allocations: 48.52 MB / 0.6568 GB, free: 8.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.94/20.18, allocations: 6.5 kB / 0.6568 GB, free: 8.016 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 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.csv","/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