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.001298/0.001298, allocations: 116.4 kB / 20.43 MB, free: 1.457 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.001468/0.001468, allocations: 214.9 kB / 23.75 MB, free: 4.672 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.44/1.44, allocations: 230.5 MB / 257.4 MB, free: 7.988 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="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 0.001806/0.001806, allocations: 67.89 kB / 377.8 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2801, allocations: 53.41 MB / 431.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009527/0.2897, allocations: 7.466 MB / 438.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006708/0.2964, allocations: 3.3 MB / 442 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008988/0.2973, allocations: 39.81 kB / 442 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002396/0.2997, allocations: 1.055 MB / 443 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003341/0.303, allocations: 1.373 MB / 444.4 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.304, allocations: 459.2 kB / 444.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003832/0.3079, allocations: 2.669 MB / 447.5 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001773/0.3096, allocations: 1.32 MB / 448.9 MB, free: 4.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001334/0.311, allocations: 0.8525 MB / 449.7 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001828/0.3128, allocations: 1.332 MB / 451 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000367/0.3132, allocations: 172 kB / 451.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001964/0.3151, allocations: 1.049 MB / 452.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001169/0.3163, allocations: 1.122 MB / 453.4 MB, free: 384 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001568/0.3179, allocations: 1.289 MB / 454.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00546/0.3233, allocations: 4.35 MB / 459 MB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.3233, allocations: 0 / 459 MB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3233, allocations: 4 kB / 459 MB, free: 10.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.469e-05/0.3234, allocations: 0 / 459 MB, free: 10.71 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.006552/0.33, allocations: 3.037 MB / 462.1 MB, free: 7.629 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.33, allocations: 8.031 kB / 462.1 MB, free: 7.621 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005885/0.3306, allocations: 470.9 kB / 462.5 MB, free: 7.152 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006736/0.3373, allocations: 1.824 MB / 464.4 MB, free: 5.324 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003629/0.341, allocations: 1.547 MB / 465.9 MB, free: 3.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.3411, allocations: 135.3 kB / 466 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006949/0.3418, allocations: 255.8 kB / 466.3 MB, free: 3.367 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01186/0.3536, allocations: 6.672 MB / 473 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.182e-05/0.3537, allocations: 27.75 kB / 473 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002588/0.354, allocations: 87.89 kB / 473.1 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002212/0.3562, allocations: 1.367 MB / 474.4 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01215/0.3683, allocations: 6.048 MB / 480.5 MB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03306/0.4014, allocations: 25.46 MB / 0.4941 GB, free: 10.46 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00671/0.4081, allocations: 2.156 MB / 0.4962 GB, free: 8.277 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/0.4096, allocations: 0.9887 MB / 0.4972 GB, free: 7.277 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005965/0.4156, allocations: 2.96 MB / 0.5 GB, free: 4.289 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.4156, allocations: 47.05 kB / 0.5001 GB, free: 4.234 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 3.116e-06/0.4157, allocations: 0 / 0.5001 GB, free: 4.234 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02719/0.4428, allocations: 10.15 MB / 0.51 GB, free: 10.01 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001582/0.4444, allocations: 1.564 MB / 0.5115 GB, free: 8.285 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003987/0.4484, allocations: 2.73 MB / 0.5142 GB, free: 5.535 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002263/0.4486, allocations: 41.7 kB / 0.5142 GB, free: 5.488 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001701/0.4503, allocations: 2.175 MB / 0.5164 GB, free: 3.289 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006982/0.451, allocations: 0.5234 MB / 0.5169 GB, free: 2.762 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001191/0.4522, allocations: 0.9171 MB / 0.5178 GB, free: 1.832 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4524, allocations: 305.1 kB / 0.5181 GB, free: 1.531 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002603/0.455, allocations: 1.637 MB / 0.5197 GB, free: 15.89 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005095/0.4601, allocations: 4.425 MB / 0.524 GB, free: 10.05 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008575/0.4686, allocations: 6.5 MB / 0.5303 GB, free: 2.168 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000106/0.4687, allocations: 31.94 kB / 0.5304 GB, free: 2.137 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01632/0.4851, allocations: 7.05 MB / 0.5372 GB, free: 11.07 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.846e-05/0.4851, allocations: 48 kB / 0.5373 GB, free: 11.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006373/0.4915, allocations: 2.536 MB / 0.5398 GB, free: 8.477 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005103/0.4966, allocations: 1.485 MB / 0.5412 GB, free: 6.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003198/0.4998, allocations: 1.014 MB / 0.5422 GB, free: 5.965 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2192/0.719, allocations: 7.565 MB / 0.5496 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003585/0.7226, allocations: 323.8 kB / 0.5499 GB, free: 109.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004541/0.723, allocations: 281.9 kB / 0.5502 GB, free: 109.1 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.001967/0.725, allocations: 1.427 MB / 0.5516 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000321/0.7253, allocations: 245.7 kB / 0.5518 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005222/0.7258, allocations: 328.4 kB / 0.5521 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005648/0.7315, allocations: 2.506 MB / 0.5546 GB, free: 108.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.666e-05/0.7315, allocations: 4.125 kB / 0.5546 GB, free: 108.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/0.7315, allocations: 10.89 kB / 0.5546 GB, free: 108.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01075/0.7423, allocations: 6.772 MB / 0.5612 GB, free: 105.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/0.7423, allocations: 3.812 kB / 0.5612 GB, free: 105.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007167/0.743, allocations: 178.6 kB / 0.5614 GB, free: 105.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004113/0.7471, allocations: 1.437 MB / 0.5628 GB, free: 105.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.519e-05/0.7472, allocations: 33 kB / 0.5628 GB, free: 105.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007978/0.7552, allocations: 7.706 MB / 0.5703 GB, free: 101.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00066/0.7558, allocations: 1.454 MB / 0.5717 GB, free: 100 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007031/0.7629, allocations: 4.852 MB / 0.5765 GB, free: 95.72 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004746/0.7633, allocations: 227.1 kB / 0.5767 GB, free: 95.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002453/0.7636, allocations: 35.42 kB / 0.5767 GB, free: 95.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.7646, allocations: 111.8 kB / 0.5768 GB, free: 95.43 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002342/0.7648, allocations: 85.73 kB / 0.5769 GB, free: 95.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.138e-05/0.7649, allocations: 39.97 kB / 0.577 GB, free: 95.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001801/0.7667, allocations: 1.693 MB / 0.5786 GB, free: 93.61 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7667, allocations: 0 / 0.5786 GB, free: 93.61 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002867/0.7696, allocations: 0.7428 MB / 0.5793 GB, free: 92.87 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.007401/0.777, allocations: 5.501 MB / 0.5847 GB, free: 87.38 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005998/0.783, allocations: 4.14 MB / 0.5887 GB, free: 83.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/0.783, allocations: 0 / 0.5887 GB, free: 83.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002505/0.7855, allocations: 1.581 MB / 0.5903 GB, free: 81.68 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001659/0.7872, allocations: 274 kB / 0.5906 GB, free: 81.42 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03771/0.8249, allocations: 33.81 MB / 0.6236 GB, free: 43.75 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001679/0.8265, allocations: 2.293 MB / 0.6258 GB, free: 41.42 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002416/0.829, allocations: 1.411 MB / 0.6272 GB, free: 40 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/0.83, allocations: 1.108 MB / 0.6283 GB, free: 38.89 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.83, allocations: 3.938 kB / 0.6283 GB, free: 38.89 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09799/0.928, allocations: 52.7 MB / 0.6797 GB, free: 2.43 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.05/19.98, allocations: 11.62 kB / 0.6797 GB, free: 2.422 MB / 478.1 MB " [Timeout remaining time 640] (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: 22.87703076703474]