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.001993/0.001993, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002414/0.002414, allocations: 214.8 kB / 24.52 MB, free: 3.91 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.396/1.396, allocations: 230.5 MB / 258.2 MB, free: 7.789 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.001784/0.001784, allocations: 63.91 kB / 378.5 MB, free: 2.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2178, allocations: 53.41 MB / 431.9 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008986/0.2268, allocations: 6.537 MB / 438.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006447/0.2333, allocations: 3.059 MB / 441.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009345/0.2342, allocations: 47.81 kB / 441.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002154/0.2364, allocations: 1.004 MB / 442.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003234/0.2396, allocations: 1.382 MB / 444 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.2406, allocations: 463.1 kB / 444.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003702/0.2443, allocations: 2.664 MB / 447.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001805/0.2461, allocations: 1.32 MB / 448.4 MB, free: 5.887 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00118/0.2473, allocations: 0.8563 MB / 449.2 MB, free: 5.027 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00176/0.2491, allocations: 1.335 MB / 450.6 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003817/0.2494, allocations: 168 kB / 450.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001682/0.2511, allocations: 0.9282 MB / 451.7 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001129/0.2523, allocations: 1.122 MB / 452.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001186/0.2534, allocations: 0.9353 MB / 453.7 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005291/0.2587, allocations: 4.355 MB / 458.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2587, allocations: 0 / 458.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2587, allocations: 4 kB / 458.1 MB, free: 12.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.771e-05/0.2588, allocations: 0 / 458.1 MB, free: 12.15 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.0068/0.2656, allocations: 3.041 MB / 461.1 MB, free: 9.066 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.2657, allocations: 8.031 kB / 461.1 MB, free: 9.059 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.401e-05/0.2658, allocations: 63.58 kB / 461.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006616/0.2664, allocations: 466.9 kB / 461.7 MB, free: 8.531 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006758/0.2732, allocations: 1.824 MB / 463.5 MB, free: 6.703 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003567/0.2767, allocations: 1.555 MB / 465 MB, free: 5.121 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001762/0.2769, allocations: 131.3 kB / 465.2 MB, free: 4.992 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007759/0.2777, allocations: 267.6 kB / 465.4 MB, free: 4.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01223/0.2899, allocations: 6.697 MB / 472.1 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.183e-05/0.29, allocations: 23.81 kB / 472.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002953/0.2903, allocations: 87.89 kB / 472.2 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002271/0.2926, allocations: 1.37 MB / 473.6 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01244/0.305, allocations: 6.044 MB / 479.6 MB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0336/0.3386, allocations: 24.55 MB / 0.4924 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006906/0.3455, allocations: 2.144 MB / 0.4945 GB, free: 10.54 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001556/0.3471, allocations: 0.9887 MB / 0.4954 GB, free: 9.535 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005452/0.3525, allocations: 2.738 MB / 0.4981 GB, free: 6.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.875e-05/0.3526, allocations: 51 kB / 0.4982 GB, free: 6.711 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 7.393e-06/0.3526, allocations: 7.922 kB / 0.4982 GB, free: 6.703 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02795/0.3805, allocations: 10.16 MB / 0.5081 GB, free: 12.47 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001577/0.3821, allocations: 1.564 MB / 0.5096 GB, free: 10.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004164/0.3863, allocations: 2.734 MB / 0.5123 GB, free: 7.992 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002427/0.3865, allocations: 41.69 kB / 0.5123 GB, free: 7.945 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001662/0.3882, allocations: 2.167 MB / 0.5144 GB, free: 5.754 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006336/0.3888, allocations: 0.5275 MB / 0.515 GB, free: 5.223 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001284/0.3901, allocations: 0.9249 MB / 0.5159 GB, free: 4.285 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3902, allocations: 305.1 kB / 0.5161 GB, free: 3.984 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00258/0.3928, allocations: 1.625 MB / 0.5177 GB, free: 2.352 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005091/0.3979, allocations: 4.432 MB / 0.5221 GB, free: 12.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008149/0.4061, allocations: 6.499 MB / 0.5284 GB, free: 4.629 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.29e-05/0.4061, allocations: 28 kB / 0.5284 GB, free: 4.602 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01456/0.4207, allocations: 7.056 MB / 0.5353 GB, free: 13.52 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.042e-05/0.4208, allocations: 51.94 kB / 0.5354 GB, free: 13.47 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006205/0.427, allocations: 2.528 MB / 0.5378 GB, free: 10.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005191/0.4322, allocations: 1.485 MB / 0.5393 GB, free: 9.438 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003223/0.4354, allocations: 1.002 MB / 0.5403 GB, free: 8.434 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/0.4461, allocations: 7.516 MB / 0.5476 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003302/0.4494, allocations: 331.6 kB / 0.5479 GB, free: 372 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007068/0.4501, allocations: 284 kB / 0.5482 GB, free: 88 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.1928/0.6429, allocations: 1.41 MB / 0.5496 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004494/0.6434, allocations: 245.9 kB / 0.5498 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000552/0.6439, allocations: 330 kB / 0.5501 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005681/0.6496, allocations: 2.506 MB / 0.5526 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.6496, allocations: 8.781 kB / 0.5526 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.442e-05/0.6496, allocations: 6.203 kB / 0.5526 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/0.6602, allocations: 6.53 MB / 0.559 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/0.6602, allocations: 3.469 kB / 0.559 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007535/0.661, allocations: 176.4 kB / 0.5591 GB, free: 110.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004176/0.6652, allocations: 1.433 MB / 0.5605 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001436/0.6653, allocations: 33.2 kB / 0.5606 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007835/0.6731, allocations: 7.658 MB / 0.568 GB, free: 105.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007121/0.6738, allocations: 1.44 MB / 0.5695 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007229/0.6811, allocations: 4.859 MB / 0.5742 GB, free: 99.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006391/0.6817, allocations: 229.7 kB / 0.5744 GB, free: 99.04 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003298/0.682, allocations: 23.98 kB / 0.5744 GB, free: 99.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001089/0.6831, allocations: 120.4 kB / 0.5746 GB, free: 98.91 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002519/0.6834, allocations: 87.81 kB / 0.5746 GB, free: 98.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.601e-05/0.6835, allocations: 35.97 kB / 0.5747 GB, free: 98.79 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001882/0.6854, allocations: 1.689 MB / 0.5763 GB, free: 97.09 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6854, allocations: 7.906 kB / 0.5763 GB, free: 97.09 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003243/0.6886, allocations: 0.7537 MB / 0.5771 GB, free: 96.34 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.006881/0.6955, allocations: 5.503 MB / 0.5824 GB, free: 90.81 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005269/0.7008, allocations: 4.125 MB / 0.5865 GB, free: 86.71 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.7008, allocations: 0 / 0.5865 GB, free: 86.71 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002362/0.7031, allocations: 1.582 MB / 0.588 GB, free: 85.12 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001412/0.7045, allocations: 263.4 kB / 0.5883 GB, free: 84.88 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03323/0.7378, allocations: 33.81 MB / 0.6213 GB, free: 47.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001468/0.7392, allocations: 1.724 MB / 0.623 GB, free: 45.43 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002247/0.7415, allocations: 1.404 MB / 0.6243 GB, free: 44.02 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009924/0.7425, allocations: 1.112 MB / 0.6254 GB, free: 42.91 MB / 462.1 MB Notification: Performance of SimCode: time 6.51e-07/0.7425, allocations: 0 / 0.6254 GB, free: 42.91 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6382/1.381, allocations: 50.74 MB / 0.675 GB, free: 8.637 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.69/20.07, allocations: 8.062 kB / 0.675 GB, free: 8.629 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: 23.26469837501645]