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.001548/0.001549, allocations: 118.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.001435/0.001436, allocations: 198 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.429/1.429, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 67.88 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2417/0.2434, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01433/0.2578, allocations: 11.97 MB / 420.8 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009352/0.2672, allocations: 4.207 MB / 425 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0021/0.2694, allocations: 71.81 kB / 425 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005983/0.2754, allocations: 2.745 MB / 427.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005789/0.2812, allocations: 1.93 MB / 429.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002242/0.2835, allocations: 0.815 MB / 430.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007291/0.2908, allocations: 4.679 MB / 435.2 MB, free: 7.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005656/0.2965, allocations: 3.543 MB / 438.8 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003269/0.2998, allocations: 1.682 MB / 440.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004058/0.3038, allocations: 2.332 MB / 442.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001151/0.305, allocations: 352 kB / 443.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00305/0.3081, allocations: 1.252 MB / 444.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002799/0.3109, allocations: 2.081 MB / 446.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00399/0.3149, allocations: 2.412 MB / 448.9 MB, free: 9.289 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01026/0.3252, allocations: 7.509 MB / 456.4 MB, free: 1.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3252, allocations: 0 / 456.4 MB, free: 1.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3252, allocations: 0 / 456.4 MB, free: 1.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002181/0.3255, allocations: 0 / 456.4 MB, free: 1.75 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.01221/0.3377, allocations: 5.402 MB / 461.8 MB, free: 12.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.75e-05/0.3377, allocations: 11.97 kB / 461.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001664/0.3394, allocations: 0.7982 MB / 462.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008852/0.3483, allocations: 2.221 MB / 464.8 MB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005949/0.3543, allocations: 2.934 MB / 467.7 MB, free: 6.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002816/0.3546, allocations: 282.8 kB / 468 MB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001467/0.3561, allocations: 423.7 kB / 468.4 MB, free: 5.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02422/0.3803, allocations: 12.27 MB / 480.7 MB, free: 8.445 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001244/0.3805, allocations: 47.58 kB / 480.7 MB, free: 8.398 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004853/0.381, allocations: 171.8 kB / 480.9 MB, free: 8.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003528/0.3845, allocations: 2.158 MB / 483.1 MB, free: 6.07 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02328/0.4078, allocations: 10.25 MB / 493.3 MB, free: 11.8 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05785/0.4657, allocations: 44.17 MB / 0.5249 GB, free: 14.39 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01241/0.4781, allocations: 4.648 MB / 0.5294 GB, free: 9.535 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002693/0.4809, allocations: 1.724 MB / 0.5311 GB, free: 7.805 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2021/0.683, allocations: 8.27 MB / 0.5392 GB, free: 123.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/0.6831, allocations: 53.84 kB / 0.5392 GB, free: 123.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 5.069e-06/0.6831, allocations: 0.5 kB / 0.5392 GB, free: 123.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.03746/0.7206, allocations: 16.32 MB / 0.5552 GB, free: 118 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009434/0.7215, allocations: 1.697 MB / 0.5568 GB, free: 116.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004517/0.7261, allocations: 4.218 MB / 0.561 GB, free: 114 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003437/0.7264, allocations: 53.38 kB / 0.561 GB, free: 113.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001558/0.728, allocations: 3.542 MB / 0.5645 GB, free: 110.9 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007465/0.7288, allocations: 0.8367 MB / 0.5653 GB, free: 110 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001326/0.7301, allocations: 1.365 MB / 0.5666 GB, free: 108.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.904e-05/0.7302, allocations: 305.1 kB / 0.5669 GB, free: 108.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00272/0.7329, allocations: 2.246 MB / 0.5691 GB, free: 106.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004039/0.7369, allocations: 6.372 MB / 0.5753 GB, free: 97.75 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007252/0.7442, allocations: 9.281 MB / 0.5844 GB, free: 86.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.271e-05/0.7443, allocations: 47.94 kB / 0.5844 GB, free: 86.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.0134/0.7577, allocations: 9.137 MB / 0.5934 GB, free: 77.24 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.458e-05/0.7578, allocations: 68 kB / 0.5934 GB, free: 77.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004651/0.7625, allocations: 2.876 MB / 0.5962 GB, free: 74.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002948/0.7654, allocations: 1.072 MB / 0.5973 GB, free: 73.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004428/0.7699, allocations: 1.579 MB / 0.5988 GB, free: 71.62 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003694/0.7736, allocations: 4.678 MB / 0.6034 GB, free: 66.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004733/0.7783, allocations: 423.5 kB / 0.6038 GB, free: 66.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009486/0.7793, allocations: 416 kB / 0.6042 GB, free: 65.85 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.003145/0.7825, allocations: 2.221 MB / 0.6064 GB, free: 63.62 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006815/0.7831, allocations: 389.4 kB / 0.6067 GB, free: 63.24 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005737/0.7889, allocations: 3.313 MB / 0.61 GB, free: 59.89 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004489/0.7934, allocations: 2.791 MB / 0.6127 GB, free: 57.09 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.7934, allocations: 4 kB / 0.6127 GB, free: 57.08 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.937e-05/0.7934, allocations: 7.969 kB / 0.6127 GB, free: 57.07 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0157/0.8092, allocations: 10.37 MB / 0.6228 GB, free: 46.47 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-05/0.8092, allocations: 12 kB / 0.6228 GB, free: 46.46 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/0.8106, allocations: 375.4 kB / 0.6232 GB, free: 46.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002648/0.8133, allocations: 0.9867 MB / 0.6242 GB, free: 45.09 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001842/0.8135, allocations: 63.97 kB / 0.6242 GB, free: 45.03 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003925/0.8174, allocations: 4.916 MB / 0.629 GB, free: 39.84 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000681/0.8181, allocations: 1.573 MB / 0.6306 GB, free: 38.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007684/0.8258, allocations: 5.985 MB / 0.6364 GB, free: 31.92 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009433/0.8268, allocations: 458.2 kB / 0.6368 GB, free: 31.45 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003897/0.8272, allocations: 59.98 kB / 0.6369 GB, free: 31.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001559/0.8287, allocations: 155.8 kB / 0.637 GB, free: 31.24 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002931/0.829, allocations: 172.2 kB / 0.6372 GB, free: 31.08 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001311/0.8292, allocations: 75.98 kB / 0.6373 GB, free: 31 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003069/0.8323, allocations: 2.605 MB / 0.6398 GB, free: 28.39 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8323, allocations: 0 / 0.6398 GB, free: 28.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004648/0.8369, allocations: 1.113 MB / 0.6409 GB, free: 27.28 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.007511/0.8445, allocations: 6.67 MB / 0.6474 GB, free: 20.39 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00808/0.8525, allocations: 5.964 MB / 0.6533 GB, free: 14.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.007e-05/0.8526, allocations: 4 kB / 0.6533 GB, free: 14.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003359/0.8559, allocations: 2.215 MB / 0.6554 GB, free: 12.11 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00298/0.8589, allocations: 0.4945 MB / 0.6559 GB, free: 11.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07816/0.9371, allocations: 50.73 MB / 0.7054 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00429/0.9414, allocations: 3.458 MB / 0.7088 GB, free: 14.53 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004615/0.9461, allocations: 2.011 MB / 0.7108 GB, free: 12.52 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002815/0.9489, allocations: 2.1 MB / 0.7128 GB, free: 10.42 MB / 0.5138 GB Notification: Performance of SimCode: time 7.11e-07/0.9489, allocations: 0 / 0.7128 GB, free: 10.42 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3187/1.268, allocations: 72.9 MB / 0.784 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 58.08/59.35, allocations: 2.297 kB / 0.784 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.1.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