Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.005791/0.005791, allocations: 110.4 kB / 21.96 MB, free: 5.254 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.001619/0.001619, allocations: 206.5 kB / 25.27 MB, free: 3.234 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 207.6 MB / 236 MB, free: 9.996 MB / 190.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 47.94 kB / 348 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2375, allocations: 49.16 MB / 397.1 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.00666/0.2441, allocations: 7.491 MB / 404.6 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005213/0.2493, allocations: 3.294 MB / 407.9 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008467/0.2502, allocations: 40.59 kB / 408 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001859/0.252, allocations: 1.054 MB / 409 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00286/0.2549, allocations: 1.394 MB / 410.4 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008761/0.2558, allocations: 461.1 kB / 410.9 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003263/0.259, allocations: 2.639 MB / 413.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00169/0.2607, allocations: 1.336 MB / 414.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001239/0.262, allocations: 0.8647 MB / 415.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001707/0.2637, allocations: 1.332 MB / 417 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002926/0.264, allocations: 177.4 kB / 417.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001861/0.2658, allocations: 1.064 MB / 418.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00106/0.2669, allocations: 1.132 MB / 419.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001249/0.2681, allocations: 1.309 MB / 420.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005262/0.2734, allocations: 4.4 MB / 425.1 MB, free: 7.395 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2734, allocations: 0 / 425.1 MB, free: 7.395 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2734, allocations: 0 / 425.1 MB, free: 7.395 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.46e-05/0.2735, allocations: 0 / 425.1 MB, free: 7.395 MB / 334.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.005987/0.2795, allocations: 3.091 MB / 428.2 MB, free: 4.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.2795, allocations: 11.98 kB / 428.2 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.408e-05/0.2796, allocations: 59.58 kB / 428.3 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005518/0.2801, allocations: 474.9 kB / 428.7 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006611/0.2867, allocations: 1.758 MB / 430.5 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003239/0.29, allocations: 1.797 MB / 432.3 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/0.2901, allocations: 135.3 kB / 432.4 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006306/0.2907, allocations: 263.6 kB / 432.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/0.3009, allocations: 6.648 MB / 439.3 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.875e-05/0.3009, allocations: 23.81 kB / 439.4 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002619/0.3012, allocations: 87.89 kB / 439.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002232/0.3034, allocations: 1.367 MB / 440.8 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01122/0.3147, allocations: 6.044 MB / 446.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03154/0.3462, allocations: 25.47 MB / 472.3 MB, free: 6.863 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00697/0.3532, allocations: 2.144 MB / 474.5 MB, free: 4.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0016/0.3548, allocations: 0.9886 MB / 475.5 MB, free: 3.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006202/0.361, allocations: 2.949 MB / 478.4 MB, free: 0.7031 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.361, allocations: 39.06 kB / 478.4 MB, free: 0.6562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 3.446e-06/0.361, allocations: 4 kB / 478.4 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.02761/0.3886, allocations: 10.17 MB / 488.6 MB, free: 6.398 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00148/0.3901, allocations: 1.572 MB / 490.2 MB, free: 4.676 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005356/0.3955, allocations: 2.762 MB / 492.9 MB, free: 1.895 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001975/0.3957, allocations: 45.69 kB / 493 MB, free: 1.844 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001891/0.3975, allocations: 2.179 MB / 495.2 MB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000699/0.3982, allocations: 0.5234 MB / 495.7 MB, free: 15.11 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001626/0.3999, allocations: 0.9288 MB / 496.6 MB, free: 14.17 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.4, allocations: 301.1 kB / 496.9 MB, free: 13.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00274/0.4027, allocations: 1.621 MB / 498.5 MB, free: 12.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005075/0.4078, allocations: 4.425 MB / 0.4912 GB, free: 6.414 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008358/0.4162, allocations: 6.491 MB / 0.4975 GB, free: 14.53 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-05/0.4163, allocations: 32 kB / 0.4975 GB, free: 14.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01466/0.4309, allocations: 7.024 MB / 0.5044 GB, free: 7.457 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001258/0.431, allocations: 48 kB / 0.5044 GB, free: 7.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006226/0.4373, allocations: 2.529 MB / 0.5069 GB, free: 4.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005227/0.4425, allocations: 1.493 MB / 0.5084 GB, free: 3.367 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003124/0.4456, allocations: 1.002 MB / 0.5094 GB, free: 2.363 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01107/0.4567, allocations: 7.58 MB / 0.5168 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003469/0.4602, allocations: 319.8 kB / 0.5171 GB, free: 10.24 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007386/0.4609, allocations: 284 kB / 0.5173 GB, free: 9.961 MB / 446.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.00287/0.4638, allocations: 1.427 MB / 0.5187 GB, free: 8.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005825/0.4644, allocations: 246.4 kB / 0.519 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007141/0.4715, allocations: 2.827 MB / 0.5217 GB, free: 5.422 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006087/0.4776, allocations: 2.505 MB / 0.5242 GB, free: 2.898 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/0.4776, allocations: 4 kB / 0.5242 GB, free: 2.895 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.721e-05/0.4776, allocations: 3.984 kB / 0.5242 GB, free: 2.891 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01544/0.4931, allocations: 6.772 MB / 0.5308 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.147e-05/0.4931, allocations: 4 kB / 0.5308 GB, free: 12.02 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009105/0.494, allocations: 183.7 kB / 0.531 GB, free: 11.84 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004991/0.499, allocations: 1.43 MB / 0.5324 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001813/0.4992, allocations: 35.97 kB / 0.5324 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01126/0.5104, allocations: 7.72 MB / 0.5399 GB, free: 2.41 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001229/0.5116, allocations: 1.438 MB / 0.5413 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009523/0.5212, allocations: 4.843 MB / 0.5461 GB, free: 11.96 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000682/0.5219, allocations: 230.5 kB / 0.5463 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005014/0.5224, allocations: 27.98 kB / 0.5463 GB, free: 11.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/0.5238, allocations: 111.8 kB / 0.5464 GB, free: 11.59 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002759/0.5241, allocations: 92.36 kB / 0.5465 GB, free: 11.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000124/0.5242, allocations: 39.97 kB / 0.5466 GB, free: 11.46 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003547/0.5277, allocations: 1.705 MB / 0.5482 GB, free: 9.746 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5277, allocations: 0 / 0.5482 GB, free: 9.746 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004056/0.5318, allocations: 0.7655 MB / 0.549 GB, free: 8.98 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.009791/0.5416, allocations: 5.493 MB / 0.5543 GB, free: 3.438 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.1731/0.7147, allocations: 4.106 MB / 0.5583 GB, free: 149.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/0.7147, allocations: 0.7188 kB / 0.5583 GB, free: 149.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003289/0.718, allocations: 1.584 MB / 0.5599 GB, free: 149.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/0.7197, allocations: 276.1 kB / 0.5601 GB, free: 149.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0394/0.7591, allocations: 33.88 MB / 0.5932 GB, free: 127.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001592/0.7607, allocations: 2.304 MB / 0.5955 GB, free: 125.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002369/0.763, allocations: 1.404 MB / 0.5969 GB, free: 124 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009962/0.764, allocations: 1.116 MB / 0.5979 GB, free: 122.9 MB / 478.1 MB Notification: Performance of SimCode: time 8.22e-07/0.764, allocations: 0 / 0.5979 GB, free: 122.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07942/0.8435, allocations: 52.98 MB / 0.6497 GB, free: 69.89 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.04/18.89, allocations: 3.953 kB / 0.6497 GB, free: 69.89 MB / 478.1 MB " [Timeout remaining time 641] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 21.803115725982934]