Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001421/0.001421, allocations: 214.3 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.425/1.425, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 47.92 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3062/0.3078, allocations: 53.37 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009067/0.3169, allocations: 6.592 MB / 437.7 MB, free: 16 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006675/0.3235, allocations: 3.063 MB / 440.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009615/0.3245, allocations: 39.81 kB / 440.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002385/0.3269, allocations: 1.016 MB / 441.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003609/0.3305, allocations: 1.374 MB / 443.2 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.3315, allocations: 459.2 kB / 443.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003599/0.3351, allocations: 2.664 MB / 446.3 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001591/0.3367, allocations: 1.318 MB / 447.6 MB, free: 6.043 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001127/0.3378, allocations: 0.8564 MB / 448.5 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001676/0.3395, allocations: 1.285 MB / 449.7 MB, free: 3.895 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000327/0.3398, allocations: 168 kB / 449.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001751/0.3416, allocations: 0.9126 MB / 450.8 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001103/0.3427, allocations: 1.122 MB / 451.9 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00113/0.3438, allocations: 0.9392 MB / 452.9 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005767/0.3496, allocations: 4.353 MB / 457.2 MB, free: 12.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3496, allocations: 4 kB / 457.2 MB, free: 12.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.696e-06/0.3496, allocations: 0 / 457.2 MB, free: 12.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.687e-05/0.3496, allocations: 0 / 457.2 MB, free: 12.37 MB / 366.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.006011/0.3556, allocations: 3.033 MB / 460.3 MB, free: 9.293 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.3557, allocations: 12.02 kB / 460.3 MB, free: 9.281 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005746/0.3563, allocations: 470.8 kB / 460.7 MB, free: 8.812 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006884/0.3632, allocations: 1.828 MB / 462.6 MB, free: 6.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004186/0.3673, allocations: 1.547 MB / 464.1 MB, free: 5.402 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001491/0.3675, allocations: 135.3 kB / 464.2 MB, free: 5.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007189/0.3682, allocations: 259.7 kB / 464.5 MB, free: 5.016 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01259/0.3808, allocations: 6.701 MB / 471.2 MB, free: 13.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.929e-05/0.3809, allocations: 27.8 kB / 471.2 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002771/0.3812, allocations: 91.89 kB / 471.3 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002363/0.3835, allocations: 1.367 MB / 472.7 MB, free: 12.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01341/0.3969, allocations: 6.021 MB / 478.7 MB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03777/0.4347, allocations: 24.56 MB / 0.4915 GB, free: 13.01 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007282/0.442, allocations: 2.137 MB / 0.4936 GB, free: 10.83 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001572/0.4436, allocations: 0.9928 MB / 0.4945 GB, free: 9.828 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006291/0.4499, allocations: 2.738 MB / 0.4972 GB, free: 7.062 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.669e-05/0.4499, allocations: 47 kB / 0.4972 GB, free: 7.008 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 3.867e-06/0.4499, allocations: 0 / 0.4972 GB, free: 7.008 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02868/0.4786, allocations: 10.16 MB / 0.5072 GB, free: 12.77 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001559/0.4801, allocations: 1.56 MB / 0.5087 GB, free: 11.05 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004921/0.4851, allocations: 2.9 MB / 0.5115 GB, free: 8.133 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002212/0.4853, allocations: 41.7 kB / 0.5116 GB, free: 8.086 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0018/0.4871, allocations: 2.175 MB / 0.5137 GB, free: 5.887 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006323/0.4877, allocations: 0.5313 MB / 0.5142 GB, free: 5.352 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001264/0.489, allocations: 0.921 MB / 0.5151 GB, free: 4.418 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.4891, allocations: 301.1 kB / 0.5154 GB, free: 4.121 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002469/0.4916, allocations: 1.629 MB / 0.517 GB, free: 2.484 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00481/0.4964, allocations: 4.432 MB / 0.5213 GB, free: 12.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00801/0.5044, allocations: 6.504 MB / 0.5277 GB, free: 4.758 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-05/0.5045, allocations: 28 kB / 0.5277 GB, free: 4.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01435/0.5188, allocations: 7.045 MB / 0.5346 GB, free: 13.66 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.065e-05/0.5189, allocations: 48 kB / 0.5346 GB, free: 13.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006196/0.5251, allocations: 2.532 MB / 0.5371 GB, free: 11.08 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005189/0.5303, allocations: 1.493 MB / 0.5385 GB, free: 9.574 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003095/0.5334, allocations: 1.006 MB / 0.5395 GB, free: 8.566 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01089/0.5443, allocations: 7.523 MB / 0.5469 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003619/0.5479, allocations: 323.7 kB / 0.5472 GB, free: 0.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007573/0.5486, allocations: 284 kB / 0.5475 GB, free: 228 kB / 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.2019/0.7505, allocations: 1.421 MB / 0.5488 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000471/0.751, allocations: 245.2 kB / 0.5491 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006021/0.7516, allocations: 331.3 kB / 0.5494 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005967/0.7576, allocations: 2.504 MB / 0.5518 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.327e-05/0.7576, allocations: 5.5 kB / 0.5518 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.985e-05/0.7576, allocations: 7.047 kB / 0.5518 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01153/0.7691, allocations: 6.54 MB / 0.5582 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.7691, allocations: 0 / 0.5582 GB, free: 109.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007058/0.7699, allocations: 179.9 kB / 0.5584 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004132/0.774, allocations: 1.435 MB / 0.5598 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001124/0.7741, allocations: 31.02 kB / 0.5598 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007882/0.782, allocations: 7.656 MB / 0.5673 GB, free: 105.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000658/0.7826, allocations: 1.436 MB / 0.5687 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007045/0.7897, allocations: 4.865 MB / 0.5735 GB, free: 99.18 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005838/0.7903, allocations: 229.7 kB / 0.5737 GB, free: 99.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004413/0.7907, allocations: 24 kB / 0.5737 GB, free: 99.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.7918, allocations: 119.8 kB / 0.5738 GB, free: 98.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/0.792, allocations: 88.36 kB / 0.5739 GB, free: 98.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-05/0.7921, allocations: 31.98 kB / 0.5739 GB, free: 98.84 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001808/0.7939, allocations: 1.697 MB / 0.5756 GB, free: 97.14 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7939, allocations: 0 / 0.5756 GB, free: 97.14 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002906/0.7968, allocations: 0.7461 MB / 0.5763 GB, free: 96.4 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.007316/0.8041, allocations: 5.502 MB / 0.5817 GB, free: 90.89 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006271/0.8104, allocations: 4.137 MB / 0.5857 GB, free: 86.79 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.8104, allocations: 0 / 0.5857 GB, free: 86.79 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002648/0.8131, allocations: 1.578 MB / 0.5873 GB, free: 85.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002092/0.8152, allocations: 263.4 kB / 0.5875 GB, free: 84.95 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04187/0.857, allocations: 33.78 MB / 0.6205 GB, free: 47.27 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002406/0.8594, allocations: 1.733 MB / 0.6222 GB, free: 45.51 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002654/0.8621, allocations: 1.408 MB / 0.6236 GB, free: 44.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001381/0.8635, allocations: 1.108 MB / 0.6247 GB, free: 42.99 MB / 462.1 MB Notification: Performance of SimCode: time 9.32e-07/0.8635, allocations: 0 / 0.6247 GB, free: 42.99 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6183/1.482, allocations: 49.06 MB / 0.6726 GB, free: 10.47 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.53/17.01, allocations: 10.23 kB / 0.6726 GB, free: 10.46 MB / 478.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 19.84501184616238]