Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 102.9 kB / 17.58 MB, free: 5.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 187.9 kB / 18.51 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.265/1.265, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 47.92 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07568/0.07686, allocations: 46.64 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01229/0.08919, allocations: 12.03 MB / 339.4 MB, free: 8.285 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007592/0.09682, allocations: 4.201 MB / 343.6 MB, free: 4.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001412/0.09829, allocations: 75.75 kB / 343.7 MB, free: 3.996 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005057/0.1034, allocations: 2.749 MB / 346.4 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004543/0.1079, allocations: 1.968 MB / 348.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001865/0.1098, allocations: 0.8228 MB / 349.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005934/0.1158, allocations: 4.628 MB / 353.9 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004173/0.12, allocations: 3.552 MB / 357.4 MB, free: 6.199 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002298/0.1223, allocations: 1.694 MB / 359.1 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002947/0.1252, allocations: 2.348 MB / 361.5 MB, free: 2.145 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009275/0.1262, allocations: 352 kB / 361.8 MB, free: 1.801 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002546/0.1287, allocations: 1.268 MB / 363.1 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002179/0.1309, allocations: 2.112 MB / 365.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00357/0.1345, allocations: 2.45 MB / 367.6 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006846/0.1414, allocations: 7.289 MB / 374.9 MB, free: 4.637 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1414, allocations: 0 / 374.9 MB, free: 4.637 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1414, allocations: 0 / 374.9 MB, free: 4.637 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001703/0.1416, allocations: 0 / 374.9 MB, free: 4.637 MB / 318.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.1487/0.2903, allocations: 5.318 MB / 380.2 MB, free: 49.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.2904, allocations: 9.625 kB / 380.2 MB, free: 49.45 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001221/0.2916, allocations: 0.7978 MB / 381 MB, free: 49.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008413/0.3, allocations: 2.139 MB / 383.2 MB, free: 48.79 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006001/0.3061, allocations: 3.397 MB / 386.6 MB, free: 47.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002679/0.3064, allocations: 272.4 kB / 386.8 MB, free: 47.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001348/0.3077, allocations: 435.4 kB / 387.3 MB, free: 47.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01881/0.3265, allocations: 12.21 MB / 399.5 MB, free: 39.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.957e-05/0.3267, allocations: 47.53 kB / 399.5 MB, free: 39.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004231/0.3271, allocations: 179.1 kB / 399.7 MB, free: 39.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002431/0.3295, allocations: 2.162 MB / 401.9 MB, free: 37.61 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01713/0.3467, allocations: 10.21 MB / 412.1 MB, free: 27.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04539/0.3921, allocations: 44.31 MB / 456.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0115/0.4037, allocations: 4.603 MB / 461 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002411/0.4061, allocations: 1.724 MB / 462.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01401/0.4201, allocations: 8.213 MB / 470.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.279e-05/0.4202, allocations: 52.25 kB / 471 MB, free: 14.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=183): time 5.31e-06/0.4202, allocations: 3.938 kB / 471 MB, free: 14.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=205): time 0.04258/0.4628, allocations: 16.02 MB / 487 MB, free: 14.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001435/0.4643, allocations: 1.692 MB / 488.7 MB, free: 12.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007956/0.4723, allocations: 4.244 MB / 492.9 MB, free: 8.359 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004391/0.4728, allocations: 53.69 kB / 493 MB, free: 8.301 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002501/0.4753, allocations: 3.404 MB / 496.4 MB, free: 4.848 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001156/0.4765, allocations: 0.8022 MB / 497.2 MB, free: 4.035 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002762/0.4792, allocations: 1.357 MB / 498.6 MB, free: 2.668 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.4794, allocations: 305.1 kB / 498.8 MB, free: 2.367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003718/0.4831, allocations: 2.235 MB / 0.4893 GB, free: 132 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005794/0.4889, allocations: 6.356 MB / 0.4955 GB, free: 7.723 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01049/0.4994, allocations: 9.248 MB / 0.5046 GB, free: 12.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001564/0.4996, allocations: 40.62 kB / 0.5046 GB, free: 12.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01949/0.5191, allocations: 9.09 MB / 0.5135 GB, free: 3.273 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001359/0.5193, allocations: 68 kB / 0.5136 GB, free: 3.207 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005755/0.525, allocations: 2.846 MB / 0.5163 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003332/0.5284, allocations: 1.069 MB / 0.5174 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0048/0.5332, allocations: 1.575 MB / 0.5189 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004757/0.538, allocations: 4.677 MB / 0.5235 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004723/0.5427, allocations: 415.4 kB / 0.5239 GB, free: 8.324 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009531/0.5437, allocations: 416 kB / 0.5243 GB, free: 7.918 MB / 430.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.004017/0.5477, allocations: 2.216 MB / 0.5264 GB, free: 5.691 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008427/0.5486, allocations: 379.2 kB / 0.5268 GB, free: 5.316 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007025/0.5556, allocations: 3.301 MB / 0.53 GB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1489/0.7045, allocations: 2.741 MB / 0.5327 GB, free: 141.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.831e-05/0.7046, allocations: 2.75 kB / 0.5327 GB, free: 141.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.67e-05/0.7047, allocations: 8.828 kB / 0.5327 GB, free: 141.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01668/0.7213, allocations: 10.35 MB / 0.5428 GB, free: 138.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.452e-05/0.7214, allocations: 12.69 kB / 0.5428 GB, free: 138.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001456/0.7229, allocations: 367.3 kB / 0.5432 GB, free: 138.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002861/0.7257, allocations: 0.9943 MB / 0.5442 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001667/0.7259, allocations: 62.69 kB / 0.5442 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00415/0.7301, allocations: 4.894 MB / 0.549 GB, free: 135.1 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007312/0.7308, allocations: 1.568 MB / 0.5505 GB, free: 133.6 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007507/0.7384, allocations: 5.909 MB / 0.5563 GB, free: 131.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/0.7399, allocations: 0.6589 MB / 0.5569 GB, free: 130.9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004694/0.7404, allocations: 61.8 kB / 0.557 GB, free: 130.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001561/0.7419, allocations: 135.3 kB / 0.5571 GB, free: 130.9 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003016/0.7422, allocations: 176.9 kB / 0.5573 GB, free: 130.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001282/0.7424, allocations: 80.45 kB / 0.5574 GB, free: 130.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003701/0.7461, allocations: 2.619 MB / 0.5599 GB, free: 129.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.7461, allocations: 0 / 0.5599 GB, free: 129.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00494/0.7511, allocations: 1.136 MB / 0.561 GB, free: 129.8 MB / 430.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.007761/0.7588, allocations: 6.607 MB / 0.5675 GB, free: 126.1 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009151/0.768, allocations: 6.568 MB / 0.5739 GB, free: 120 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.369e-05/0.768, allocations: 4 kB / 0.5739 GB, free: 120 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003373/0.7714, allocations: 2.198 MB / 0.5761 GB, free: 117.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002939/0.7744, allocations: 0.4969 MB / 0.5765 GB, free: 117.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05389/0.8283, allocations: 57.44 MB / 0.6326 GB, free: 50.91 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002784/0.8311, allocations: 3.463 MB / 0.636 GB, free: 47.41 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004212/0.8353, allocations: 2.026 MB / 0.638 GB, free: 45.38 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00206/0.8374, allocations: 2.1 MB / 0.64 GB, free: 43.28 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.8374, allocations: 4 kB / 0.64 GB, free: 43.28 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2409/1.078, allocations: 77.58 MB / 0.7158 GB, free: 141.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.92/16, allocations: 9.422 kB / 0.7158 GB, free: 141.7 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches