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.0007138/0.0007137, allocations: 90.59 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007953/0.0007953, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001954/0.0001954, allocations: 8 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07922/0.07943, allocations: 51.52 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.1776/0.257, allocations: 45.4 MB / 404.8 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02102/0.2781, allocations: 9.791 MB / 414.6 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009055/0.2872, allocations: 197.7 kB / 414.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001725/0.2889, allocations: 463.6 kB / 415.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00529/0.2943, allocations: 1.825 MB / 417 MB, free: 356 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001771/0.296, allocations: 0.7463 MB / 417.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007803/0.3039, allocations: 6.56 MB / 424.3 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007039/0.3109, allocations: 4.924 MB / 429.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002375/0.3133, allocations: 1.268 MB / 430.5 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002873/0.3162, allocations: 2.199 MB / 432.7 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006822/0.3169, allocations: 164 kB / 432.9 MB, free: 1.086 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002183/0.3191, allocations: 1.123 MB / 434 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00192/0.321, allocations: 1.901 MB / 435.9 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002693/0.3238, allocations: 2.179 MB / 438.1 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006208/0.33, allocations: 6.958 MB / 445 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.33, allocations: 0 / 445 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.33, allocations: 0 / 445 MB, free: 4.875 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.807e-05/0.3301, allocations: 0 / 445 MB, free: 4.875 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.006372/0.3365, allocations: 4.307 MB / 449.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.3365, allocations: 8.031 kB / 449.4 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008037/0.3373, allocations: 0.8021 MB / 450.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007476/0.3448, allocations: 2.237 MB / 452.4 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003838/0.3486, allocations: 2.891 MB / 455.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001652/0.3488, allocations: 274.8 kB / 455.6 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007741/0.3496, allocations: 427.6 kB / 456 MB, free: 9.793 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01762/0.3672, allocations: 12.3 MB / 468.3 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.591e-05/0.3674, allocations: 51.53 kB / 468.3 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003782/0.3677, allocations: 167.8 kB / 468.5 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002844/0.3706, allocations: 2.166 MB / 470.7 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01829/0.3889, allocations: 10.28 MB / 480.9 MB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04258/0.4315, allocations: 44.27 MB / 0.5129 GB, free: 2.465 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01065/0.4422, allocations: 4.668 MB / 0.5175 GB, free: 13.6 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00209/0.4443, allocations: 1.724 MB / 0.5191 GB, free: 11.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01014/0.4545, allocations: 8.295 MB / 0.5272 GB, free: 3.164 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/0.4545, allocations: 55.86 kB / 0.5273 GB, free: 3.102 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 3.647e-06/0.4545, allocations: 0 / 0.5273 GB, free: 3.102 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.2151/0.6696, allocations: 16.15 MB / 0.5431 GB, free: 105.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008339/0.6705, allocations: 1.609 MB / 0.5446 GB, free: 104.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004571/0.6751, allocations: 4.201 MB / 0.5487 GB, free: 103.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002041/0.6753, allocations: 54.33 kB / 0.5488 GB, free: 103.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001491/0.6768, allocations: 3.398 MB / 0.5521 GB, free: 101.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005393/0.6773, allocations: 0.8118 MB / 0.5529 GB, free: 101.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004806/0.6778, allocations: 0.5711 MB / 0.5535 GB, free: 101.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.066e-05/0.6779, allocations: 302.9 kB / 0.5537 GB, free: 101 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002537/0.6804, allocations: 2.253 MB / 0.5559 GB, free: 100.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003668/0.6841, allocations: 6.382 MB / 0.5622 GB, free: 94.47 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007015/0.6911, allocations: 9.29 MB / 0.5712 GB, free: 85.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.554e-05/0.6912, allocations: 45.5 kB / 0.5713 GB, free: 85.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01238/0.7036, allocations: 9.133 MB / 0.5802 GB, free: 77.43 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.502e-05/0.7037, allocations: 72.03 kB / 0.5803 GB, free: 77.36 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004421/0.7081, allocations: 2.892 MB / 0.5831 GB, free: 74.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002739/0.7109, allocations: 1.068 MB / 0.5841 GB, free: 73.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003757/0.7146, allocations: 1.587 MB / 0.5857 GB, free: 71.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00321/0.7179, allocations: 4.398 MB / 0.59 GB, free: 67.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004214/0.7221, allocations: 439.4 kB / 0.5904 GB, free: 66.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003755/0.7225, allocations: 412 kB / 0.5908 GB, free: 66.53 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.002499/0.725, allocations: 2.212 MB / 0.593 GB, free: 64.44 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004825/0.7255, allocations: 379.1 kB / 0.5933 GB, free: 64.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005235/0.7307, allocations: 3.336 MB / 0.5966 GB, free: 60.72 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00423/0.735, allocations: 2.795 MB / 0.5993 GB, free: 57.91 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.448e-05/0.735, allocations: 4 kB / 0.5993 GB, free: 57.91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.735, allocations: 7.969 kB / 0.5993 GB, free: 57.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/0.7491, allocations: 10.4 MB / 0.6095 GB, free: 47.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.961e-05/0.7491, allocations: 12 kB / 0.6095 GB, free: 47.37 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.7504, allocations: 381.8 kB / 0.6099 GB, free: 47.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002466/0.7529, allocations: 0.9918 MB / 0.6108 GB, free: 46.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001349/0.753, allocations: 58.25 kB / 0.6109 GB, free: 45.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003562/0.7566, allocations: 4.614 MB / 0.6154 GB, free: 41.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000649/0.7572, allocations: 1.469 MB / 0.6168 GB, free: 39.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006998/0.7642, allocations: 5.993 MB / 0.6227 GB, free: 33.33 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000714/0.765, allocations: 444 kB / 0.6231 GB, free: 32.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004451/0.7654, allocations: 65.09 kB / 0.6232 GB, free: 32.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/0.767, allocations: 167.7 kB / 0.6233 GB, free: 32.66 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002504/0.7672, allocations: 169.8 kB / 0.6235 GB, free: 32.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.7673, allocations: 79.97 kB / 0.6236 GB, free: 32.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002909/0.7703, allocations: 2.601 MB / 0.6261 GB, free: 29.82 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7703, allocations: 0 / 0.6261 GB, free: 29.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004318/0.7746, allocations: 1.109 MB / 0.6272 GB, free: 28.71 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.007071/0.7817, allocations: 6.675 MB / 0.6337 GB, free: 21.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008555/0.7902, allocations: 5.91 MB / 0.6395 GB, free: 16.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.434e-06/0.7903, allocations: 9.75 kB / 0.6395 GB, free: 16.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00417/0.7944, allocations: 2.211 MB / 0.6416 GB, free: 13.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01307/0.8075, allocations: 492.2 kB / 0.6421 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08118/0.8887, allocations: 59.5 MB / 0.7002 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003808/0.8926, allocations: 3.454 MB / 0.7036 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004463/0.897, allocations: 2.014 MB / 0.7055 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002288/0.8994, allocations: 2.089 MB / 0.7076 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of SimCode: time 7.22e-07/0.8994, allocations: 0 / 0.7076 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2344/1.134, allocations: 74.77 MB / 0.7806 GB, free: 143.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001455/1.134, allocations: 258.6 kB / 0.7809 GB, free: 143.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.286/4.42, allocations: 0 / 0.7809 GB, free: 143.5 MB / 0.4981 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 & /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