Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_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.001253/0.001253, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001523/0.001524, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.304/1.304, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 39.06 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08832/0.08964, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01281/0.1025, allocations: 12.02 MB / 362.2 MB, free: 8.238 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007998/0.1105, allocations: 4.188 MB / 366.4 MB, free: 4.035 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001694/0.1122, allocations: 71.81 kB / 366.4 MB, free: 3.965 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005048/0.1173, allocations: 2.752 MB / 369.2 MB, free: 1.203 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1354/0.2527, allocations: 1.968 MB / 371.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00146/0.2542, allocations: 0.808 MB / 372 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00454/0.2588, allocations: 4.599 MB / 376.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003223/0.262, allocations: 3.556 MB / 380.1 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001909/0.2639, allocations: 1.688 MB / 381.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002095/0.266, allocations: 2.337 MB / 384.1 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000552/0.2666, allocations: 356.5 kB / 384.5 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001858/0.2685, allocations: 1.276 MB / 385.8 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001256/0.2697, allocations: 2.102 MB / 387.9 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001576/0.2713, allocations: 2.43 MB / 390.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004438/0.2758, allocations: 7.273 MB / 397.6 MB, free: 1.344 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2758, allocations: 0 / 397.6 MB, free: 1.344 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2758, allocations: 2.219 kB / 397.6 MB, free: 1.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.887e-05/0.2759, allocations: 0 / 397.6 MB, free: 1.344 MB / 302.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.007109/0.283, allocations: 5.298 MB / 402.9 MB, free: 12.85 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.283, allocations: 12.03 kB / 402.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007619/0.2838, allocations: 0.7993 MB / 403.7 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007408/0.2912, allocations: 2.131 MB / 405.8 MB, free: 9.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004347/0.2956, allocations: 3.108 MB / 408.9 MB, free: 6.977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001589/0.2958, allocations: 271.8 kB / 409.2 MB, free: 6.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007414/0.2965, allocations: 431.6 kB / 409.6 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01806/0.3146, allocations: 12.22 MB / 421.8 MB, free: 9.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001085/0.3147, allocations: 47.61 kB / 421.9 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005073/0.3152, allocations: 176.5 kB / 422.1 MB, free: 9.285 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002894/0.3181, allocations: 2.163 MB / 424.2 MB, free: 7.125 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02191/0.3401, allocations: 10.2 MB / 434.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05104/0.3911, allocations: 44.28 MB / 478.7 MB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01148/0.4027, allocations: 4.608 MB / 483.3 MB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002553/0.4053, allocations: 1.716 MB / 485 MB, free: 9.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01282/0.4181, allocations: 8.189 MB / 493.2 MB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.563e-05/0.4182, allocations: 63.08 kB / 493.3 MB, free: 0.5391 MB / 398.1 MB Notification: Performance of pre-optimization done (n=183): time 6.232e-06/0.4182, allocations: 3.938 kB / 493.3 MB, free: 0.5352 MB / 398.1 MB Notification: Performance of matching and sorting (n=205): time 0.04012/0.4583, allocations: 15.93 MB / 0.4973 GB, free: 460 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001315/0.4597, allocations: 1.68 MB / 0.4989 GB, free: 14.58 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007365/0.4671, allocations: 4.215 MB / 0.503 GB, free: 10.35 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003691/0.4675, allocations: 56.67 kB / 0.5031 GB, free: 10.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002578/0.4701, allocations: 3.399 MB / 0.5064 GB, free: 6.891 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009907/0.4711, allocations: 0.8084 MB / 0.5072 GB, free: 6.09 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002364/0.4734, allocations: 1.346 MB / 0.5085 GB, free: 4.734 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.58e-05/0.4736, allocations: 301.1 kB / 0.5088 GB, free: 4.438 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00337/0.4769, allocations: 2.235 MB / 0.511 GB, free: 2.199 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005879/0.4828, allocations: 6.35 MB / 0.5172 GB, free: 9.812 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1656/0.6484, allocations: 9.262 MB / 0.5262 GB, free: 141.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001252/0.6486, allocations: 41.44 kB / 0.5263 GB, free: 141.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.0163/0.6649, allocations: 9.078 MB / 0.5351 GB, free: 138.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.494e-05/0.665, allocations: 70.31 kB / 0.5352 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005305/0.6703, allocations: 2.845 MB / 0.538 GB, free: 138 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003209/0.6736, allocations: 1.073 MB / 0.539 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004172/0.6777, allocations: 1.57 MB / 0.5405 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003744/0.6815, allocations: 4.682 MB / 0.5451 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004298/0.6858, allocations: 421.2 kB / 0.5455 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005135/0.6863, allocations: 416.5 kB / 0.5459 GB, free: 134.2 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.002683/0.689, allocations: 2.223 MB / 0.5481 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000496/0.6895, allocations: 380 kB / 0.5485 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00514/0.6947, allocations: 3.274 MB / 0.5517 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004202/0.6989, allocations: 2.747 MB / 0.5543 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.6989, allocations: 3.969 kB / 0.5543 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.78e-05/0.6989, allocations: 7.547 kB / 0.5543 GB, free: 131.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01421/0.7132, allocations: 10.34 MB / 0.5644 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-05/0.7132, allocations: 15.94 kB / 0.5645 GB, free: 126.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001299/0.7145, allocations: 370.5 kB / 0.5648 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002569/0.7171, allocations: 0.9885 MB / 0.5658 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001412/0.7172, allocations: 59.97 kB / 0.5658 GB, free: 124.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00371/0.721, allocations: 4.9 MB / 0.5706 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006638/0.7216, allocations: 1.569 MB / 0.5721 GB, free: 118 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006746/0.7284, allocations: 5.912 MB / 0.5779 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008816/0.7293, allocations: 440 kB / 0.5783 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003906/0.7297, allocations: 55.98 kB / 0.5784 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001489/0.7312, allocations: 151.4 kB / 0.5785 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002817/0.7315, allocations: 176.4 kB / 0.5787 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001181/0.7316, allocations: 71.98 kB / 0.5788 GB, free: 111.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003092/0.7347, allocations: 2.602 MB / 0.5813 GB, free: 108.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.7347, allocations: 0 / 0.5813 GB, free: 108.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005367/0.7401, allocations: 1.132 MB / 0.5824 GB, free: 107.5 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.007478/0.7476, allocations: 6.616 MB / 0.5889 GB, free: 100.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00909/0.7567, allocations: 6.568 MB / 0.5953 GB, free: 94.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.306e-05/0.7567, allocations: 4 kB / 0.5953 GB, free: 94.05 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003226/0.76, allocations: 2.2 MB / 0.5975 GB, free: 91.79 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002971/0.7629, allocations: 0.4963 MB / 0.5979 GB, free: 91.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05599/0.8189, allocations: 57.13 MB / 0.6537 GB, free: 25.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002716/0.8217, allocations: 3.451 MB / 0.6571 GB, free: 21.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004024/0.8257, allocations: 2.026 MB / 0.6591 GB, free: 19.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001822/0.8276, allocations: 2.096 MB / 0.6611 GB, free: 17.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.492e-06/0.8276, allocations: 0 / 0.6611 GB, free: 17.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.27/2.098, allocations: 77.3 MB / 0.7366 GB, free: 137.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.99/21.09, allocations: 15.14 kB / 0.7366 GB, free: 137.1 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches