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.001244/0.001244, allocations: 109.1 kB / 21.22 MB, free: 0.7539 MB / 14.72 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.00133/0.00133, allocations: 220.2 kB / 24.53 MB, free: 4.008 MB / 14.72 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 1.351/1.351, allocations: 230.5 MB / 258.2 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 59.89 kB / 378.6 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2786, allocations: 53.41 MB / 432 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009797/0.2884, allocations: 7.463 MB / 439.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00686/0.2952, allocations: 3.297 MB / 442.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001223/0.2964, allocations: 43.81 kB / 442.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00255/0.299, allocations: 1.055 MB / 443.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003696/0.3027, allocations: 1.374 MB / 445.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001154/0.3038, allocations: 459.1 kB / 445.7 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004375/0.3082, allocations: 2.669 MB / 448.3 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001969/0.3102, allocations: 1.32 MB / 449.6 MB, free: 4.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00158/0.3118, allocations: 0.8564 MB / 450.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002338/0.3141, allocations: 1.328 MB / 451.8 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005561/0.3147, allocations: 172 kB / 452 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002286/0.3169, allocations: 1.053 MB / 453 MB, free: 1.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001395/0.3183, allocations: 1.122 MB / 454.2 MB, free: 440 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001931/0.3203, allocations: 1.293 MB / 455.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006253/0.3265, allocations: 4.346 MB / 459.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.3265, allocations: 0 / 459.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.007e-06/0.3265, allocations: 4 kB / 459.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001153/0.3267, allocations: 4 kB / 459.8 MB, free: 10.76 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.006787/0.3334, allocations: 3.033 MB / 462.8 MB, free: 7.684 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/0.3335, allocations: 8.031 kB / 462.9 MB, free: 7.676 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.589e-05/0.3336, allocations: 63.58 kB / 462.9 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007021/0.3343, allocations: 470.9 kB / 463.4 MB, free: 7.145 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007173/0.3415, allocations: 1.824 MB / 465.2 MB, free: 5.316 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00364/0.3451, allocations: 1.535 MB / 466.7 MB, free: 3.754 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001356/0.3452, allocations: 143.2 kB / 466.9 MB, free: 3.613 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007749/0.346, allocations: 259.7 kB / 467.1 MB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01273/0.3587, allocations: 6.672 MB / 473.8 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-05/0.3588, allocations: 31.75 kB / 473.8 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003661/0.3592, allocations: 87.89 kB / 473.9 MB, free: 12.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00235/0.3615, allocations: 1.359 MB / 475.3 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01211/0.3737, allocations: 6.056 MB / 481.3 MB, free: 4.684 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03533/0.409, allocations: 25.46 MB / 0.4949 GB, free: 10.46 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00723/0.4162, allocations: 2.151 MB / 0.497 GB, free: 8.277 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001837/0.4181, allocations: 0.9926 MB / 0.498 GB, free: 7.273 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006943/0.425, allocations: 2.96 MB / 0.5009 GB, free: 4.285 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/0.4251, allocations: 43.06 kB / 0.5009 GB, free: 4.234 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 4.939e-06/0.4251, allocations: 4 kB / 0.5009 GB, free: 4.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02821/0.4533, allocations: 10.14 MB / 0.5108 GB, free: 10.01 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001517/0.4548, allocations: 1.564 MB / 0.5123 GB, free: 8.285 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003676/0.4585, allocations: 2.738 MB / 0.515 GB, free: 5.527 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002171/0.4587, allocations: 41.7 kB / 0.5151 GB, free: 5.48 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001649/0.4603, allocations: 2.175 MB / 0.5172 GB, free: 3.281 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006067/0.4609, allocations: 0.5234 MB / 0.5177 GB, free: 2.754 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001194/0.4621, allocations: 0.9171 MB / 0.5186 GB, free: 1.824 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.4623, allocations: 305.1 kB / 0.5189 GB, free: 1.523 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002474/0.4647, allocations: 1.621 MB / 0.5205 GB, free: 15.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004822/0.4696, allocations: 4.436 MB / 0.5248 GB, free: 10.05 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008003/0.4776, allocations: 6.503 MB / 0.5311 GB, free: 2.164 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.467e-05/0.4776, allocations: 28 kB / 0.5312 GB, free: 2.137 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.0138/0.4914, allocations: 7.056 MB / 0.5381 GB, free: 11.06 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.864e-05/0.4915, allocations: 48 kB / 0.5381 GB, free: 11.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006149/0.4976, allocations: 2.533 MB / 0.5406 GB, free: 8.469 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00521/0.5028, allocations: 1.485 MB / 0.542 GB, free: 6.973 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003341/0.5062, allocations: 1.01 MB / 0.543 GB, free: 5.961 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2182/0.7244, allocations: 7.569 MB / 0.5504 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003736/0.7281, allocations: 323.5 kB / 0.5507 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006014/0.7287, allocations: 282.9 kB / 0.551 GB, free: 110.2 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.002193/0.7309, allocations: 1.426 MB / 0.5524 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004295/0.7314, allocations: 241.8 kB / 0.5526 GB, free: 110 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006234/0.732, allocations: 332.4 kB / 0.5529 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005803/0.7378, allocations: 2.512 MB / 0.5554 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.839e-05/0.7378, allocations: 4.125 kB / 0.5554 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-05/0.7378, allocations: 5.266 kB / 0.5554 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01164/0.7495, allocations: 6.775 MB / 0.562 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/0.7495, allocations: 2.875 kB / 0.562 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007995/0.7503, allocations: 177 kB / 0.5622 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004413/0.7547, allocations: 1.439 MB / 0.5636 GB, free: 106.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002157/0.7549, allocations: 34.62 kB / 0.5636 GB, free: 106.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008753/0.7637, allocations: 7.714 MB / 0.5712 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000745/0.7644, allocations: 1.436 MB / 0.5726 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007598/0.772, allocations: 4.863 MB / 0.5773 GB, free: 95.93 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005829/0.7726, allocations: 226.9 kB / 0.5775 GB, free: 95.79 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003205/0.7729, allocations: 27.98 kB / 0.5775 GB, free: 95.76 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001163/0.7741, allocations: 107.8 kB / 0.5777 GB, free: 95.65 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002673/0.7743, allocations: 88.17 kB / 0.5777 GB, free: 95.57 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.907e-05/0.7744, allocations: 45.48 kB / 0.5778 GB, free: 95.53 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001883/0.7763, allocations: 1.692 MB / 0.5794 GB, free: 93.83 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7763, allocations: 3.844 kB / 0.5794 GB, free: 93.83 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003153/0.7795, allocations: 0.7466 MB / 0.5802 GB, free: 93.09 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.0074/0.7869, allocations: 5.496 MB / 0.5855 GB, free: 87.59 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006106/0.793, allocations: 4.135 MB / 0.5896 GB, free: 83.49 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/0.793, allocations: 0 / 0.5896 GB, free: 83.49 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002641/0.7956, allocations: 1.583 MB / 0.5911 GB, free: 81.89 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001702/0.7973, allocations: 283.5 kB / 0.5914 GB, free: 81.62 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03916/0.8365, allocations: 33.8 MB / 0.6244 GB, free: 43.95 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00164/0.8381, allocations: 2.293 MB / 0.6266 GB, free: 41.62 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002437/0.8406, allocations: 1.404 MB / 0.628 GB, free: 40.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001166/0.8417, allocations: 1.116 MB / 0.6291 GB, free: 39.09 MB / 462.1 MB Notification: Performance of SimCode: time 1.403e-06/0.8417, allocations: 0 / 0.6291 GB, free: 39.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5756/1.417, allocations: 52.74 MB / 0.6806 GB, free: 2.602 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.28/21.7, allocations: 4.062 kB / 0.6806 GB, free: 2.598 MB / 478.1 MB " [Timeout remaining time 638] (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/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_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: 24.81394524301868]