Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 106.1 kB / 17.06 MB, free: 6.027 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.001243/0.001243, allocations: 195 kB / 18 MB, free: 5.105 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.263/1.263, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009415/0.0009416, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.215, allocations: 49.45 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.007203/0.2223, allocations: 7.422 MB / 407.7 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004994/0.2273, allocations: 3.249 MB / 410.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006895/0.228, allocations: 31.94 kB / 410.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001717/0.2298, allocations: 1.027 MB / 412 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002457/0.2322, allocations: 1.38 MB / 413.3 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007862/0.233, allocations: 451.1 kB / 413.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002535/0.2356, allocations: 2.636 MB / 416.4 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001318/0.2369, allocations: 1.529 MB / 418 MB, free: 7.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006973/0.2376, allocations: 0.8446 MB / 418.8 MB, free: 6.168 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001167/0.2388, allocations: 1.219 MB / 420 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002314/0.239, allocations: 168 kB / 420.2 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001372/0.2404, allocations: 1.034 MB / 421.2 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007281/0.2411, allocations: 1.106 MB / 422.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008716/0.242, allocations: 1.312 MB / 423.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003322/0.2454, allocations: 4.36 MB / 428 MB, free: 12.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2454, allocations: 0 / 428 MB, free: 12.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2454, allocations: 4 kB / 428 MB, free: 12.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.55e-05/0.2454, allocations: 4 kB / 428 MB, free: 12.93 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.004421/0.2498, allocations: 3.066 MB / 431.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.2499, allocations: 8.031 kB / 431.1 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004245/0.2503, allocations: 474.9 kB / 431.5 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006148/0.2565, allocations: 1.74 MB / 433.3 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002981/0.2595, allocations: 1.714 MB / 435 MB, free: 5.824 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.585e-05/0.2596, allocations: 131.3 kB / 435.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005768/0.2602, allocations: 259.6 kB / 435.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008979/0.2691, allocations: 6.668 MB / 442 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.553e-05/0.2692, allocations: 27.7 kB / 442.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002262/0.2695, allocations: 87.89 kB / 442.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0019/0.2714, allocations: 1.363 MB / 443.5 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009927/0.2813, allocations: 6.033 MB / 449.6 MB, free: 6.801 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02721/0.3085, allocations: 25.5 MB / 475.1 MB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01056/0.3191, allocations: 2.662 MB / 477.7 MB, free: 9.723 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002196/0.3214, allocations: 1.032 MB / 478.8 MB, free: 8.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008689/0.3301, allocations: 3.853 MB / 482.6 MB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.677e-05/0.3301, allocations: 51.06 kB / 482.7 MB, free: 4.512 MB / 398.1 MB Notification: Performance of pre-optimization done (n=112): time 4.499e-06/0.3301, allocations: 0 / 482.7 MB, free: 4.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=125): time 0.03633/0.3665, allocations: 10.29 MB / 492.9 MB, free: 10.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001117/0.3676, allocations: 1.679 MB / 494.6 MB, free: 8.195 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002897/0.3705, allocations: 2.734 MB / 497.4 MB, free: 5.441 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.359e-05/0.3706, allocations: 41.7 kB / 497.4 MB, free: 5.395 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001088/0.3717, allocations: 2.091 MB / 499.5 MB, free: 3.27 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003654/0.3721, allocations: 0.5054 MB / 500 MB, free: 2.758 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009656/0.3731, allocations: 0.9125 MB / 0.4892 GB, free: 1.832 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.295e-05/0.3732, allocations: 305.1 kB / 0.4895 GB, free: 1.531 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002085/0.3753, allocations: 1.621 MB / 0.491 GB, free: 15.9 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003478/0.3787, allocations: 4.424 MB / 0.4954 GB, free: 10.07 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005938/0.3847, allocations: 6.49 MB / 0.5017 GB, free: 2.191 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.994e-05/0.3847, allocations: 28 kB / 0.5017 GB, free: 2.164 MB / 430.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01152/0.3963, allocations: 7.042 MB / 0.5086 GB, free: 11.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.451e-05/0.3963, allocations: 51.98 kB / 0.5086 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005594/0.4019, allocations: 2.533 MB / 0.5111 GB, free: 8.504 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004872/0.4068, allocations: 1.493 MB / 0.5126 GB, free: 7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002495/0.4093, allocations: 1.006 MB / 0.5136 GB, free: 5.992 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009099/0.4184, allocations: 7.766 MB / 0.5211 GB, free: 13.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002724/0.4212, allocations: 331.5 kB / 0.5215 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000312/0.4215, allocations: 284 kB / 0.5217 GB, free: 13.35 MB / 462.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.001589/0.4231, allocations: 1.423 MB / 0.5231 GB, free: 11.91 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003022/0.4234, allocations: 229 kB / 0.5233 GB, free: 11.69 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006152/0.4296, allocations: 2.835 MB / 0.5261 GB, free: 8.824 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005593/0.4352, allocations: 2.509 MB / 0.5286 GB, free: 6.297 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.136e-05/0.4352, allocations: 16.06 kB / 0.5286 GB, free: 6.281 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.4352, allocations: 7.969 kB / 0.5286 GB, free: 6.273 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1736/0.6088, allocations: 6.859 MB / 0.5353 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.888e-05/0.6088, allocations: 2.422 kB / 0.5353 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009358/0.6098, allocations: 179.8 kB / 0.5355 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004801/0.6146, allocations: 1.438 MB / 0.5369 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001258/0.6147, allocations: 28.56 kB / 0.5369 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008044/0.6228, allocations: 7.919 MB / 0.5446 GB, free: 125.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006409/0.6234, allocations: 1.542 MB / 0.5461 GB, free: 123.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007021/0.6305, allocations: 4.859 MB / 0.5509 GB, free: 121.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003922/0.6309, allocations: 286.4 kB / 0.5511 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002235/0.6311, allocations: 29.58 kB / 0.5512 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.6322, allocations: 115.1 kB / 0.5513 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.6324, allocations: 78.72 kB / 0.5514 GB, free: 121.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.776e-05/0.6325, allocations: 42.72 kB / 0.5514 GB, free: 121.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001735/0.6342, allocations: 1.693 MB / 0.553 GB, free: 121.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.6342, allocations: 0 / 0.553 GB, free: 121.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002695/0.6369, allocations: 0.7635 MB / 0.5538 GB, free: 121.1 MB / 462.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.007053/0.644, allocations: 5.506 MB / 0.5592 GB, free: 116.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004983/0.649, allocations: 4.356 MB / 0.5634 GB, free: 112.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.649, allocations: 4 kB / 0.5634 GB, free: 112.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002465/0.6515, allocations: 1.717 MB / 0.5651 GB, free: 110.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001297/0.6528, allocations: 271.5 kB / 0.5654 GB, free: 110.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03224/0.685, allocations: 33.66 MB / 0.5982 GB, free: 72.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001542/0.6866, allocations: 2.307 MB / 0.6005 GB, free: 70.46 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002312/0.6889, allocations: 1.404 MB / 0.6019 GB, free: 69.05 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009838/0.6899, allocations: 1.11 MB / 0.6029 GB, free: 67.94 MB / 462.1 MB Notification: Performance of SimCode: time 8.61e-07/0.6899, allocations: 3.938 kB / 0.6029 GB, free: 67.93 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.734/2.423, allocations: 49.56 MB / 0.6513 GB, free: 18.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.69/25.11, allocations: 3.938 kB / 0.6513 GB, free: 18.75 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches