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.00132/0.00132, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.001967/0.001967, allocations: 209.4 kB / 23.74 MB, free: 4.66 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.429/1.429, allocations: 230.6 MB / 257.5 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 52.02 kB / 377.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2844, allocations: 53.37 MB / 431.2 MB, free: 7.004 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01085/0.2952, allocations: 7.459 MB / 438.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00715/0.3024, allocations: 3.304 MB / 441.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009031/0.3033, allocations: 39.81 kB / 442 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002502/0.3058, allocations: 1.051 MB / 443 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003574/0.3094, allocations: 1.381 MB / 444.4 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001269/0.3106, allocations: 455.1 kB / 444.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00403/0.3147, allocations: 2.665 MB / 447.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002265/0.3169, allocations: 1.316 MB / 448.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001768/0.3187, allocations: 0.8525 MB / 449.7 MB, free: 4.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002268/0.321, allocations: 1.335 MB / 451 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006544/0.3216, allocations: 172 kB / 451.2 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00229/0.3239, allocations: 1.053 MB / 452.2 MB, free: 1.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001553/0.3255, allocations: 1.122 MB / 453.3 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002302/0.3278, allocations: 1.293 MB / 454.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005402/0.3332, allocations: 4.342 MB / 459 MB, free: 11.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3332, allocations: 0 / 459 MB, free: 11.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3332, allocations: 0 / 459 MB, free: 11.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.314e-05/0.3332, allocations: 0 / 459 MB, free: 11.06 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.005765/0.339, allocations: 3.045 MB / 462 MB, free: 7.969 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.339, allocations: 16.02 kB / 462 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005285/0.3396, allocations: 462.9 kB / 462.5 MB, free: 7.492 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00658/0.3461, allocations: 1.824 MB / 464.3 MB, free: 5.664 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00323/0.3494, allocations: 1.543 MB / 465.9 MB, free: 4.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.3495, allocations: 131.3 kB / 466 MB, free: 3.961 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006479/0.3501, allocations: 259.7 kB / 466.2 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01153/0.3617, allocations: 6.668 MB / 472.9 MB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.638e-05/0.3618, allocations: 31.8 kB / 472.9 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002598/0.362, allocations: 87.89 kB / 473 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002293/0.3643, allocations: 1.363 MB / 474.4 MB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01149/0.3758, allocations: 6.048 MB / 480.4 MB, free: 5.043 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03334/0.4091, allocations: 25.47 MB / 0.494 GB, free: 10.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006971/0.4161, allocations: 2.146 MB / 0.4961 GB, free: 8.625 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001553/0.4177, allocations: 0.9921 MB / 0.4971 GB, free: 7.625 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00679/0.4245, allocations: 2.96 MB / 0.5 GB, free: 4.637 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.791e-05/0.4245, allocations: 47.06 kB / 0.5 GB, free: 4.582 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 4.598e-06/0.4245, allocations: 4 kB / 0.5 GB, free: 4.578 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.0283/0.4528, allocations: 10.15 MB / 0.51 GB, free: 10.35 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001701/0.4545, allocations: 1.568 MB / 0.5115 GB, free: 8.621 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005376/0.4599, allocations: 2.73 MB / 0.5142 GB, free: 5.871 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000232/0.4601, allocations: 41.7 kB / 0.5142 GB, free: 5.824 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001891/0.462, allocations: 2.175 MB / 0.5163 GB, free: 3.625 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007842/0.4628, allocations: 0.5274 MB / 0.5168 GB, free: 3.094 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001918/0.4647, allocations: 0.9171 MB / 0.5177 GB, free: 2.164 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.4648, allocations: 301.1 kB / 0.518 GB, free: 1.867 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002885/0.4677, allocations: 1.625 MB / 0.5196 GB, free: 240 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006016/0.4737, allocations: 4.436 MB / 0.5239 GB, free: 10.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008598/0.4823, allocations: 6.5 MB / 0.5303 GB, free: 2.504 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-05/0.4824, allocations: 28 kB / 0.5303 GB, free: 2.477 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01548/0.4979, allocations: 7.047 MB / 0.5372 GB, free: 11.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.498, allocations: 50.81 kB / 0.5372 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006251/0.5043, allocations: 2.533 MB / 0.5397 GB, free: 8.82 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005199/0.5095, allocations: 1.491 MB / 0.5412 GB, free: 7.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003378/0.5128, allocations: 1.01 MB / 0.5422 GB, free: 6.309 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2495/0.7623, allocations: 7.559 MB / 0.5495 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003591/0.7659, allocations: 327.8 kB / 0.5499 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005402/0.7664, allocations: 283.3 kB / 0.5501 GB, free: 109.6 MB / 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.002159/0.7686, allocations: 1.427 MB / 0.5515 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005678/0.7692, allocations: 243.4 kB / 0.5518 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005406/0.7697, allocations: 324.8 kB / 0.5521 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005736/0.7755, allocations: 2.511 MB / 0.5545 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.576e-05/0.7755, allocations: 7.5 kB / 0.5545 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.7755, allocations: 9.297 kB / 0.5545 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/0.7863, allocations: 6.783 MB / 0.5612 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.361e-05/0.7864, allocations: 0 / 0.5612 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007703/0.7871, allocations: 177.8 kB / 0.5613 GB, free: 106.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004013/0.7911, allocations: 1.434 MB / 0.5627 GB, free: 106.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001247/0.7913, allocations: 36.98 kB / 0.5628 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008385/0.7997, allocations: 7.707 MB / 0.5703 GB, free: 102 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007182/0.8004, allocations: 1.446 MB / 0.5717 GB, free: 100.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007269/0.8076, allocations: 4.855 MB / 0.5764 GB, free: 96.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007807/0.8084, allocations: 234 kB / 0.5767 GB, free: 96.16 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002462/0.8087, allocations: 24 kB / 0.5767 GB, free: 96.14 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.8097, allocations: 115.8 kB / 0.5768 GB, free: 96.02 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002305/0.8099, allocations: 91.39 kB / 0.5769 GB, free: 95.94 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-05/0.81, allocations: 37.95 kB / 0.5769 GB, free: 95.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001973/0.812, allocations: 1.693 MB / 0.5786 GB, free: 94.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.812, allocations: 0 / 0.5786 GB, free: 94.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002972/0.815, allocations: 0.7463 MB / 0.5793 GB, free: 93.46 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.007303/0.8223, allocations: 5.505 MB / 0.5847 GB, free: 87.95 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006124/0.8284, allocations: 4.131 MB / 0.5887 GB, free: 83.84 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/0.8284, allocations: 4 kB / 0.5887 GB, free: 83.84 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002561/0.8309, allocations: 1.58 MB / 0.5903 GB, free: 82.25 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001665/0.8326, allocations: 265.6 kB / 0.5905 GB, free: 82 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04002/0.8726, allocations: 33.8 MB / 0.6235 GB, free: 44.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001564/0.8742, allocations: 2.293 MB / 0.6258 GB, free: 42 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002458/0.8767, allocations: 1.402 MB / 0.6271 GB, free: 40.59 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/0.8777, allocations: 1.116 MB / 0.6282 GB, free: 39.47 MB / 462.1 MB Notification: Performance of SimCode: time 7.31e-07/0.8777, allocations: 3.938 kB / 0.6282 GB, free: 39.47 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1147/0.9923, allocations: 52.72 MB / 0.6797 GB, free: 3.074 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.44/21.43, allocations: 2.812 kB / 0.6797 GB, free: 3.074 MB / 478.1 MB " [Timeout remaining time 638] (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: 24.252639416139573]