Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008062/0.0008062, allocations: 80.36 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007871/0.0007871, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8304/0.8304, allocations: 177 MB / 204.1 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.857e-05/2.026e-05, allocations: 3.266 kB / 324.5 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.006209/0.006229, allocations: 6.583 MB / 331.1 MB, free: 9.242 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004022/0.01025, allocations: 3.097 MB / 334.2 MB, free: 6.133 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004203/0.01067, allocations: 39.81 kB / 334.2 MB, free: 6.094 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001592/0.01226, allocations: 1.047 MB / 335.3 MB, free: 5.043 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001658/0.01392, allocations: 1.431 MB / 336.7 MB, free: 3.602 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005066/0.01443, allocations: 498.8 kB / 337.2 MB, free: 3.113 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001786/0.01621, allocations: 3.013 MB / 340.2 MB, free: 100 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001159/0.01737, allocations: 1.566 MB / 341.8 MB, free: 14.51 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00118/0.01855, allocations: 1.309 MB / 343.1 MB, free: 13.2 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00101/0.01956, allocations: 1.399 MB / 344.5 MB, free: 11.8 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001551/0.01972, allocations: 172 kB / 344.7 MB, free: 11.63 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008841/0.0206, allocations: 0.971 MB / 345.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005774/0.02118, allocations: 1.172 MB / 346.8 MB, free: 9.48 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004679/0.02165, allocations: 0.7163 MB / 347.5 MB, free: 8.762 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003278/0.02493, allocations: 4.372 MB / 351.9 MB, free: 4.375 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.02493, allocations: 0 / 351.9 MB, free: 4.375 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.02493, allocations: 0 / 351.9 MB, free: 4.375 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.234e-05/0.02496, allocations: 0 / 351.9 MB, free: 4.375 MB / 314.7 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.003352/0.02831, allocations: 3.08 MB / 355 MB, free: 1.25 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.02835, allocations: 15.98 kB / 355 MB, free: 1.234 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003577/0.02871, allocations: 470.9 kB / 355.5 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003713/0.03243, allocations: 1.933 MB / 357.4 MB, free: 14.83 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001502/0.03393, allocations: 1.379 MB / 358.8 MB, free: 13.42 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.657e-05/0.03399, allocations: 135.2 kB / 358.9 MB, free: 13.29 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003893/0.03438, allocations: 263.7 kB / 359.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005843/0.04023, allocations: 6.705 MB / 365.9 MB, free: 5.855 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.492e-05/0.04027, allocations: 27.77 kB / 365.9 MB, free: 5.828 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000177/0.04045, allocations: 95.83 kB / 366 MB, free: 5.734 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00113/0.04158, allocations: 1.367 MB / 367.3 MB, free: 4.363 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006278/0.04786, allocations: 6.06 MB / 373.4 MB, free: 14.29 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01749/0.06535, allocations: 24.7 MB / 398.1 MB, free: 4.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00379/0.06914, allocations: 2.207 MB / 400.3 MB, free: 2.578 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009114/0.07005, allocations: 0.997 MB / 401.3 MB, free: 1.574 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003622/0.07367, allocations: 2.856 MB / 404.2 MB, free: 14.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.524e-05/0.07371, allocations: 47.06 kB / 404.2 MB, free: 14.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 3.156e-06/0.07371, allocations: 0 / 404.2 MB, free: 14.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.01418/0.08789, allocations: 10.35 MB / 414.6 MB, free: 4.203 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008226/0.08871, allocations: 1.56 MB / 416.1 MB, free: 2.484 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002472/0.09118, allocations: 3.052 MB / 419.2 MB, free: 15.41 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.821e-05/0.09125, allocations: 45.7 kB / 419.2 MB, free: 15.36 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008573/0.09211, allocations: 2.144 MB / 421.4 MB, free: 13.19 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004383/0.09255, allocations: 0.5156 MB / 421.9 MB, free: 12.67 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007652/0.09331, allocations: 0.9093 MB / 422.8 MB, free: 11.75 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.193e-05/0.09337, allocations: 305.1 kB / 423.1 MB, free: 11.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001594/0.09497, allocations: 1.699 MB / 424.8 MB, free: 9.742 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002814/0.09778, allocations: 4.506 MB / 429.3 MB, free: 3.828 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004908/0.1027, allocations: 6.637 MB / 435.9 MB, free: 11.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.243e-05/0.1027, allocations: 32 kB / 436 MB, free: 11.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01131/0.114, allocations: 8.156 MB / 444.1 MB, free: 3.594 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.536e-05/0.1141, allocations: 51.12 kB / 444.2 MB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.185/0.2991, allocations: 3.623 MB / 447.8 MB, free: 109 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006667/0.3057, allocations: 2.679 MB / 450.5 MB, free: 109 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001951/0.3077, allocations: 1.02 MB / 451.5 MB, free: 109 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007523/0.3152, allocations: 9.425 MB / 460.9 MB, free: 105 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002124/0.3173, allocations: 400.8 kB / 461.3 MB, free: 104.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002169/0.3175, allocations: 284.3 kB / 461.6 MB, free: 104.8 MB / 410.7 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.001219/0.3188, allocations: 1.428 MB / 463 MB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002092/0.319, allocations: 240.9 kB / 463.2 MB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000263/0.3192, allocations: 323.4 kB / 463.6 MB, free: 104 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002979/0.3222, allocations: 2.508 MB / 466.1 MB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.3222, allocations: 11.44 kB / 466.1 MB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.3222, allocations: 11.73 kB / 466.1 MB, free: 103.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006458/0.3287, allocations: 6.582 MB / 472.7 MB, free: 96.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.3287, allocations: 7.984 kB / 472.7 MB, free: 96.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004123/0.3291, allocations: 176.6 kB / 472.9 MB, free: 96.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002298/0.3314, allocations: 1.439 MB / 474.3 MB, free: 95.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.209e-05/0.3315, allocations: 33.23 kB / 474.3 MB, free: 95.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005095/0.3366, allocations: 7.654 MB / 482 MB, free: 87.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000406/0.337, allocations: 1.446 MB / 483.4 MB, free: 85.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004274/0.3412, allocations: 4.869 MB / 488.3 MB, free: 81.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002384/0.3415, allocations: 250.1 kB / 488.5 MB, free: 80.95 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001438/0.3416, allocations: 23.98 kB / 488.6 MB, free: 80.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006439/0.3423, allocations: 151.5 kB / 488.7 MB, free: 80.79 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.3424, allocations: 80.48 kB / 488.8 MB, free: 80.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-05/0.3425, allocations: 39.98 kB / 488.8 MB, free: 80.67 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001303/0.3438, allocations: 1.822 MB / 490.7 MB, free: 78.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3438, allocations: 0 / 490.7 MB, free: 78.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002116/0.3459, allocations: 0.8601 MB / 491.5 MB, free: 77.98 MB / 410.7 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.004752/0.3506, allocations: 5.501 MB / 497 MB, free: 72.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003967/0.3546, allocations: 4.244 MB / 0.4895 GB, free: 68.22 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3546, allocations: 0 / 0.4895 GB, free: 68.22 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001466/0.3561, allocations: 1.582 MB / 0.4911 GB, free: 66.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009968/0.3571, allocations: 275.8 kB / 0.4913 GB, free: 66.36 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03138/0.3884, allocations: 36.21 MB / 0.5267 GB, free: 26.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001375/0.3898, allocations: 1.72 MB / 0.5284 GB, free: 24.48 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001844/0.3917, allocations: 1.419 MB / 0.5297 GB, free: 23.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007805/0.3924, allocations: 1.129 MB / 0.5309 GB, free: 21.93 MB / 410.7 MB Notification: Performance of SimCode: time 1.503e-06/0.3924, allocations: 0 / 0.5309 GB, free: 21.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06919/0.4616, allocations: 53.59 MB / 0.5832 GB, free: 0.7773 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.721/10.18, allocations: 8 kB / 0.5832 GB, free: 0.7695 MB / 442.7 MB " [Timeout remaining time 650] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.968876267783344]