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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 108.4 kB / 17.16 MB, free: 6.031 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.001305/0.001305, allocations: 190 kB / 18.07 MB, free: 5.266 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.519/1.519, allocations: 205.1 MB / 223.9 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.0012/0.0012, allocations: 51.92 kB / 280 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.118, allocations: 46.63 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01857/0.1366, allocations: 17.91 MB / 344.5 MB, free: 2.895 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.011/0.1477, allocations: 5.039 MB / 349.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004516/0.1523, allocations: 71.81 kB / 349.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002378/0.1547, allocations: 1.001 MB / 350.6 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003386/0.1581, allocations: 1.269 MB / 351.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009648/0.1591, allocations: 419.4 kB / 352.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004179/0.1633, allocations: 3.624 MB / 355.9 MB, free: 7.449 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002121/0.1654, allocations: 1.52 MB / 357.4 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001176/0.1666, allocations: 0.7315 MB / 358.2 MB, free: 5.176 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001642/0.1683, allocations: 1.312 MB / 359.5 MB, free: 3.859 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002721/0.1686, allocations: 116 kB / 359.6 MB, free: 3.746 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00172/0.1703, allocations: 1.018 MB / 360.6 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001023/0.1713, allocations: 1.075 MB / 361.7 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001127/0.1725, allocations: 1.261 MB / 363 MB, free: 388 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00449/0.177, allocations: 4.159 MB / 367.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.177, allocations: 0 / 367.1 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.177, allocations: 4 kB / 367.1 MB, free: 12.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.212e-05/0.1771, allocations: 3.938 kB / 367.1 MB, free: 12.2 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.006119/0.1832, allocations: 3.051 MB / 370.2 MB, free: 9.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.1833, allocations: 8.031 kB / 370.2 MB, free: 9.082 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006252/0.1895, allocations: 1.74 MB / 371.9 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002899/0.1925, allocations: 1.437 MB / 373.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/0.1926, allocations: 131.3 kB / 373.5 MB, free: 5.723 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006811/0.1933, allocations: 259.6 kB / 373.7 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1936/0.3869, allocations: 6.649 MB / 380.4 MB, free: 51 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.249e-05/0.387, allocations: 34.14 kB / 380.4 MB, free: 50.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002882/0.3873, allocations: 85.05 kB / 380.5 MB, free: 50.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002512/0.3898, allocations: 1.371 MB / 381.9 MB, free: 50.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01266/0.4025, allocations: 6.026 MB / 387.9 MB, free: 49.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02581/0.4284, allocations: 25.65 MB / 413.6 MB, free: 28.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005885/0.4343, allocations: 2.658 MB / 416.2 MB, free: 26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001062/0.4354, allocations: 1.039 MB / 417.3 MB, free: 24.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005151/0.4406, allocations: 3.882 MB / 421.1 MB, free: 20.83 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.455e-05/0.4406, allocations: 59.06 kB / 421.2 MB, free: 20.76 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 2.916e-06/0.4406, allocations: 0 / 421.2 MB, free: 20.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02298/0.4636, allocations: 10.3 MB / 431.5 MB, free: 10.31 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009782/0.4646, allocations: 1.584 MB / 433.1 MB, free: 8.555 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003753/0.4684, allocations: 2.737 MB / 435.8 MB, free: 5.797 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001666/0.4686, allocations: 39.73 kB / 435.9 MB, free: 5.754 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001039/0.4696, allocations: 2.084 MB / 437.9 MB, free: 3.648 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000501/0.4702, allocations: 0.5015 MB / 438.4 MB, free: 3.141 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00124/0.4714, allocations: 0.9204 MB / 439.4 MB, free: 2.207 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.619e-05/0.4715, allocations: 313.1 kB / 439.7 MB, free: 1.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002081/0.4736, allocations: 1.648 MB / 441.3 MB, free: 248 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004632/0.4782, allocations: 4.46 MB / 445.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007188/0.4854, allocations: 6.535 MB / 452.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.188e-05/0.4855, allocations: 28 kB / 452.3 MB, free: 2.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.0196/0.5051, allocations: 8.002 MB / 460.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001023/0.5053, allocations: 48.19 kB / 460.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01127/0.5166, allocations: 3.496 MB / 463.9 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01139/0.528, allocations: 2.588 MB / 466.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003376/0.5314, allocations: 1.006 MB / 467.5 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01455/0.546, allocations: 8.877 MB / 476.4 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003673/0.5497, allocations: 336.4 kB / 476.7 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009201/0.5506, allocations: 284 kB / 477 MB, free: 9.473 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 (547): * Single equations (assignments): 539 * 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.00325/0.5539, allocations: 1.423 MB / 478.4 MB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006608/0.5546, allocations: 229 kB / 478.6 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006985/0.5616, allocations: 2.835 MB / 481.4 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006048/0.5677, allocations: 2.509 MB / 483.9 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.794e-05/0.5677, allocations: 4 kB / 484 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.097e-05/0.5678, allocations: 11.97 kB / 484 MB, free: 2.402 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01577/0.5836, allocations: 6.878 MB / 490.8 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-05/0.5836, allocations: 1.062 kB / 490.8 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008892/0.5845, allocations: 183.7 kB / 491 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00468/0.5892, allocations: 1.434 MB / 492.5 MB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001739/0.5894, allocations: 31.98 kB / 492.5 MB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009633/0.599, allocations: 7.314 MB / 499.8 MB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001068/0.6001, allocations: 1.453 MB / 0.4895 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008727/0.6089, allocations: 4.859 MB / 0.4943 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007591/0.6097, allocations: 290 kB / 0.4945 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005252/0.6102, allocations: 28 kB / 0.4946 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001507/0.6118, allocations: 111.8 kB / 0.4947 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003184/0.6121, allocations: 84.38 kB / 0.4947 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/0.6122, allocations: 35.98 kB / 0.4948 GB, free: 11.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002938/0.6152, allocations: 1.701 MB / 0.4964 GB, free: 9.449 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6152, allocations: 0 / 0.4964 GB, free: 9.449 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004198/0.6194, allocations: 0.7878 MB / 0.4972 GB, free: 8.664 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.0006669/0.6201, allocations: 164.3 kB / 0.4974 GB, free: 8.496 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008092/0.6282, allocations: 4.427 MB / 0.5017 GB, free: 4.043 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.6282, allocations: 4 kB / 0.5017 GB, free: 4.039 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003012/0.6312, allocations: 1.706 MB / 0.5034 GB, free: 2.277 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002486/0.6337, allocations: 267.4 kB / 0.5036 GB, free: 2.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/0.6463, allocations: 7.817 MB / 0.5112 GB, free: 10.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003028/0.6494, allocations: 2.301 MB / 0.5135 GB, free: 7.812 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00349/0.6529, allocations: 1.412 MB / 0.5149 GB, free: 6.395 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005714/0.6535, allocations: 163.4 kB / 0.515 GB, free: 6.234 MB / 414.1 MB Notification: Performance of SimCode: time 1.192e-06/0.6535, allocations: 0 / 0.515 GB, free: 6.234 MB / 414.1 MB Notification: Performance of Templates: time 0.2309/0.8844, allocations: 29.71 MB / 0.544 GB, free: 124.6 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (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 & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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