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.001002/0.001002, allocations: 108.7 kB / 17.16 MB, free: 6.305 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.001239/0.001239, allocations: 198 kB / 18.07 MB, free: 5.41 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.351/1.351, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.00132/0.00132, allocations: 48.14 kB / 280.1 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1031, allocations: 46.64 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01871/0.1218, allocations: 17.92 MB / 344.6 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01235/0.1342, allocations: 5.027 MB / 349.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003549/0.1379, allocations: 71.81 kB / 349.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002395/0.1403, allocations: 1.005 MB / 350.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003446/0.1438, allocations: 1.269 MB / 352 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001047/0.1448, allocations: 415.4 kB / 352.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00426/0.1491, allocations: 3.636 MB / 356 MB, free: 7.348 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002842/0.152, allocations: 1.509 MB / 357.5 MB, free: 5.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001805/0.1538, allocations: 0.7354 MB / 358.3 MB, free: 5.082 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002493/0.1563, allocations: 1.304 MB / 359.6 MB, free: 3.773 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007681/0.1571, allocations: 116 kB / 359.7 MB, free: 3.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002732/0.1598, allocations: 1.022 MB / 360.7 MB, free: 2.637 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001647/0.1615, allocations: 1.079 MB / 361.8 MB, free: 1.555 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002613/0.1641, allocations: 1.281 MB / 363.1 MB, free: 272 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005377/0.1695, allocations: 4.163 MB / 367.2 MB, free: 12.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.446e-06/0.1696, allocations: 0 / 367.2 MB, free: 12.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1696, allocations: 0 / 367.2 MB, free: 12.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001354/0.1697, allocations: 0 / 367.2 MB, free: 12.09 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.00871/0.1784, allocations: 3.082 MB / 370.3 MB, free: 8.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.1785, allocations: 8.031 kB / 370.3 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008087/0.1793, allocations: 470.9 kB / 370.8 MB, free: 8.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007553/0.1869, allocations: 1.744 MB / 372.5 MB, free: 6.723 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004179/0.1911, allocations: 1.839 MB / 374.4 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001373/0.1913, allocations: 135.3 kB / 374.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008738/0.1921, allocations: 259.6 kB / 374.8 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1859/0.378, allocations: 6.658 MB / 381.4 MB, free: 50.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-05/0.3782, allocations: 27.03 kB / 381.4 MB, free: 50.78 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002628/0.3784, allocations: 89.73 kB / 381.5 MB, free: 50.78 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002493/0.3809, allocations: 1.358 MB / 382.9 MB, free: 50.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01261/0.3936, allocations: 6.035 MB / 388.9 MB, free: 48.94 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02675/0.4203, allocations: 25.62 MB / 414.5 MB, free: 28.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006157/0.4265, allocations: 2.651 MB / 417.2 MB, free: 25.37 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.4278, allocations: 1.036 MB / 418.2 MB, free: 24.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00484/0.4327, allocations: 3.85 MB / 422.1 MB, free: 20.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.575e-05/0.4327, allocations: 55.06 kB / 422.1 MB, free: 20.17 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 3.206e-06/0.4327, allocations: 4 kB / 422.1 MB, free: 20.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02199/0.4547, allocations: 10.34 MB / 432.5 MB, free: 9.676 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009897/0.4557, allocations: 1.586 MB / 434.1 MB, free: 7.922 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003147/0.4589, allocations: 2.746 MB / 436.8 MB, free: 5.156 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002465/0.4592, allocations: 37.7 kB / 436.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009603/0.4601, allocations: 2.098 MB / 439 MB, free: 3.004 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000446/0.4606, allocations: 0.5015 MB / 439.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009326/0.4615, allocations: 0.9125 MB / 440.4 MB, free: 1.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.311e-05/0.4616, allocations: 313.1 kB / 440.7 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002032/0.4636, allocations: 1.621 MB / 442.3 MB, free: 15.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004468/0.4681, allocations: 4.424 MB / 446.7 MB, free: 9.797 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007738/0.4759, allocations: 6.492 MB / 453.2 MB, free: 1.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.164e-05/0.476, allocations: 28 kB / 453.2 MB, free: 1.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01341/0.4894, allocations: 7.038 MB / 460.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.041e-05/0.4895, allocations: 44 kB / 460.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005749/0.4952, allocations: 2.544 MB / 462.9 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005013/0.5003, allocations: 1.489 MB / 464.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002888/0.5032, allocations: 0.9981 MB / 465.4 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009681/0.5129, allocations: 7.224 MB / 472.6 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003497/0.5164, allocations: 323.5 kB / 472.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007642/0.5172, allocations: 284 kB / 473.2 MB, free: 13.64 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.00243/0.5196, allocations: 1.427 MB / 474.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005023/0.5201, allocations: 233 kB / 474.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006359/0.5265, allocations: 2.845 MB / 477.7 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005883/0.5324, allocations: 2.509 MB / 480.2 MB, free: 6.578 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-05/0.5325, allocations: 8 kB / 480.2 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.226e-05/0.5325, allocations: 3.984 kB / 480.2 MB, free: 6.566 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01392/0.5464, allocations: 6.875 MB / 487.1 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.5465, allocations: 0 / 487.1 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008491/0.5473, allocations: 175.7 kB / 487.2 MB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004728/0.5521, allocations: 1.446 MB / 488.7 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001532/0.5522, allocations: 23.98 kB / 488.7 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009647/0.5619, allocations: 7.32 MB / 496 MB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001058/0.563, allocations: 1.45 MB / 497.5 MB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00891/0.5719, allocations: 4.857 MB / 0.4906 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.573, allocations: 297.9 kB / 0.4908 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007127/0.5737, allocations: 27.94 kB / 0.4909 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001599/0.5753, allocations: 111.8 kB / 0.491 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003427/0.5757, allocations: 80.44 kB / 0.4911 GB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/0.5758, allocations: 36.23 kB / 0.4911 GB, free: 15.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003723/0.5796, allocations: 1.701 MB / 0.4927 GB, free: 13.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5796, allocations: 0 / 0.4927 GB, free: 13.61 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00422/0.5838, allocations: 0.7669 MB / 0.4935 GB, free: 12.85 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.009504/0.5933, allocations: 5.501 MB / 0.4989 GB, free: 7.297 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007458/0.6008, allocations: 4.335 MB / 0.5031 GB, free: 2.938 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.6008, allocations: 0 / 0.5031 GB, free: 2.938 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003067/0.6039, allocations: 1.717 MB / 0.5048 GB, free: 1.172 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002489/0.6064, allocations: 250.4 kB / 0.505 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2338/0.8403, allocations: 37.22 MB / 0.5414 GB, free: 147.2 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002643/0.843, allocations: 2.301 MB / 0.5436 GB, free: 146.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003385/0.8464, allocations: 1.406 MB / 0.545 GB, free: 146.4 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001249/0.8476, allocations: 1.12 MB / 0.5461 GB, free: 145.5 MB / 430.1 MB Notification: Performance of SimCode: time 1.964e-06/0.8476, allocations: 0 / 0.5461 GB, free: 145.5 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.118/0.9656, allocations: 50.35 MB / 0.5952 GB, free: 103.6 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001647/0.9658, allocations: 258.6 kB / 0.5955 GB, free: 103.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.263/4.228, allocations: 0 / 0.5955 GB, free: 103.4 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