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.0008174/0.0008174, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009046/0.0009046, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.882/0.882, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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 3.336e-06/3.336e-06, allocations: 4 kB / 318.4 MB, free: 6.234 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.491e-05/1.824e-05, allocations: 2.281 kB / 318.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.005193/0.005211, allocations: 6.585 MB / 325 MB, free: 15.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003781/0.008992, allocations: 3.074 MB / 328.1 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003857/0.009378, allocations: 39.81 kB / 328.1 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.01064, allocations: 1.055 MB / 329.2 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001707/0.01235, allocations: 1.462 MB / 330.7 MB, free: 9.953 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006499/0.013, allocations: 490.9 kB / 331.1 MB, free: 9.473 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002593/0.01559, allocations: 2.966 MB / 334.1 MB, free: 6.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001181/0.01677, allocations: 1.577 MB / 335.7 MB, free: 4.898 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009568/0.01773, allocations: 1.321 MB / 337 MB, free: 3.574 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001078/0.01881, allocations: 1.399 MB / 338.4 MB, free: 2.172 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00016/0.01897, allocations: 176 kB / 338.6 MB, free: 2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009868/0.01995, allocations: 0.9826 MB / 339.6 MB, free: 1.016 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006065/0.02056, allocations: 1.188 MB / 340.7 MB, free: 15.82 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005317/0.02109, allocations: 0.7319 MB / 341.5 MB, free: 15.09 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002605/0.0237, allocations: 4.423 MB / 345.9 MB, free: 10.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.0237, allocations: 0 / 345.9 MB, free: 10.65 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.0237, allocations: 0 / 345.9 MB, free: 10.65 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.289e-05/0.02373, allocations: 0 / 345.9 MB, free: 10.65 MB / 314.7 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.003303/0.02703, allocations: 3.107 MB / 349 MB, free: 7.496 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.02707, allocations: 8.922 kB / 349 MB, free: 7.488 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003381/0.02741, allocations: 478.9 kB / 349.5 MB, free: 7.012 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003471/0.03088, allocations: 1.863 MB / 351.3 MB, free: 5.145 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001452/0.03233, allocations: 1.383 MB / 352.7 MB, free: 3.734 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.837e-05/0.0324, allocations: 135.2 kB / 352.9 MB, free: 3.602 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000401/0.0328, allocations: 263.7 kB / 353.1 MB, free: 3.344 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005691/0.03849, allocations: 6.689 MB / 359.8 MB, free: 12.18 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.262e-05/0.03853, allocations: 23.81 kB / 359.8 MB, free: 12.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001727/0.03871, allocations: 91.83 kB / 359.9 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001158/0.03986, allocations: 1.374 MB / 361.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006634/0.0465, allocations: 6.048 MB / 367.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01695/0.06345, allocations: 24.7 MB / 392 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003411/0.06686, allocations: 2.202 MB / 394.2 MB, free: 8.934 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008583/0.06772, allocations: 0.9929 MB / 395.2 MB, free: 7.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00333/0.07105, allocations: 2.848 MB / 398.1 MB, free: 5.051 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.07108, allocations: 47.06 kB / 398.1 MB, free: 4.996 MB / 362.7 MB Notification: Performance of pre-optimization done (n=112): time 2.655e-06/0.07108, allocations: 4 kB / 398.1 MB, free: 4.992 MB / 362.7 MB Notification: Performance of matching and sorting (n=125): time 0.01419/0.08527, allocations: 10.32 MB / 408.5 MB, free: 10.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008341/0.0861, allocations: 1.564 MB / 410 MB, free: 8.879 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002448/0.08855, allocations: 3.061 MB / 413.1 MB, free: 5.797 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.664e-05/0.08862, allocations: 41.7 kB / 413.1 MB, free: 5.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008525/0.08947, allocations: 2.148 MB / 415.3 MB, free: 3.578 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000276/0.08975, allocations: 0.5155 MB / 415.8 MB, free: 3.059 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007365/0.09048, allocations: 0.9094 MB / 416.7 MB, free: 2.137 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.947e-05/0.09054, allocations: 305.1 kB / 417 MB, free: 1.836 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001595/0.09214, allocations: 1.699 MB / 418.7 MB, free: 132 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002729/0.09487, allocations: 4.506 MB / 423.2 MB, free: 10.21 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004491/0.09936, allocations: 6.608 MB / 429.8 MB, free: 2.223 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.478e-05/0.09938, allocations: 28 kB / 429.8 MB, free: 2.195 MB / 394.7 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01034/0.1097, allocations: 8.089 MB / 437.9 MB, free: 10.08 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.206e-05/0.1098, allocations: 50.97 kB / 438 MB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006048/0.1158, allocations: 3.547 MB / 441.5 MB, free: 6.477 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005865/0.1217, allocations: 2.58 MB / 444.1 MB, free: 3.883 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/0.1232, allocations: 1.014 MB / 445.1 MB, free: 2.867 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1643/0.2875, allocations: 9.417 MB / 454.5 MB, free: 111.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002907/0.2904, allocations: 404.2 kB / 454.9 MB, free: 111.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004418/0.2908, allocations: 278.6 kB / 455.2 MB, free: 111.6 MB / 410.7 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.001698/0.2925, allocations: 1.425 MB / 456.6 MB, free: 111 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000289/0.2928, allocations: 246.7 kB / 456.9 MB, free: 111 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00353/0.2964, allocations: 2.817 MB / 459.7 MB, free: 110.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003048/0.2994, allocations: 2.507 MB / 462.2 MB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-05/0.2994, allocations: 7.531 kB / 462.2 MB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.2994, allocations: 5.906 kB / 462.2 MB, free: 109.6 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007219/0.3067, allocations: 6.572 MB / 468.8 MB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/0.3067, allocations: 0 / 468.8 MB, free: 105.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004225/0.3071, allocations: 176.8 kB / 468.9 MB, free: 105.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00226/0.3093, allocations: 1.437 MB / 470.4 MB, free: 104.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.144e-05/0.3094, allocations: 27.98 kB / 470.4 MB, free: 104.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005159/0.3146, allocations: 7.671 MB / 478.1 MB, free: 96.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000415/0.315, allocations: 1.436 MB / 479.5 MB, free: 94.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004414/0.3194, allocations: 4.855 MB / 484.4 MB, free: 90.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004004/0.3198, allocations: 256.5 kB / 484.6 MB, free: 89.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/0.32, allocations: 27.98 kB / 484.6 MB, free: 89.89 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006903/0.3207, allocations: 156.5 kB / 484.8 MB, free: 89.74 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001677/0.3208, allocations: 88.39 kB / 484.9 MB, free: 89.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.565e-05/0.3209, allocations: 31.98 kB / 484.9 MB, free: 89.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001507/0.3224, allocations: 1.83 MB / 486.7 MB, free: 87.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3224, allocations: 0 / 486.7 MB, free: 87.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002376/0.3248, allocations: 0.8757 MB / 487.6 MB, free: 86.92 MB / 410.7 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.004591/0.3294, allocations: 5.511 MB / 493.1 MB, free: 81.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004136/0.3335, allocations: 4.226 MB / 497.4 MB, free: 77.18 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3335, allocations: 0 / 497.4 MB, free: 77.18 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001491/0.335, allocations: 1.583 MB / 498.9 MB, free: 75.58 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.336, allocations: 269.4 kB / 499.2 MB, free: 75.32 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03102/0.3671, allocations: 36.07 MB / 0.5227 GB, free: 35.35 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001437/0.3685, allocations: 1.733 MB / 0.5244 GB, free: 33.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001799/0.3703, allocations: 1.414 MB / 0.5258 GB, free: 32.17 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008684/0.3712, allocations: 1.125 MB / 0.5269 GB, free: 31.04 MB / 410.7 MB Notification: Performance of SimCode: time 1.914e-06/0.3712, allocations: 0 / 0.5269 GB, free: 31.04 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07418/0.4453, allocations: 53.82 MB / 0.5795 GB, free: 9.742 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.08/10.53, allocations: 6.312 kB / 0.5795 GB, free: 9.738 MB / 442.7 MB " [Timeout remaining time 649] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 12.500317322090268]