Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 124.3 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 225.6 MB / 249.1 MB, free: 3.633 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 51.92 kB / 365.6 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1029, allocations: 52.14 MB / 417.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009694/0.1126, allocations: 7.461 MB / 425.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006593/0.1191, allocations: 3.265 MB / 428.5 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000953/0.1201, allocations: 35.88 kB / 428.5 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002372/0.1225, allocations: 1.051 MB / 429.6 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00353/0.126, allocations: 1.397 MB / 431 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.1271, allocations: 459.1 kB / 431.4 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003637/0.1307, allocations: 2.63 MB / 434.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001872/0.1326, allocations: 1.325 MB / 435.4 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001385/0.134, allocations: 0.8446 MB / 436.2 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002055/0.1361, allocations: 1.332 MB / 437.6 MB, free: 8.801 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005689/0.1366, allocations: 172 kB / 437.7 MB, free: 8.633 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002114/0.1387, allocations: 1.076 MB / 438.8 MB, free: 7.555 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001315/0.1401, allocations: 1.133 MB / 439.9 MB, free: 6.418 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001749/0.1418, allocations: 1.308 MB / 441.3 MB, free: 5.102 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005377/0.1472, allocations: 4.384 MB / 445.6 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1472, allocations: 4 kB / 445.6 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1472, allocations: 0 / 445.6 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001417/0.1473, allocations: 0 / 445.6 MB, free: 0.6953 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.1793/0.3267, allocations: 3.139 MB / 448.8 MB, free: 29.26 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.3267, allocations: 8.594 kB / 448.8 MB, free: 29.26 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004963/0.3272, allocations: 472.1 kB / 449.3 MB, free: 29.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00607/0.3333, allocations: 1.758 MB / 451 MB, free: 29.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003662/0.3369, allocations: 1.713 MB / 452.7 MB, free: 28.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.337, allocations: 131.1 kB / 452.9 MB, free: 28.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007506/0.3378, allocations: 262.5 kB / 453.1 MB, free: 28.58 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01053/0.3483, allocations: 6.658 MB / 459.8 MB, free: 25.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.377e-05/0.3484, allocations: 28.2 kB / 459.8 MB, free: 25.89 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002596/0.3487, allocations: 87.02 kB / 459.9 MB, free: 25.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002078/0.3507, allocations: 1.367 MB / 461.2 MB, free: 25.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01071/0.3614, allocations: 6.036 MB / 467.3 MB, free: 23.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02515/0.3866, allocations: 25.55 MB / 492.8 MB, free: 0.668 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006684/0.3933, allocations: 2.601 MB / 495.4 MB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001484/0.3948, allocations: 0.9892 MB / 496.4 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006786/0.4015, allocations: 3.866 MB / 0.4886 GB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.4016, allocations: 43.12 kB / 0.4886 GB, free: 8.75 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 4.038e-06/0.4016, allocations: 0 / 0.4886 GB, free: 8.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.02699/0.4286, allocations: 10.41 MB / 0.4988 GB, free: 14.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001501/0.4301, allocations: 1.678 MB / 0.5004 GB, free: 12.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00435/0.4344, allocations: 2.742 MB / 0.5031 GB, free: 9.562 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002367/0.4347, allocations: 41.7 kB / 0.5031 GB, free: 9.516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001726/0.4364, allocations: 2.179 MB / 0.5053 GB, free: 7.312 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007267/0.4371, allocations: 0.5273 MB / 0.5058 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001583/0.4387, allocations: 0.9132 MB / 0.5067 GB, free: 5.855 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.4388, allocations: 305.1 kB / 0.507 GB, free: 5.555 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002686/0.4415, allocations: 1.625 MB / 0.5085 GB, free: 3.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00522/0.4467, allocations: 4.428 MB / 0.5129 GB, free: 14.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008256/0.455, allocations: 6.498 MB / 0.5192 GB, free: 6.199 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.75e-05/0.4551, allocations: 28 kB / 0.5192 GB, free: 6.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01516/0.4702, allocations: 7.042 MB / 0.5261 GB, free: 15.12 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001133/0.4703, allocations: 49.72 kB / 0.5262 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006334/0.4767, allocations: 2.521 MB / 0.5286 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005193/0.4819, allocations: 1.486 MB / 0.5301 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003289/0.4852, allocations: 1.014 MB / 0.5311 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01142/0.4966, allocations: 7.772 MB / 0.5387 GB, free: 1.984 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003468/0.5001, allocations: 323.7 kB / 0.539 GB, free: 1.668 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007385/0.5008, allocations: 290 kB / 0.5392 GB, free: 1.387 MB / 430.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.002868/0.5037, allocations: 1.429 MB / 0.5406 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006153/0.5043, allocations: 238.4 kB / 0.5409 GB, free: 15.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007136/0.5114, allocations: 2.827 MB / 0.5436 GB, free: 12.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00604/0.5174, allocations: 2.494 MB / 0.5461 GB, free: 10.35 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.931e-05/0.5175, allocations: 4 kB / 0.5461 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.389e-05/0.5175, allocations: 7.984 kB / 0.5461 GB, free: 10.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01564/0.5331, allocations: 6.851 MB / 0.5528 GB, free: 3.395 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.972e-05/0.5332, allocations: 4 kB / 0.5528 GB, free: 3.391 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000903/0.5341, allocations: 175.7 kB / 0.5529 GB, free: 3.219 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004735/0.5388, allocations: 1.434 MB / 0.5543 GB, free: 1.773 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001797/0.539, allocations: 38.89 kB / 0.5544 GB, free: 1.738 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01134/0.5503, allocations: 7.92 MB / 0.5621 GB, free: 9.547 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001249/0.5516, allocations: 1.544 MB / 0.5636 GB, free: 7.855 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009467/0.561, allocations: 4.845 MB / 0.5683 GB, free: 2.977 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008685/0.5619, allocations: 303.4 kB / 0.5686 GB, free: 2.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005565/0.5624, allocations: 40.59 kB / 0.5687 GB, free: 2.621 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001434/0.5639, allocations: 107.8 kB / 0.5688 GB, free: 2.516 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002884/0.5642, allocations: 80.38 kB / 0.5689 GB, free: 2.438 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/0.5643, allocations: 43.97 kB / 0.5689 GB, free: 2.395 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003157/0.5674, allocations: 1.69 MB / 0.5705 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5674, allocations: 0 / 0.5705 GB, free: 0.6953 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003962/0.5714, allocations: 0.7656 MB / 0.5713 GB, free: 15.93 MB / 478.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.009829/0.5812, allocations: 5.498 MB / 0.5767 GB, free: 10.38 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007641/0.5889, allocations: 4.206 MB / 0.5808 GB, free: 6.145 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.892e-06/0.5889, allocations: 0 / 0.5808 GB, free: 6.145 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003328/0.5922, allocations: 1.652 MB / 0.5824 GB, free: 4.445 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002036/0.5943, allocations: 272.7 kB / 0.5826 GB, free: 4.184 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05977/0.654, allocations: 33.74 MB / 0.6156 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003216/0.6572, allocations: 2.29 MB / 0.6178 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003291/0.6605, allocations: 1.411 MB / 0.6192 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001698/0.6622, allocations: 1.116 MB / 0.6203 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of SimCode: time 1.012e-06/0.6622, allocations: 0 / 0.6203 GB, free: 9.645 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.173/4.836, allocations: 49 MB / 0.6682 GB, free: 157.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.42/23.25, allocations: 1.406 kB / 0.6682 GB, free: 157.3 MB / 0.5137 GB " [Timeout remaining time 637] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 26.150991139933467]