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.001204/0.001204, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001338/0.001338, allocations: 204.1 kB / 23.72 MB, free: 4.391 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 12.83/12.83, allocations: 230.5 MB / 257.4 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 167] 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.002578/0.002578, allocations: 59.89 kB / 377.7 MB, free: 2.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3605/0.3631, allocations: 53.41 MB / 431.1 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009092/0.3721, allocations: 6.575 MB / 437.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006795/0.3789, allocations: 3.079 MB / 440.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.38, allocations: 39.81 kB / 440.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002207/0.3822, allocations: 1.012 MB / 441.9 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003275/0.3854, allocations: 1.378 MB / 443.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.3865, allocations: 451.1 kB / 443.7 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003566/0.39, allocations: 2.664 MB / 446.3 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001718/0.3918, allocations: 1.322 MB / 447.7 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001212/0.393, allocations: 0.8602 MB / 448.5 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001734/0.3947, allocations: 1.277 MB / 449.8 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000324/0.395, allocations: 172 kB / 450 MB, free: 3.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001737/0.3968, allocations: 0.9204 MB / 450.9 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.3979, allocations: 1.122 MB / 452 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001075/0.399, allocations: 0.9314 MB / 452.9 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005133/0.4041, allocations: 4.357 MB / 457.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.4041, allocations: 0 / 457.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4041, allocations: 0 / 457.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.687e-05/0.4042, allocations: 0 / 457.3 MB, free: 12.16 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.005888/0.4101, allocations: 3.041 MB / 460.3 MB, free: 9.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.4101, allocations: 15.98 kB / 460.4 MB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005683/0.4107, allocations: 470.9 kB / 460.8 MB, free: 8.586 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006858/0.4175, allocations: 1.82 MB / 462.6 MB, free: 6.762 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003614/0.4212, allocations: 1.555 MB / 464.2 MB, free: 5.18 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001326/0.4213, allocations: 135.3 kB / 464.3 MB, free: 5.047 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006788/0.422, allocations: 255.8 kB / 464.6 MB, free: 4.797 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01123/0.4332, allocations: 6.697 MB / 471.3 MB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.718e-05/0.4333, allocations: 27.75 kB / 471.3 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002398/0.4335, allocations: 87.89 kB / 471.4 MB, free: 13.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002255/0.4358, allocations: 1.363 MB / 472.7 MB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0119/0.4477, allocations: 6.036 MB / 478.8 MB, free: 6.113 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03491/0.4826, allocations: 24.55 MB / 0.4915 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007279/0.4899, allocations: 2.156 MB / 0.4936 GB, free: 10.61 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001621/0.4915, allocations: 0.9926 MB / 0.4946 GB, free: 9.602 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005977/0.4975, allocations: 2.734 MB / 0.4973 GB, free: 6.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.4975, allocations: 47 kB / 0.4973 GB, free: 6.785 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 4.078e-06/0.4975, allocations: 0 / 0.4973 GB, free: 6.785 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02869/0.5262, allocations: 10.16 MB / 0.5072 GB, free: 12.55 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001808/0.528, allocations: 1.572 MB / 0.5088 GB, free: 10.82 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005004/0.533, allocations: 2.896 MB / 0.5116 GB, free: 7.906 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003448/0.5334, allocations: 41.64 kB / 0.5116 GB, free: 7.859 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001977/0.5353, allocations: 2.179 MB / 0.5138 GB, free: 5.656 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007366/0.5361, allocations: 0.5234 MB / 0.5143 GB, free: 5.129 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001348/0.5374, allocations: 0.921 MB / 0.5152 GB, free: 4.195 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.5376, allocations: 305.1 kB / 0.5155 GB, free: 3.895 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002735/0.5403, allocations: 1.629 MB / 0.5171 GB, free: 2.258 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005393/0.5457, allocations: 4.432 MB / 0.5214 GB, free: 12.42 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009197/0.5549, allocations: 6.492 MB / 0.5277 GB, free: 4.535 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001019/0.555, allocations: 28 kB / 0.5278 GB, free: 4.508 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.0166/0.5716, allocations: 7.047 MB / 0.5346 GB, free: 13.44 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.861e-05/0.5717, allocations: 44 kB / 0.5347 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006604/0.5783, allocations: 2.537 MB / 0.5372 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005506/0.5838, allocations: 1.493 MB / 0.5386 GB, free: 9.352 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003865/0.5877, allocations: 1.006 MB / 0.5396 GB, free: 8.344 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01266/0.6003, allocations: 7.511 MB / 0.5469 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005517/0.6058, allocations: 323.7 kB / 0.5472 GB, free: 296 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001271/0.6071, allocations: 280 kB / 0.5475 GB, free: 16 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.3146/0.9217, allocations: 1.421 MB / 0.5489 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006796/0.9223, allocations: 250.2 kB / 0.5491 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007139/0.9231, allocations: 324 kB / 0.5494 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006836/0.9299, allocations: 2.507 MB / 0.5519 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.51e-05/0.9299, allocations: 5.5 kB / 0.5519 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-05/0.9299, allocations: 6.531 kB / 0.5519 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01374/0.9437, allocations: 6.539 MB / 0.5583 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/0.9437, allocations: 3.906 kB / 0.5583 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007911/0.9445, allocations: 183.2 kB / 0.5585 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004446/0.9489, allocations: 1.427 MB / 0.5599 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001855/0.9491, allocations: 29.7 kB / 0.5599 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009643/0.9588, allocations: 7.667 MB / 0.5674 GB, free: 105 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007222/0.9595, allocations: 1.431 MB / 0.5688 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007539/0.967, allocations: 4.858 MB / 0.5735 GB, free: 98.79 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007335/0.9678, allocations: 237.1 kB / 0.5737 GB, free: 98.71 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002603/0.968, allocations: 27.98 kB / 0.5738 GB, free: 98.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.9691, allocations: 107.8 kB / 0.5739 GB, free: 98.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002801/0.9694, allocations: 84.42 kB / 0.574 GB, free: 98.49 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.691e-05/0.9695, allocations: 47.81 kB / 0.574 GB, free: 98.45 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002146/0.9717, allocations: 1.689 MB / 0.5756 GB, free: 96.75 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.9717, allocations: 0 / 0.5756 GB, free: 96.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00379/0.9754, allocations: 0.7461 MB / 0.5764 GB, free: 96.01 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.007662/0.9831, allocations: 5.505 MB / 0.5818 GB, free: 90.51 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006462/0.9896, allocations: 4.141 MB / 0.5858 GB, free: 86.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.9896, allocations: 4 kB / 0.5858 GB, free: 86.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002689/0.9923, allocations: 1.575 MB / 0.5873 GB, free: 84.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/0.9941, allocations: 271.7 kB / 0.5876 GB, free: 84.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03911/1.033, allocations: 33.78 MB / 0.6206 GB, free: 46.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001613/1.035, allocations: 1.729 MB / 0.6223 GB, free: 45.14 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002569/1.037, allocations: 1.411 MB / 0.6237 GB, free: 43.72 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00108/1.038, allocations: 1.108 MB / 0.6247 GB, free: 42.61 MB / 462.1 MB Notification: Performance of SimCode: time 1.192e-06/1.038, allocations: 2.734 kB / 0.6247 GB, free: 42.61 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6097/1.648, allocations: 49.05 MB / 0.6726 GB, free: 10.01 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.88/17.52, allocations: 7.922 kB / 0.6726 GB, free: 10 MB / 478.1 MB " [Timeout remaining time 642] (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: 31.897801843006164]