Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001475/0.001475, 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 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 212.3 kB / 24.52 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.338/1.338, allocations: 230.6 MB / 258.3 MB, free: 7.73 MB / 206.1 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001388/0.001388, allocations: 47.92 kB / 378.5 MB, free: 2.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2217, allocations: 53.37 MB / 431.9 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008584/0.2303, allocations: 6.536 MB / 438.4 MB, free: 40 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005981/0.2363, allocations: 3.063 MB / 441.5 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000811/0.2371, allocations: 39.81 kB / 441.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002239/0.2394, allocations: 1.016 MB / 442.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003122/0.2425, allocations: 1.393 MB / 443.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009854/0.2435, allocations: 447.2 kB / 444.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003519/0.247, allocations: 2.669 MB / 447 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001941/0.2489, allocations: 1.326 MB / 448.3 MB, free: 6.051 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001365/0.2503, allocations: 0.8525 MB / 449.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002019/0.2523, allocations: 1.332 MB / 450.5 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004929/0.2528, allocations: 172 kB / 450.7 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001847/0.2546, allocations: 0.9321 MB / 451.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001288/0.2559, allocations: 1.118 MB / 452.7 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001541/0.2575, allocations: 0.943 MB / 453.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005331/0.2628, allocations: 4.35 MB / 458 MB, free: 12.32 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.2628, allocations: 4 kB / 458 MB, free: 12.32 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2628, allocations: 0 / 458 MB, free: 12.32 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001374/0.2629, allocations: 0 / 458 MB, free: 12.32 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.2695, allocations: 3.037 MB / 461.1 MB, free: 9.234 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.2695, allocations: 15.97 kB / 461.1 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.376e-05/0.2696, allocations: 59.58 kB / 461.2 MB, free: 9.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006444/0.2703, allocations: 478.8 kB / 461.6 MB, free: 8.684 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006565/0.2768, allocations: 1.812 MB / 463.4 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00305/0.2799, allocations: 1.555 MB / 465 MB, free: 5.281 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.28, allocations: 127.3 kB / 465.1 MB, free: 5.156 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006631/0.2807, allocations: 263.6 kB / 465.4 MB, free: 4.898 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01077/0.2914, allocations: 6.697 MB / 472.1 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.547e-05/0.2915, allocations: 27.81 kB / 472.1 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002554/0.2918, allocations: 83.89 kB / 472.2 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002143/0.2939, allocations: 1.367 MB / 473.5 MB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01152/0.3054, allocations: 6.048 MB / 479.6 MB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03143/0.3368, allocations: 24.56 MB / 0.4923 GB, free: 12.87 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006799/0.3436, allocations: 2.145 MB / 0.4944 GB, free: 10.69 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001438/0.3451, allocations: 0.9809 MB / 0.4954 GB, free: 9.695 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005307/0.3504, allocations: 2.738 MB / 0.4981 GB, free: 6.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.054e-05/0.3504, allocations: 43 kB / 0.4981 GB, free: 6.879 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 3.917e-06/0.3504, allocations: 0 / 0.4981 GB, free: 6.879 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02701/0.3774, allocations: 10.17 MB / 0.508 GB, free: 12.64 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001367/0.3788, allocations: 1.568 MB / 0.5096 GB, free: 10.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004272/0.3831, allocations: 2.73 MB / 0.5122 GB, free: 8.164 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001457/0.3832, allocations: 45.69 kB / 0.5123 GB, free: 8.113 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001644/0.3849, allocations: 2.179 MB / 0.5144 GB, free: 5.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005707/0.3854, allocations: 0.5195 MB / 0.5149 GB, free: 5.387 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001324/0.3868, allocations: 0.9211 MB / 0.5158 GB, free: 4.453 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.3869, allocations: 301.1 kB / 0.5161 GB, free: 4.156 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00248/0.3894, allocations: 1.629 MB / 0.5177 GB, free: 2.52 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004598/0.394, allocations: 4.432 MB / 0.522 GB, free: 12.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007418/0.4014, allocations: 6.501 MB / 0.5284 GB, free: 4.793 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-05/0.4015, allocations: 32 kB / 0.5284 GB, free: 4.762 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.0132/0.4147, allocations: 7.043 MB / 0.5353 GB, free: 13.7 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.162e-05/0.4147, allocations: 44 kB / 0.5353 GB, free: 13.65 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006101/0.4208, allocations: 2.541 MB / 0.5378 GB, free: 11.11 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005076/0.4259, allocations: 1.489 MB / 0.5392 GB, free: 9.605 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003057/0.429, allocations: 1.006 MB / 0.5402 GB, free: 8.598 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01026/0.4392, allocations: 7.516 MB / 0.5476 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003126/0.4424, allocations: 327.7 kB / 0.5479 GB, free: 0.5352 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006221/0.443, allocations: 280 kB / 0.5482 GB, free: 268 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.1788/0.6218, allocations: 1.413 MB / 0.5495 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004246/0.6222, allocations: 240.5 kB / 0.5498 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004627/0.6227, allocations: 327.8 kB / 0.5501 GB, free: 113.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005534/0.6282, allocations: 2.51 MB / 0.5525 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.6282, allocations: 8.062 kB / 0.5525 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.6282, allocations: 8.016 kB / 0.5525 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009924/0.6382, allocations: 6.537 MB / 0.5589 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.6382, allocations: 3 kB / 0.5589 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007022/0.6389, allocations: 178.2 kB / 0.5591 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004065/0.6429, allocations: 1.435 MB / 0.5605 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.463e-05/0.643, allocations: 26.38 kB / 0.5605 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007361/0.6504, allocations: 7.656 MB / 0.568 GB, free: 105.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005905/0.651, allocations: 1.438 MB / 0.5694 GB, free: 104.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006562/0.6575, allocations: 4.866 MB / 0.5742 GB, free: 99.47 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003573/0.6579, allocations: 224 kB / 0.5744 GB, free: 99.36 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002432/0.6581, allocations: 31.98 kB / 0.5744 GB, free: 99.32 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.6592, allocations: 115.4 kB / 0.5745 GB, free: 99.21 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001983/0.6594, allocations: 92.17 kB / 0.5746 GB, free: 99.13 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.832e-05/0.6594, allocations: 39.98 kB / 0.5746 GB, free: 99.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001694/0.6611, allocations: 1.685 MB / 0.5763 GB, free: 97.39 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6611, allocations: 0 / 0.5763 GB, free: 97.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002712/0.6638, allocations: 0.7505 MB / 0.577 GB, free: 96.65 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.006817/0.6707, allocations: 5.505 MB / 0.5824 GB, free: 91.11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005433/0.6761, allocations: 4.134 MB / 0.5864 GB, free: 87.01 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.6761, allocations: 0 / 0.5864 GB, free: 87.01 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002408/0.6785, allocations: 1.577 MB / 0.588 GB, free: 85.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001658/0.6802, allocations: 264.9 kB / 0.5882 GB, free: 85.16 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03435/0.7145, allocations: 33.8 MB / 0.6212 GB, free: 47.49 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00143/0.7159, allocations: 1.719 MB / 0.6229 GB, free: 45.74 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002311/0.7183, allocations: 1.408 MB / 0.6243 GB, free: 44.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000981/0.7192, allocations: 1.12 MB / 0.6254 GB, free: 43.21 MB / 462.1 MB Notification: Performance of SimCode: time 8.32e-07/0.7192, allocations: 0 / 0.6254 GB, free: 43.21 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0799/0.7991, allocations: 50.75 MB / 0.6749 GB, free: 9.047 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.65/19.45, allocations: 12 kB / 0.6749 GB, free: 9.035 MB / 478.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 22.418504046974704]