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.001595/0.001595, allocations: 112.4 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.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.001569/0.001569, allocations: 190.4 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.432/1.432, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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 0.00167/0.00167, allocations: 47.92 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2656, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009833/0.2754, allocations: 7.49 MB / 430.1 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006533/0.282, allocations: 3.292 MB / 433.4 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009288/0.2829, allocations: 39.81 kB / 433.5 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002129/0.285, allocations: 1.039 MB / 434.5 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003076/0.2881, allocations: 1.405 MB / 435.9 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009878/0.2891, allocations: 467.1 kB / 436.4 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003463/0.2926, allocations: 2.625 MB / 439 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001664/0.2942, allocations: 1.336 MB / 440.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.2954, allocations: 0.8603 MB / 441.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.2971, allocations: 1.332 MB / 442.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002992/0.2974, allocations: 172 kB / 442.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001842/0.2992, allocations: 1.076 MB / 443.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001069/0.3003, allocations: 1.129 MB / 444.9 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001256/0.3016, allocations: 1.308 MB / 446.2 MB, free: 6.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005002/0.3066, allocations: 4.393 MB / 450.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3066, allocations: 4 kB / 450.6 MB, free: 2.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3066, allocations: 0 / 450.6 MB, free: 2.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.014e-05/0.3067, allocations: 0 / 450.6 MB, free: 2.52 MB / 350.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.005542/0.3122, allocations: 3.056 MB / 453.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.3122, allocations: 12.03 kB / 453.7 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005335/0.3128, allocations: 470.9 kB / 454.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006205/0.319, allocations: 1.762 MB / 455.9 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003383/0.3224, allocations: 1.656 MB / 457.5 MB, free: 11.49 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.3225, allocations: 131.3 kB / 457.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006183/0.3231, allocations: 255.8 kB / 457.9 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01063/0.3337, allocations: 6.668 MB / 464.6 MB, free: 3.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-05/0.3338, allocations: 31.7 kB / 464.6 MB, free: 3.949 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002526/0.3341, allocations: 83.89 kB / 464.7 MB, free: 3.867 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002134/0.3362, allocations: 1.367 MB / 466.1 MB, free: 2.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01122/0.3474, allocations: 6.033 MB / 472.1 MB, free: 12.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03249/0.3799, allocations: 25.46 MB / 497.6 MB, free: 2.238 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006612/0.3865, allocations: 2.145 MB / 499.7 MB, free: 56 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001526/0.388, allocations: 0.9921 MB / 0.489 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005772/0.3938, allocations: 2.948 MB / 0.4918 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.509e-05/0.3939, allocations: 47.05 kB / 0.4919 GB, free: 12.03 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 3.317e-06/0.3939, allocations: 0 / 0.4919 GB, free: 12.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02654/0.4204, allocations: 10.11 MB / 0.5017 GB, free: 1.844 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001644/0.422, allocations: 1.568 MB / 0.5033 GB, free: 116 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004706/0.4267, allocations: 2.75 MB / 0.506 GB, free: 13.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000257/0.427, allocations: 45.73 kB / 0.506 GB, free: 13.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001763/0.4288, allocations: 2.171 MB / 0.5081 GB, free: 11.1 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006502/0.4294, allocations: 0.5195 MB / 0.5086 GB, free: 10.57 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001221/0.4306, allocations: 0.9249 MB / 0.5095 GB, free: 9.637 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.4308, allocations: 305.1 kB / 0.5098 GB, free: 9.336 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002511/0.4333, allocations: 1.625 MB / 0.5114 GB, free: 7.703 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004943/0.4383, allocations: 4.425 MB / 0.5157 GB, free: 1.871 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008214/0.4465, allocations: 6.494 MB / 0.5221 GB, free: 9.988 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.139e-05/0.4465, allocations: 32.22 kB / 0.5221 GB, free: 9.957 MB / 446.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01399/0.4605, allocations: 7.029 MB / 0.529 GB, free: 2.91 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.105e-05/0.4606, allocations: 48.09 kB / 0.529 GB, free: 2.863 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006047/0.4666, allocations: 2.532 MB / 0.5315 GB, free: 328 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005132/0.4718, allocations: 1.496 MB / 0.533 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003274/0.475, allocations: 1.002 MB / 0.5339 GB, free: 13.81 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01077/0.4858, allocations: 7.573 MB / 0.5413 GB, free: 6.008 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00345/0.4893, allocations: 327.7 kB / 0.5416 GB, free: 5.688 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000663/0.4899, allocations: 280 kB / 0.5419 GB, free: 5.414 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.002352/0.4923, allocations: 1.426 MB / 0.5433 GB, free: 3.977 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004406/0.4927, allocations: 246.4 kB / 0.5435 GB, free: 3.734 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00658/0.4993, allocations: 2.82 MB / 0.5463 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2234/0.7227, allocations: 2.494 MB / 0.5487 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.035e-05/0.7228, allocations: 4.875 kB / 0.5487 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.913e-05/0.7228, allocations: 6.562 kB / 0.5487 GB, free: 119.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01162/0.7344, allocations: 6.766 MB / 0.5553 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.254e-05/0.7344, allocations: 3.5 kB / 0.5553 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007577/0.7352, allocations: 178.4 kB / 0.5555 GB, free: 118.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003975/0.7391, allocations: 1.435 MB / 0.5569 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001363/0.7393, allocations: 30.56 kB / 0.5569 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008169/0.7475, allocations: 7.718 MB / 0.5645 GB, free: 113.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007055/0.7482, allocations: 1.441 MB / 0.5659 GB, free: 112.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006892/0.7551, allocations: 4.855 MB / 0.5706 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005457/0.7556, allocations: 226.8 kB / 0.5708 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002473/0.7558, allocations: 27.98 kB / 0.5709 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/0.7568, allocations: 107.8 kB / 0.571 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002277/0.7571, allocations: 88.36 kB / 0.5711 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.432e-05/0.7572, allocations: 35.98 kB / 0.5711 GB, free: 108.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001923/0.7591, allocations: 1.697 MB / 0.5728 GB, free: 106.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7591, allocations: 0 / 0.5728 GB, free: 106.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002922/0.762, allocations: 0.7638 MB / 0.5735 GB, free: 106.1 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.006995/0.769, allocations: 5.504 MB / 0.5789 GB, free: 100.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005767/0.7748, allocations: 4.118 MB / 0.5829 GB, free: 96.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.7748, allocations: 0 / 0.5829 GB, free: 96.59 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002536/0.7773, allocations: 1.578 MB / 0.5844 GB, free: 94.99 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/0.779, allocations: 275.6 kB / 0.5847 GB, free: 94.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03733/0.8163, allocations: 33.8 MB / 0.6177 GB, free: 57.09 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001514/0.8178, allocations: 2.297 MB / 0.6199 GB, free: 54.76 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002389/0.8202, allocations: 1.408 MB / 0.6213 GB, free: 53.35 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/0.8212, allocations: 1.108 MB / 0.6224 GB, free: 52.24 MB / 462.1 MB Notification: Performance of SimCode: time 8.81e-07/0.8212, allocations: 0 / 0.6224 GB, free: 52.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09116/0.9124, allocations: 52.85 MB / 0.674 GB, free: 15.71 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.07/19.98, allocations: 11.28 kB / 0.674 GB, free: 15.71 MB / 478.1 MB " [Timeout remaining time 640] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/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: 22.76921983109787]