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.001125/0.001125, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 61.53 kB / 306.4 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09938/0.1007, allocations: 50.53 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2315/0.3322, allocations: 46.65 MB / 403.5 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02684/0.3591, allocations: 9.858 MB / 413.4 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01272/0.3718, allocations: 199.1 kB / 413.6 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005707/0.3776, allocations: 2.713 MB / 416.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006183/0.3838, allocations: 1.817 MB / 418.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002281/0.3861, allocations: 0.7528 MB / 418.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008971/0.3951, allocations: 6.563 MB / 425.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00582/0.401, allocations: 3.523 MB / 429 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003241/0.4043, allocations: 1.502 MB / 430.5 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004248/0.4085, allocations: 2.492 MB / 433 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001312/0.4099, allocations: 260 kB / 433.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003362/0.4132, allocations: 1.225 MB / 434.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002959/0.4162, allocations: 2.022 MB / 436.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003849/0.4201, allocations: 2.337 MB / 438.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007019/0.4271, allocations: 7.149 MB / 445.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.4272, allocations: 0 / 445.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.4272, allocations: 0 / 445.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001536/0.4273, allocations: 0 / 445.9 MB, free: 2.395 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.009426/0.4368, allocations: 5.258 MB / 451.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/0.4368, allocations: 12.03 kB / 451.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009396/0.4378, allocations: 0.8021 MB / 452 MB, free: 12.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007712/0.4455, allocations: 2.19 MB / 454.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005217/0.4507, allocations: 2.887 MB / 457.1 MB, free: 7.094 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001823/0.4509, allocations: 274.8 kB / 457.4 MB, free: 6.824 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008195/0.4517, allocations: 423.7 kB / 457.8 MB, free: 6.41 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02225/0.474, allocations: 12.27 MB / 470 MB, free: 9.328 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002037/0.4743, allocations: 51.47 kB / 470.1 MB, free: 9.277 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001231/0.4755, allocations: 179.8 kB / 470.3 MB, free: 9.102 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003344/0.4789, allocations: 2.162 MB / 472.4 MB, free: 6.926 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02246/0.5013, allocations: 10.24 MB / 482.7 MB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05768/0.5591, allocations: 44.27 MB / 0.5146 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01179/0.5709, allocations: 4.647 MB / 0.5191 GB, free: 10.3 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00266/0.5736, allocations: 1.727 MB / 0.5208 GB, free: 8.566 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2114/0.785, allocations: 8.275 MB / 0.5289 GB, free: 146.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.192e-05/0.7851, allocations: 51.53 kB / 0.529 GB, free: 146.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 7.303e-06/0.7851, allocations: 0 / 0.529 GB, free: 146.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.04712/0.8323, allocations: 16.07 MB / 0.5446 GB, free: 141.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008542/0.8331, allocations: 1.606 MB / 0.5462 GB, free: 140.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00537/0.8385, allocations: 4.206 MB / 0.5503 GB, free: 138.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001661/0.8387, allocations: 53.61 kB / 0.5504 GB, free: 138.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0015/0.8402, allocations: 3.399 MB / 0.5537 GB, free: 136.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005979/0.8408, allocations: 0.8076 MB / 0.5545 GB, free: 135.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001457/0.8423, allocations: 1.351 MB / 0.5558 GB, free: 134.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.031e-05/0.8423, allocations: 301.1 kB / 0.5561 GB, free: 134.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002935/0.8452, allocations: 2.248 MB / 0.5583 GB, free: 133.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004638/0.8499, allocations: 6.371 MB / 0.5645 GB, free: 127.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007807/0.8577, allocations: 9.282 MB / 0.5736 GB, free: 118.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.277e-05/0.8578, allocations: 44 kB / 0.5736 GB, free: 118.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01338/0.8712, allocations: 9.118 MB / 0.5825 GB, free: 109.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.215e-05/0.8713, allocations: 68.94 kB / 0.5826 GB, free: 109.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004676/0.876, allocations: 2.873 MB / 0.5854 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002931/0.8789, allocations: 1.068 MB / 0.5864 GB, free: 105.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003912/0.8828, allocations: 1.583 MB / 0.588 GB, free: 103.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003464/0.8863, allocations: 4.405 MB / 0.5923 GB, free: 98.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004569/0.8909, allocations: 431.1 kB / 0.5927 GB, free: 98.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005299/0.8914, allocations: 412 kB / 0.5931 GB, free: 98.04 MB / 446.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.002802/0.8943, allocations: 2.225 MB / 0.5953 GB, free: 95.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007585/0.895, allocations: 371.1 kB / 0.5956 GB, free: 95.43 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005331/0.9004, allocations: 3.317 MB / 0.5988 GB, free: 92.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00429/0.9047, allocations: 2.778 MB / 0.6016 GB, free: 89.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-05/0.9047, allocations: 8 kB / 0.6016 GB, free: 89.29 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.9047, allocations: 11.91 kB / 0.6016 GB, free: 89.28 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01403/0.9187, allocations: 10.37 MB / 0.6117 GB, free: 78.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.457e-05/0.9188, allocations: 12 kB / 0.6117 GB, free: 78.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001301/0.9201, allocations: 379.4 kB / 0.6121 GB, free: 78.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002493/0.9226, allocations: 0.9828 MB / 0.613 GB, free: 77.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001328/0.9227, allocations: 59.97 kB / 0.6131 GB, free: 77.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003792/0.9265, allocations: 4.599 MB / 0.6176 GB, free: 72.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007549/0.9273, allocations: 1.482 MB / 0.619 GB, free: 70.76 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007979/0.9353, allocations: 5.97 MB / 0.6249 GB, free: 64.58 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/0.9364, allocations: 440.6 kB / 0.6253 GB, free: 64.13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008384/0.9372, allocations: 59.92 kB / 0.6253 GB, free: 64.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001997/0.9393, allocations: 155.8 kB / 0.6255 GB, free: 63.92 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003125/0.9396, allocations: 176.4 kB / 0.6257 GB, free: 63.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/0.9397, allocations: 71.98 kB / 0.6257 GB, free: 63.68 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003839/0.9436, allocations: 2.59 MB / 0.6283 GB, free: 61.08 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9436, allocations: 3.938 kB / 0.6283 GB, free: 61.07 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005556/0.9491, allocations: 1.12 MB / 0.6294 GB, free: 59.96 MB / 446.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.007981/0.9571, allocations: 6.645 MB / 0.6358 GB, free: 53.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008309/0.9654, allocations: 5.902 MB / 0.6416 GB, free: 47.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.216e-05/0.9655, allocations: 4 kB / 0.6416 GB, free: 47.17 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003122/0.9686, allocations: 2.212 MB / 0.6438 GB, free: 44.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003286/0.9719, allocations: 486.6 kB / 0.6442 GB, free: 44.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2603/1.232, allocations: 59.23 MB / 0.7021 GB, free: 146.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005117/1.237, allocations: 3.449 MB / 0.7054 GB, free: 146 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004722/1.242, allocations: 2.02 MB / 0.7074 GB, free: 145.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002217/1.244, allocations: 2.095 MB / 0.7095 GB, free: 145 MB / 462.1 MB Notification: Performance of SimCode: time 7.61e-07/1.244, allocations: 0 / 0.7095 GB, free: 145 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.925/3.169, allocations: 75.49 MB / 0.7832 GB, free: 83.35 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/3.17, allocations: 272 kB / 0.7834 GB, free: 83.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.04/7.209, allocations: 1.094 kB / 0.7834 GB, free: 83.09 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 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.mat","/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