Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 189 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 39.94 kB / 371.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.2211, allocations: 52.19 MB / 423.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.00853/0.2296, allocations: 6.564 MB / 429.9 MB, free: 7.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005581/0.2352, allocations: 3.055 MB / 433 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007115/0.2359, allocations: 39.81 kB / 433 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002118/0.238, allocations: 1.012 MB / 434 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002946/0.241, allocations: 1.409 MB / 435.4 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009452/0.2419, allocations: 463.1 kB / 435.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003285/0.2452, allocations: 2.639 MB / 438.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001813/0.247, allocations: 1.326 MB / 439.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001206/0.2482, allocations: 0.8564 MB / 440.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001906/0.2501, allocations: 1.343 MB / 442.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004325/0.2505, allocations: 168 kB / 442.2 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001707/0.2523, allocations: 0.9477 MB / 443.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001179/0.2534, allocations: 1.133 MB / 444.3 MB, free: 9.477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001312/0.2547, allocations: 0.9549 MB / 445.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004557/0.2593, allocations: 4.388 MB / 449.6 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2593, allocations: 3.938 kB / 449.6 MB, free: 4.105 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2593, allocations: 0 / 449.6 MB, free: 4.105 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.253e-05/0.2594, allocations: 4 kB / 449.7 MB, free: 4.102 MB / 350.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.0051/0.2645, allocations: 3.06 MB / 452.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.2645, allocations: 12.03 kB / 452.7 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.681e-05/0.2646, allocations: 59.58 kB / 452.8 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005258/0.2651, allocations: 478.8 kB / 453.2 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006292/0.2714, allocations: 1.758 MB / 455 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003002/0.2744, allocations: 1.66 MB / 456.7 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.2745, allocations: 131.3 kB / 456.8 MB, free: 12.87 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006432/0.2751, allocations: 259.7 kB / 457 MB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0102/0.2853, allocations: 6.685 MB / 463.7 MB, free: 5.465 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.57e-05/0.2854, allocations: 39.69 kB / 463.8 MB, free: 5.426 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002638/0.2857, allocations: 83.89 kB / 463.9 MB, free: 5.344 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002145/0.2878, allocations: 1.367 MB / 465.2 MB, free: 3.977 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01049/0.2983, allocations: 6.029 MB / 471.3 MB, free: 13.94 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02929/0.3276, allocations: 24.56 MB / 495.8 MB, free: 4.613 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006288/0.3339, allocations: 2.145 MB / 498 MB, free: 2.426 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.3352, allocations: 0.9809 MB / 498.9 MB, free: 1.434 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004813/0.34, allocations: 2.71 MB / 0.4899 GB, free: 14.7 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.764e-05/0.3401, allocations: 43.06 kB / 0.4899 GB, free: 14.65 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 2.915e-06/0.3401, allocations: 7.938 kB / 0.4899 GB, free: 14.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02509/0.3652, allocations: 10.11 MB / 0.4998 GB, free: 4.453 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001446/0.3666, allocations: 1.572 MB / 0.5014 GB, free: 2.719 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003785/0.3704, allocations: 2.75 MB / 0.504 GB, free: 15.95 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001855/0.3706, allocations: 41.69 kB / 0.5041 GB, free: 15.9 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001601/0.3722, allocations: 2.179 MB / 0.5062 GB, free: 13.7 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006039/0.3728, allocations: 0.5234 MB / 0.5067 GB, free: 13.17 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001226/0.374, allocations: 0.9249 MB / 0.5076 GB, free: 12.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3741, allocations: 305.2 kB / 0.5079 GB, free: 11.93 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002475/0.3766, allocations: 1.625 MB / 0.5095 GB, free: 10.3 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004844/0.3815, allocations: 4.417 MB / 0.5138 GB, free: 4.477 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007987/0.3894, allocations: 6.502 MB / 0.5202 GB, free: 12.58 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.275e-05/0.3895, allocations: 28 kB / 0.5202 GB, free: 12.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.0138/0.4033, allocations: 7.034 MB / 0.5271 GB, free: 5.512 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.903e-05/0.4034, allocations: 44 kB / 0.5271 GB, free: 5.469 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005944/0.4093, allocations: 2.522 MB / 0.5296 GB, free: 2.938 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005059/0.4144, allocations: 1.501 MB / 0.531 GB, free: 1.426 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002998/0.4174, allocations: 1.006 MB / 0.532 GB, free: 428 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01052/0.4279, allocations: 7.502 MB / 0.5393 GB, free: 8.684 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003157/0.4311, allocations: 323.9 kB / 0.5396 GB, free: 8.367 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006753/0.4317, allocations: 284.1 kB / 0.5399 GB, free: 8.09 MB / 462.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.003097/0.4348, allocations: 1.43 MB / 0.5413 GB, free: 6.648 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006862/0.4355, allocations: 246.4 kB / 0.5415 GB, free: 6.406 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006985/0.4425, allocations: 2.827 MB / 0.5443 GB, free: 3.551 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00584/0.4484, allocations: 2.494 MB / 0.5467 GB, free: 1.039 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.147e-05/0.4484, allocations: 7.984 kB / 0.5468 GB, free: 1.031 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.172e-05/0.4484, allocations: 7.984 kB / 0.5468 GB, free: 1.023 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2018/0.6502, allocations: 6.515 MB / 0.5531 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.6503, allocations: 0.9062 kB / 0.5531 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007537/0.651, allocations: 177.7 kB / 0.5533 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004108/0.6551, allocations: 1.436 MB / 0.5547 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001183/0.6552, allocations: 31.16 kB / 0.5547 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007974/0.6632, allocations: 7.659 MB / 0.5622 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007316/0.6639, allocations: 1.437 MB / 0.5636 GB, free: 114.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006998/0.6709, allocations: 4.858 MB / 0.5684 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005312/0.6715, allocations: 228.5 kB / 0.5686 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002593/0.6717, allocations: 23.98 kB / 0.5686 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.6728, allocations: 108.6 kB / 0.5687 GB, free: 111.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002449/0.673, allocations: 84.42 kB / 0.5688 GB, free: 111.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.396e-05/0.6731, allocations: 43.92 kB / 0.5688 GB, free: 111.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001843/0.675, allocations: 1.694 MB / 0.5705 GB, free: 109.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.675, allocations: 0 / 0.5705 GB, free: 109.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002883/0.6778, allocations: 0.7716 MB / 0.5712 GB, free: 108.9 MB / 462.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.006792/0.6846, allocations: 5.49 MB / 0.5766 GB, free: 103.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00516/0.6898, allocations: 4.128 MB / 0.5806 GB, free: 99.49 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.6898, allocations: 4 kB / 0.5806 GB, free: 99.49 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002402/0.6922, allocations: 1.574 MB / 0.5822 GB, free: 97.89 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001478/0.6937, allocations: 272.2 kB / 0.5824 GB, free: 97.64 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03565/0.7293, allocations: 33.8 MB / 0.6154 GB, free: 60 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001495/0.7308, allocations: 1.725 MB / 0.6171 GB, free: 58.24 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00286/0.7337, allocations: 1.408 MB / 0.6185 GB, free: 56.83 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001077/0.7348, allocations: 1.116 MB / 0.6196 GB, free: 55.71 MB / 462.1 MB Notification: Performance of SimCode: time 8.71e-07/0.7348, allocations: 4 kB / 0.6196 GB, free: 55.71 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8726/1.607, allocations: 50.87 MB / 0.6693 GB, free: 5.418 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.43/20.04, allocations: 11.88 kB / 0.6693 GB, free: 5.41 MB / 462.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 23.11233012599405]