Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001128/0.001128, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001337/0.001337, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2407, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01289/0.2536, allocations: 11.97 MB / 420.7 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009064/0.2628, allocations: 4.215 MB / 424.9 MB, free: 1.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002598/0.2654, allocations: 71.81 kB / 425 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005572/0.271, allocations: 2.749 MB / 427.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005211/0.2763, allocations: 1.976 MB / 429.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001968/0.2783, allocations: 0.815 MB / 430.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006368/0.2847, allocations: 4.683 MB / 435.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005226/0.2899, allocations: 3.543 MB / 438.8 MB, free: 3.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003194/0.2932, allocations: 1.674 MB / 440.5 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003746/0.2969, allocations: 2.336 MB / 442.8 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001248/0.2982, allocations: 352 kB / 443.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002726/0.301, allocations: 1.256 MB / 444.4 MB, free: 13.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002371/0.3034, allocations: 2.092 MB / 446.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003517/0.3069, allocations: 2.415 MB / 448.9 MB, free: 9.203 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008377/0.3153, allocations: 7.509 MB / 456.4 MB, free: 1.664 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3153, allocations: 4 kB / 456.4 MB, free: 1.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3153, allocations: 0 / 456.4 MB, free: 1.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002293/0.3156, allocations: 4 kB / 456.4 MB, free: 1.656 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01178/0.3274, allocations: 5.392 MB / 461.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.3274, allocations: 8.031 kB / 461.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001725/0.3291, allocations: 0.8021 MB / 462.6 MB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008427/0.3376, allocations: 2.221 MB / 464.8 MB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005991/0.3436, allocations: 2.936 MB / 467.8 MB, free: 6.141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.3438, allocations: 274.9 kB / 468 MB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001184/0.345, allocations: 435.6 kB / 468.5 MB, free: 5.445 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0235/0.3685, allocations: 12.27 MB / 480.7 MB, free: 8.363 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001362/0.3687, allocations: 51.52 kB / 480.8 MB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006336/0.3694, allocations: 171.8 kB / 481 MB, free: 8.145 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003249/0.3726, allocations: 2.166 MB / 483.1 MB, free: 5.977 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0222/0.3948, allocations: 10.25 MB / 493.4 MB, free: 11.71 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0569/0.4518, allocations: 44.16 MB / 0.5249 GB, free: 14.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01203/0.4639, allocations: 4.644 MB / 0.5295 GB, free: 9.449 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002462/0.4664, allocations: 1.723 MB / 0.5312 GB, free: 7.723 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2286/0.695, allocations: 8.272 MB / 0.5392 GB, free: 123.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.332e-05/0.6951, allocations: 59.88 kB / 0.5393 GB, free: 123.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 5.17e-06/0.6951, allocations: 0 / 0.5393 GB, free: 123.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.0362/0.7313, allocations: 16.33 MB / 0.5552 GB, free: 118 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009462/0.7323, allocations: 1.691 MB / 0.5569 GB, free: 116.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004549/0.7369, allocations: 4.213 MB / 0.561 GB, free: 113.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000284/0.7372, allocations: 49.7 kB / 0.561 GB, free: 113.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001341/0.7385, allocations: 3.543 MB / 0.5645 GB, free: 110.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006902/0.7392, allocations: 0.8396 MB / 0.5653 GB, free: 109.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001268/0.7405, allocations: 1.354 MB / 0.5667 GB, free: 108.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.839e-05/0.7405, allocations: 304.9 kB / 0.5669 GB, free: 108.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002733/0.7433, allocations: 2.246 MB / 0.5691 GB, free: 106 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003695/0.747, allocations: 6.378 MB / 0.5754 GB, free: 97.63 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007412/0.7544, allocations: 9.287 MB / 0.5844 GB, free: 86.31 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.25e-05/0.7545, allocations: 44 kB / 0.5845 GB, free: 86.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01272/0.7672, allocations: 9.133 MB / 0.5934 GB, free: 77.12 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.538e-05/0.7674, allocations: 72.06 kB / 0.5935 GB, free: 77.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004693/0.7721, allocations: 2.875 MB / 0.5963 GB, free: 74.17 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002937/0.775, allocations: 1.065 MB / 0.5973 GB, free: 73.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004161/0.7792, allocations: 1.579 MB / 0.5989 GB, free: 71.51 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003627/0.7828, allocations: 4.676 MB / 0.6034 GB, free: 66.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004623/0.7875, allocations: 427.5 kB / 0.6038 GB, free: 66.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00072/0.7882, allocations: 419.7 kB / 0.6042 GB, free: 65.73 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003169/0.7914, allocations: 2.228 MB / 0.6064 GB, free: 63.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007713/0.7922, allocations: 389.4 kB / 0.6068 GB, free: 63.12 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00575/0.7979, allocations: 3.313 MB / 0.61 GB, free: 59.77 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004474/0.8024, allocations: 2.776 MB / 0.6127 GB, free: 56.98 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.581e-05/0.8025, allocations: 12.5 kB / 0.6127 GB, free: 56.97 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.007e-05/0.8025, allocations: 7.969 kB / 0.6127 GB, free: 56.96 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01756/0.8201, allocations: 10.38 MB / 0.6229 GB, free: 46.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-05/0.8201, allocations: 12.94 kB / 0.6229 GB, free: 46.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00149/0.8216, allocations: 387.4 kB / 0.6233 GB, free: 45.96 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00261/0.8243, allocations: 0.9786 MB / 0.6242 GB, free: 44.97 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002518/0.8245, allocations: 67.91 kB / 0.6243 GB, free: 44.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003994/0.8285, allocations: 4.915 MB / 0.6291 GB, free: 39.72 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007326/0.8293, allocations: 1.565 MB / 0.6306 GB, free: 38 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007651/0.837, allocations: 5.989 MB / 0.6364 GB, free: 31.81 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/0.8381, allocations: 454.5 kB / 0.6369 GB, free: 31.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004872/0.8386, allocations: 59.98 kB / 0.6369 GB, free: 31.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001708/0.8403, allocations: 151.8 kB / 0.6371 GB, free: 31.14 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002736/0.8406, allocations: 176.4 kB / 0.6373 GB, free: 30.96 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/0.8407, allocations: 79.98 kB / 0.6373 GB, free: 30.89 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00339/0.8441, allocations: 2.594 MB / 0.6399 GB, free: 28.29 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.8441, allocations: 0 / 0.6399 GB, free: 28.29 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005098/0.8492, allocations: 1.12 MB / 0.641 GB, free: 27.17 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008089/0.8573, allocations: 6.678 MB / 0.6475 GB, free: 20.28 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009007/0.8664, allocations: 5.962 MB / 0.6533 GB, free: 14.29 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/0.8664, allocations: 4 kB / 0.6533 GB, free: 14.29 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003592/0.87, allocations: 2.22 MB / 0.6555 GB, free: 11.99 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00313/0.8732, allocations: 0.4913 MB / 0.656 GB, free: 11.51 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07411/0.9473, allocations: 50.73 MB / 0.7055 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004658/0.952, allocations: 3.454 MB / 0.7089 GB, free: 14.43 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004575/0.9566, allocations: 2.022 MB / 0.7108 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003112/0.9598, allocations: 2.093 MB / 0.7129 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of SimCode: time 2.575e-06/0.9598, allocations: 0 / 0.7129 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3235/1.283, allocations: 72.9 MB / 0.7841 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 58.76/60.05, allocations: 9.484 kB / 0.7841 GB, free: 157.2 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches