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.001421/0.001421, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001493/0.001493, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.439/1.439, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.001585/0.001585, allocations: 47.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1049, allocations: 53.33 MB / 426.3 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.1971/0.302, allocations: 7.445 MB / 433.8 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004308/0.3063, allocations: 3.273 MB / 437 MB, free: 6.148 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004309/0.3068, allocations: 41.28 kB / 437.1 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001728/0.3085, allocations: 1.045 MB / 438.1 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002356/0.3108, allocations: 1.364 MB / 439.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008349/0.3117, allocations: 460 kB / 439.9 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002765/0.3144, allocations: 2.67 MB / 442.6 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001442/0.3159, allocations: 1.313 MB / 443.9 MB, free: 3.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008917/0.3168, allocations: 0.8544 MB / 444.8 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001397/0.3182, allocations: 1.327 MB / 446.1 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003554/0.3185, allocations: 169.7 kB / 446.3 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001702/0.3202, allocations: 1.051 MB / 447.3 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009224/0.3212, allocations: 1.119 MB / 448.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009606/0.3221, allocations: 1.293 MB / 449.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004855/0.327, allocations: 4.344 MB / 454.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.327, allocations: 0 / 454.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.327, allocations: 0 / 454.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.556e-05/0.327, allocations: 1.469 kB / 454.1 MB, free: 14.84 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.006417/0.3335, allocations: 3.12 MB / 457.2 MB, free: 12.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3335, allocations: 13.53 kB / 457.2 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000604/0.3341, allocations: 472.4 kB / 457.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007068/0.3412, allocations: 1.822 MB / 459.5 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003057/0.3442, allocations: 1.602 MB / 461.1 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001651/0.3444, allocations: 137.8 kB / 461.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006543/0.345, allocations: 257.2 kB / 461.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01093/0.356, allocations: 6.667 MB / 468.1 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.739e-05/0.356, allocations: 28.92 kB / 468.2 MB, free: 6.016 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002921/0.3563, allocations: 86.92 kB / 468.3 MB, free: 5.957 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002361/0.3587, allocations: 1.371 MB / 469.6 MB, free: 4.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0127/0.3714, allocations: 6.05 MB / 475.7 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03341/0.4048, allocations: 25.54 MB / 0.4895 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00793/0.4127, allocations: 2.607 MB / 0.492 GB, free: 1.816 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001649/0.4144, allocations: 0.9898 MB / 0.493 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00664/0.421, allocations: 3.949 MB / 0.4968 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.811e-05/0.4211, allocations: 43.12 kB / 0.4969 GB, free: 12.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 3.587e-06/0.4211, allocations: 4 kB / 0.4969 GB, free: 12.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02978/0.4509, allocations: 10.45 MB / 0.5071 GB, free: 1.941 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001496/0.4523, allocations: 1.677 MB / 0.5087 GB, free: 92 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004915/0.4573, allocations: 2.734 MB / 0.5114 GB, free: 13.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002264/0.4575, allocations: 41.7 kB / 0.5114 GB, free: 13.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00178/0.4593, allocations: 2.175 MB / 0.5136 GB, free: 11.09 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007015/0.46, allocations: 0.5198 MB / 0.5141 GB, free: 10.57 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001826/0.4618, allocations: 0.9249 MB / 0.515 GB, free: 9.629 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4619, allocations: 305.1 kB / 0.5153 GB, free: 9.328 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002938/0.4649, allocations: 1.633 MB / 0.5169 GB, free: 7.688 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005335/0.4702, allocations: 4.428 MB / 0.5212 GB, free: 1.852 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008481/0.4787, allocations: 6.496 MB / 0.5275 GB, free: 9.969 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.244e-05/0.4788, allocations: 28 kB / 0.5276 GB, free: 9.941 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01455/0.4933, allocations: 7.043 MB / 0.5344 GB, free: 2.879 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.586e-05/0.4934, allocations: 48 kB / 0.5345 GB, free: 2.832 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006453/0.4998, allocations: 2.533 MB / 0.537 GB, free: 292 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005389/0.5052, allocations: 1.495 MB / 0.5384 GB, free: 14.78 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003227/0.5085, allocations: 1.006 MB / 0.5394 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01128/0.5197, allocations: 7.785 MB / 0.547 GB, free: 5.723 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003389/0.5231, allocations: 327.7 kB / 0.5473 GB, free: 5.402 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007376/0.5239, allocations: 284 kB / 0.5476 GB, free: 5.125 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.00274/0.5266, allocations: 1.425 MB / 0.549 GB, free: 3.691 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005404/0.5271, allocations: 246.3 kB / 0.5492 GB, free: 3.449 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000905/0.5281, allocations: 325.9 kB / 0.5495 GB, free: 3.121 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006426/0.5345, allocations: 2.505 MB / 0.552 GB, free: 0.5977 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.245e-05/0.5345, allocations: 4 kB / 0.552 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.5345, allocations: 11.97 kB / 0.552 GB, free: 0.582 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01544/0.5499, allocations: 6.852 MB / 0.5587 GB, free: 9.637 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.48e-05/0.55, allocations: 0 / 0.5587 GB, free: 9.637 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009321/0.5509, allocations: 183.7 kB / 0.5588 GB, free: 9.457 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005271/0.5562, allocations: 1.43 MB / 0.5602 GB, free: 8.016 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002316/0.5564, allocations: 31.97 kB / 0.5603 GB, free: 7.984 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01199/0.5684, allocations: 7.926 MB / 0.568 GB, free: 15.79 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001366/0.5698, allocations: 1.544 MB / 0.5695 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01022/0.58, allocations: 4.86 MB / 0.5743 GB, free: 9.195 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008774/0.5808, allocations: 303.3 kB / 0.5746 GB, free: 8.879 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005853/0.5814, allocations: 33.05 kB / 0.5746 GB, free: 8.848 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/0.5829, allocations: 107.8 kB / 0.5747 GB, free: 8.742 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003658/0.5833, allocations: 76.44 kB / 0.5748 GB, free: 8.668 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001525/0.5835, allocations: 47.97 kB / 0.5748 GB, free: 8.621 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003485/0.5869, allocations: 1.689 MB / 0.5765 GB, free: 6.922 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5869, allocations: 0 / 0.5765 GB, free: 6.922 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004606/0.5916, allocations: 0.7538 MB / 0.5772 GB, free: 6.168 MB / 494.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.01122/0.6028, allocations: 5.507 MB / 0.5826 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008044/0.6108, allocations: 4.201 MB / 0.5867 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.6108, allocations: 0 / 0.5867 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003484/0.6143, allocations: 1.661 MB / 0.5883 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00215/0.6165, allocations: 267.7 kB / 0.5886 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06159/0.678, allocations: 33.76 MB / 0.6215 GB, free: 4.711 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003138/0.6812, allocations: 2.289 MB / 0.6238 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003339/0.6845, allocations: 1.408 MB / 0.6251 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1826/0.8671, allocations: 1.107 MB / 0.6262 GB, free: 180.7 MB / 0.5294 GB Notification: Performance of SimCode: time 9.32e-07/0.8671, allocations: 1.375 kB / 0.6262 GB, free: 180.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09861/0.9657, allocations: 48.86 MB / 0.6739 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.52/19.49, allocations: 6.719 kB / 0.6739 GB, free: 157.2 MB / 0.5294 GB " [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.50917410501279]