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.0008859/0.000886, allocations: 96.25 kB / 17.3 MB, free: 6.344 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.001035/0.001035, allocations: 178.5 kB / 18.21 MB, free: 5.531 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.249/1.249, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004617/0.0004617, allocations: 8.641 kB / 281.5 MB, free: 3.328 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09123/0.09171, allocations: 47.58 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01538/0.1071, allocations: 17.25 MB / 346.3 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01048/0.1177, allocations: 4.985 MB / 351.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002484/0.1202, allocations: 71.81 kB / 351.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007419/0.121, allocations: 282.7 kB / 351.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002855/0.1238, allocations: 1.269 MB / 352.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008652/0.1247, allocations: 415.4 kB / 353.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003695/0.1284, allocations: 3.624 MB / 356.9 MB, free: 7.676 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002617/0.1311, allocations: 2.039 MB / 359 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009344/0.132, allocations: 0.6729 MB / 359.7 MB, free: 4.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001322/0.1333, allocations: 1.218 MB / 360.9 MB, free: 3.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000183/0.1335, allocations: 84 kB / 361 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00164/0.1352, allocations: 1.006 MB / 362 MB, free: 2.598 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008853/0.1361, allocations: 1.048 MB / 363 MB, free: 1.547 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009933/0.1371, allocations: 1.244 MB / 364.3 MB, free: 296 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003944/0.141, allocations: 4.087 MB / 368.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1411, allocations: 0 / 368.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1411, allocations: 0 / 368.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.872e-05/0.1411, allocations: 0 / 368.3 MB, free: 12.19 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.005116/0.1462, allocations: 2.556 MB / 370.9 MB, free: 9.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.663e-05/0.1463, allocations: 12.03 kB / 370.9 MB, free: 9.562 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005588/0.1469, allocations: 470.9 kB / 371.4 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006439/0.1533, allocations: 1.791 MB / 373.2 MB, free: 7.297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003294/0.1566, allocations: 1.839 MB / 375 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001085/0.1568, allocations: 131.3 kB / 375.1 MB, free: 5.281 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006156/0.1574, allocations: 263.6 kB / 375.4 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1751/0.3325, allocations: 6.664 MB / 382.1 MB, free: 49.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.21e-05/0.3327, allocations: 27.53 kB / 382.1 MB, free: 49.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002552/0.3329, allocations: 94.19 kB / 382.2 MB, free: 49.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002433/0.3354, allocations: 1.361 MB / 383.5 MB, free: 49.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0106/0.346, allocations: 6.048 MB / 389.6 MB, free: 48.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01979/0.3658, allocations: 25.6 MB / 415.2 MB, free: 27.65 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005849/0.3717, allocations: 2.671 MB / 417.8 MB, free: 24.84 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009788/0.3727, allocations: 1.036 MB / 418.9 MB, free: 23.79 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003909/0.3766, allocations: 3.847 MB / 422.7 MB, free: 19.7 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.3766, allocations: 47.12 kB / 422.8 MB, free: 19.64 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 3.817e-06/0.3766, allocations: 4 kB / 422.8 MB, free: 19.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02415/0.4008, allocations: 10.37 MB / 433.2 MB, free: 9.113 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001053/0.4019, allocations: 1.585 MB / 434.7 MB, free: 7.359 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003771/0.4057, allocations: 2.746 MB / 437.5 MB, free: 4.594 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001677/0.4059, allocations: 46.34 kB / 437.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001108/0.407, allocations: 2.095 MB / 439.6 MB, free: 2.449 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000527/0.4075, allocations: 0.4996 MB / 440.1 MB, free: 1.953 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005475/0.4081, allocations: 392.5 kB / 440.5 MB, free: 1.562 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.547e-05/0.4082, allocations: 305.1 kB / 440.8 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002419/0.4106, allocations: 1.626 MB / 442.4 MB, free: 15.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004538/0.4151, allocations: 4.421 MB / 446.9 MB, free: 9.797 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007525/0.4227, allocations: 6.492 MB / 453.3 MB, free: 1.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.842e-05/0.4227, allocations: 28 kB / 453.4 MB, free: 1.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.013/0.4358, allocations: 7.041 MB / 460.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.312e-05/0.4358, allocations: 48 kB / 460.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005773/0.4416, allocations: 2.538 MB / 463 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004975/0.4466, allocations: 1.49 MB / 464.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002679/0.4493, allocations: 1.002 MB / 465.5 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009353/0.4587, allocations: 7.22 MB / 472.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003381/0.4621, allocations: 323.6 kB / 473 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007684/0.4628, allocations: 281.1 kB / 473.3 MB, free: 13.66 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.002679/0.4655, allocations: 1.424 MB / 474.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004935/0.466, allocations: 229 kB / 474.9 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006698/0.4728, allocations: 2.853 MB / 477.8 MB, free: 9.121 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005928/0.4787, allocations: 2.509 MB / 480.3 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.857e-05/0.4788, allocations: 8.453 kB / 480.3 MB, free: 6.586 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.018e-05/0.4788, allocations: 7.984 kB / 480.3 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01369/0.4925, allocations: 6.873 MB / 487.2 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/0.4925, allocations: 0 / 487.2 MB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008024/0.4933, allocations: 179.7 kB / 487.4 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00468/0.498, allocations: 1.444 MB / 488.8 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001406/0.4982, allocations: 31.97 kB / 488.8 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009887/0.5081, allocations: 7.337 MB / 496.2 MB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001023/0.5092, allocations: 1.454 MB / 497.6 MB, free: 4.793 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008721/0.5179, allocations: 4.848 MB / 0.4907 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006343/0.5186, allocations: 294 kB / 0.491 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003982/0.519, allocations: 31.92 kB / 0.491 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.5202, allocations: 115.7 kB / 0.4911 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002765/0.5205, allocations: 76.38 kB / 0.4912 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.853e-05/0.5206, allocations: 39.98 kB / 0.4912 GB, free: 15.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002822/0.5235, allocations: 1.709 MB / 0.4929 GB, free: 13.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.5235, allocations: 4 kB / 0.4929 GB, free: 13.62 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00352/0.527, allocations: 0.7641 MB / 0.4937 GB, free: 12.86 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.008769/0.5358, allocations: 5.493 MB / 0.499 GB, free: 7.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007035/0.5428, allocations: 4.326 MB / 0.5033 GB, free: 2.969 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.5429, allocations: 0 / 0.5033 GB, free: 2.969 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0031/0.546, allocations: 1.721 MB / 0.5049 GB, free: 1.203 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002266/0.5482, allocations: 256.4 kB / 0.5052 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2167/0.7649, allocations: 37.39 MB / 0.5417 GB, free: 145.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002265/0.7672, allocations: 2.295 MB / 0.5439 GB, free: 144.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002847/0.7701, allocations: 1.411 MB / 0.5453 GB, free: 144.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/0.7712, allocations: 1.119 MB / 0.5464 GB, free: 144.4 MB / 430.1 MB Notification: Performance of SimCode: time 7.31e-07/0.7712, allocations: 1.938 kB / 0.5464 GB, free: 144.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.038/1.81, allocations: 49.72 MB / 0.595 GB, free: 103.1 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001492/1.81, allocations: 257.9 kB / 0.5952 GB, free: 102.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.908/5.717, allocations: 0 / 0.5952 GB, free: 102.9 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