Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001109/0.001109, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001257/0.001257, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 64.36 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.152, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01138/0.1635, allocations: 7.387 MB / 365 MB, free: 6.551 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007611/0.1711, allocations: 3.276 MB / 368.3 MB, free: 3.262 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001369/0.1725, allocations: 39.88 kB / 368.3 MB, free: 3.223 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002634/0.1753, allocations: 1.024 MB / 369.3 MB, free: 2.195 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003686/0.179, allocations: 1.339 MB / 370.7 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.1802, allocations: 463.1 kB / 371.1 MB, free: 408 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2936/0.4737, allocations: 2.657 MB / 373.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003033/0.4769, allocations: 1.519 MB / 375.3 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00183/0.4787, allocations: 0.8377 MB / 376.1 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002392/0.4811, allocations: 1.212 MB / 377.3 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005193/0.4816, allocations: 169.6 kB / 377.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002493/0.4841, allocations: 1.009 MB / 378.5 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001649/0.4858, allocations: 1.096 MB / 379.6 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00163/0.4874, allocations: 1.295 MB / 380.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007957/0.4954, allocations: 4.157 MB / 385.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.4955, allocations: 0 / 385.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4955, allocations: 0 / 385.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001456/0.4956, allocations: 5.031 kB / 385.1 MB, free: 7.168 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.009578/0.5052, allocations: 3.033 MB / 388.1 MB, free: 5.492 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.5053, allocations: 9.031 kB / 388.1 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001045/0.5063, allocations: 468.1 kB / 388.6 MB, free: 5.219 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007569/0.5139, allocations: 1.808 MB / 390.4 MB, free: 4.289 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005141/0.5191, allocations: 1.583 MB / 392 MB, free: 3.379 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001682/0.5193, allocations: 137.1 kB / 392.1 MB, free: 3.34 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009908/0.5203, allocations: 250.7 kB / 392.3 MB, free: 3.277 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01315/0.5335, allocations: 6.669 MB / 399 MB, free: 15.33 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.652e-05/0.5336, allocations: 36.94 kB / 399 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003042/0.5339, allocations: 87.58 kB / 399.1 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00232/0.5362, allocations: 1.369 MB / 400.5 MB, free: 13.99 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01314/0.5494, allocations: 6.04 MB / 406.5 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03452/0.5839, allocations: 25.59 MB / 432.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00737/0.5913, allocations: 2.678 MB / 434.8 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.5929, allocations: 1.039 MB / 435.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006607/0.5996, allocations: 3.939 MB / 439.8 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.459e-05/0.5996, allocations: 51.06 kB / 439.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 4.538e-06/0.5996, allocations: 0 / 439.8 MB, free: 5.848 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02892/0.6286, allocations: 10.31 MB / 450.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001488/0.6301, allocations: 1.675 MB / 451.8 MB, free: 9.531 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005838/0.6359, allocations: 2.725 MB / 454.5 MB, free: 6.785 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003907/0.6364, allocations: 41.7 kB / 454.6 MB, free: 6.738 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002244/0.6386, allocations: 2.092 MB / 456.7 MB, free: 4.652 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001097/0.6397, allocations: 0.5013 MB / 457.2 MB, free: 4.152 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002293/0.6421, allocations: 0.9075 MB / 458.1 MB, free: 3.234 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.6422, allocations: 309 kB / 458.4 MB, free: 2.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002766/0.645, allocations: 1.629 MB / 460 MB, free: 1.293 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004708/0.6497, allocations: 4.428 MB / 464.4 MB, free: 11.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007913/0.6576, allocations: 6.501 MB / 470.9 MB, free: 3.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.337e-05/0.6577, allocations: 28 kB / 471 MB, free: 3.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01393/0.6717, allocations: 7.052 MB / 478 MB, free: 12.5 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.815e-05/0.6718, allocations: 48 kB / 478.1 MB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00611/0.6779, allocations: 2.552 MB / 480.6 MB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005327/0.6833, allocations: 1.494 MB / 482.1 MB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003745/0.687, allocations: 1.002 MB / 483.1 MB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01105/0.6981, allocations: 7.778 MB / 490.9 MB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004627/0.7028, allocations: 327.5 kB / 491.2 MB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001192/0.704, allocations: 287.9 kB / 491.5 MB, free: 14.73 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004022/0.708, allocations: 1.422 MB / 492.9 MB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000773/0.7088, allocations: 232.9 kB / 493.1 MB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.7099, allocations: 325.9 kB / 493.5 MB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006283/0.7162, allocations: 2.521 MB / 496 MB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.151e-05/0.7163, allocations: 4 kB / 496 MB, free: 10.19 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.211e-05/0.7163, allocations: 7.984 kB / 496 MB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01615/0.7324, allocations: 6.899 MB / 0.4911 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/0.7325, allocations: 0 / 0.4911 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008873/0.7334, allocations: 175.7 kB / 0.4913 GB, free: 3.047 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005224/0.7386, allocations: 1.439 MB / 0.4927 GB, free: 1.598 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002145/0.7389, allocations: 35.97 kB / 0.4927 GB, free: 1.562 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01219/0.7511, allocations: 7.923 MB / 0.5005 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001571/0.7527, allocations: 1.541 MB / 0.502 GB, free: 7.688 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01181/0.7645, allocations: 4.856 MB / 0.5067 GB, free: 2.785 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/0.7657, allocations: 293.9 kB / 0.507 GB, free: 2.477 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009422/0.7667, allocations: 27.94 kB / 0.507 GB, free: 2.449 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001841/0.7686, allocations: 115.8 kB / 0.5071 GB, free: 2.336 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004876/0.7691, allocations: 80.38 kB / 0.5072 GB, free: 2.258 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002002/0.7693, allocations: 39.98 kB / 0.5072 GB, free: 2.219 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004899/0.7742, allocations: 1.693 MB / 0.5089 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.7742, allocations: 0 / 0.5089 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006548/0.7808, allocations: 0.7454 MB / 0.5096 GB, free: 15.77 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01089/0.7917, allocations: 5.507 MB / 0.515 GB, free: 10.22 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008962/0.8007, allocations: 4.676 MB / 0.5196 GB, free: 5.512 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.8007, allocations: 0 / 0.5196 GB, free: 5.512 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003351/0.8041, allocations: 1.736 MB / 0.5213 GB, free: 3.727 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0022/0.8063, allocations: 271.5 kB / 0.5215 GB, free: 3.469 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2567/1.063, allocations: 35.94 MB / 0.5566 GB, free: 126.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002026/1.065, allocations: 2.289 MB / 0.5589 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00309/1.068, allocations: 1.407 MB / 0.5602 GB, free: 125.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/1.069, allocations: 1.11 MB / 0.5613 GB, free: 124.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.703e-06/1.069, allocations: 0 / 0.5613 GB, free: 124.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08794/1.157, allocations: 51.21 MB / 0.6113 GB, free: 74.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.48/16.64, allocations: 14.72 kB / 0.6113 GB, free: 74.5 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches