Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_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.001183/0.001182, allocations: 118.6 kB / 17.28 MB, free: 6.219 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.00133/0.00133, allocations: 189.3 kB / 18.2 MB, free: 5.301 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.368/1.368, allocations: 205.1 MB / 224 MB, free: 12.45 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.001139/0.001139, allocations: 47.94 kB / 280.2 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08764/0.08879, allocations: 46.63 MB / 326.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.0173/0.1061, allocations: 17.91 MB / 344.8 MB, free: 2.703 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01077/0.117, allocations: 4.945 MB / 349.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003463/0.1205, allocations: 71.81 kB / 349.8 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002117/0.1227, allocations: 0.9698 MB / 350.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003084/0.1257, allocations: 1.273 MB / 352.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009641/0.1267, allocations: 435.4 kB / 352.5 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003285/0.13, allocations: 2.669 MB / 355.1 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001844/0.1319, allocations: 1.625 MB / 356.8 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001078/0.133, allocations: 0.8485 MB / 357.6 MB, free: 5.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001494/0.1345, allocations: 1.371 MB / 359 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002714/0.1348, allocations: 171.9 kB / 359.2 MB, free: 4.281 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001635/0.1364, allocations: 1.03 MB / 360.2 MB, free: 3.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009438/0.1374, allocations: 1.134 MB / 361.3 MB, free: 2.113 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001119/0.1385, allocations: 1.34 MB / 362.7 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004014/0.1425, allocations: 4.233 MB / 366.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1425, allocations: 0 / 366.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1425, allocations: 0 / 366.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.17e-05/0.1426, allocations: 0 / 366.9 MB, free: 12.52 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.005405/0.148, allocations: 3.082 MB / 370 MB, free: 9.379 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/0.1481, allocations: 16.03 kB / 370 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005224/0.1486, allocations: 470.9 kB / 370.5 MB, free: 8.895 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006186/0.1548, allocations: 1.74 MB / 372.2 MB, free: 7.148 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002954/0.1578, allocations: 1.839 MB / 374 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001109/0.1579, allocations: 139.3 kB / 374.2 MB, free: 5.129 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005914/0.1585, allocations: 255.6 kB / 374.4 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.17/0.3286, allocations: 6.659 MB / 381.1 MB, free: 50.73 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001825/0.3288, allocations: 26.38 kB / 381.1 MB, free: 50.72 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000879/0.3297, allocations: 83.41 kB / 381.2 MB, free: 50.72 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002638/0.3324, allocations: 1.358 MB / 382.5 MB, free: 50.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01297/0.3453, allocations: 6.038 MB / 388.6 MB, free: 48.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02677/0.3722, allocations: 25.62 MB / 414.2 MB, free: 28.55 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005949/0.3781, allocations: 2.662 MB / 416.9 MB, free: 25.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001121/0.3793, allocations: 1.028 MB / 417.9 MB, free: 24.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004718/0.384, allocations: 3.855 MB / 421.7 MB, free: 20.61 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.3841, allocations: 51.06 kB / 421.8 MB, free: 20.55 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 3.297e-06/0.3841, allocations: 2.719 kB / 421.8 MB, free: 20.55 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.0231/0.4072, allocations: 10.34 MB / 432.1 MB, free: 10.06 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009608/0.4082, allocations: 1.679 MB / 433.8 MB, free: 8.203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003429/0.4117, allocations: 2.742 MB / 436.6 MB, free: 5.441 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002084/0.4119, allocations: 43.66 kB / 436.6 MB, free: 5.395 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009136/0.4128, allocations: 2.094 MB / 438.7 MB, free: 3.285 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004685/0.4133, allocations: 0.5054 MB / 439.2 MB, free: 2.773 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001152/0.4144, allocations: 0.9125 MB / 440.1 MB, free: 1.848 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.64e-05/0.4145, allocations: 305.1 kB / 440.4 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001955/0.4165, allocations: 1.625 MB / 442 MB, free: 15.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004049/0.4205, allocations: 4.424 MB / 446.5 MB, free: 10.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007001/0.4275, allocations: 6.492 MB / 453 MB, free: 2.191 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001018/0.4277, allocations: 28 kB / 453 MB, free: 2.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01458/0.4422, allocations: 7.039 MB / 460 MB, free: 11.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001295/0.4424, allocations: 55.94 kB / 460.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006263/0.4487, allocations: 2.528 MB / 462.6 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005111/0.4538, allocations: 1.497 MB / 464.1 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003616/0.4575, allocations: 1.006 MB / 465.1 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01056/0.4681, allocations: 7.779 MB / 472.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003609/0.4717, allocations: 331.5 kB / 473.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007958/0.4725, allocations: 284 kB / 473.5 MB, free: 13.34 MB / 366.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.00263/0.4752, allocations: 1.423 MB / 474.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005412/0.4757, allocations: 233.9 kB / 475.1 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006549/0.4823, allocations: 2.831 MB / 478 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005725/0.4881, allocations: 2.526 MB / 480.5 MB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-05/0.4881, allocations: 4 kB / 480.5 MB, free: 6.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.145e-05/0.4881, allocations: 3.984 kB / 480.5 MB, free: 6.266 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0139/0.502, allocations: 6.882 MB / 487.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/0.5021, allocations: 0 / 487.4 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008399/0.5029, allocations: 180.8 kB / 487.6 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004609/0.5076, allocations: 1.434 MB / 489 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/0.5077, allocations: 35.97 kB / 489 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009757/0.5175, allocations: 7.926 MB / 497 MB, free: 5.438 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009535/0.5185, allocations: 1.525 MB / 498.5 MB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008498/0.527, allocations: 4.864 MB / 0.4915 GB, free: 14.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000744/0.5278, allocations: 297.9 kB / 0.4918 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004649/0.5282, allocations: 28 kB / 0.4919 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001327/0.5296, allocations: 111.8 kB / 0.492 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002868/0.5299, allocations: 80.38 kB / 0.492 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.53, allocations: 35.98 kB / 0.4921 GB, free: 14.3 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002691/0.5327, allocations: 1.702 MB / 0.4937 GB, free: 12.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.433e-06/0.5327, allocations: 0 / 0.4937 GB, free: 12.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003526/0.5362, allocations: 0.7746 MB / 0.4945 GB, free: 11.82 MB / 398.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.009325/0.5456, allocations: 5.49 MB / 0.4999 GB, free: 6.281 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008438/0.554, allocations: 4.667 MB / 0.5044 GB, free: 1.598 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/0.5541, allocations: 4 kB / 0.5044 GB, free: 1.594 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003341/0.5574, allocations: 1.728 MB / 0.5061 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002207/0.5597, allocations: 270.6 kB / 0.5064 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2048/0.7645, allocations: 37.21 MB / 0.5427 GB, free: 141.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00205/0.7666, allocations: 2.296 MB / 0.5449 GB, free: 140.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002953/0.7696, allocations: 1.409 MB / 0.5463 GB, free: 140.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001128/0.7707, allocations: 1.115 MB / 0.5474 GB, free: 139.8 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.7707, allocations: 0 / 0.5474 GB, free: 139.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06963/0.8403, allocations: 51.51 MB / 0.5977 GB, free: 96.82 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001431/0.8405, allocations: 262.7 kB / 0.598 GB, free: 96.56 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.44/4.281, allocations: 4 kB / 0.598 GB, free: 96.55 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches