Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008591/0.0008591, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009654/0.0009654, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002345/0.0002346, allocations: 8 kB / 307.8 MB, free: 0.6914 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08991/0.09016, allocations: 51.52 MB / 359.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.1607/0.2509, allocations: 17.13 MB / 376.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007028/0.2579, allocations: 4.97 MB / 381.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009679/0.2589, allocations: 70.88 kB / 381.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005342/0.2594, allocations: 279.4 kB / 381.8 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002149/0.2616, allocations: 1.262 MB / 383.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006866/0.2623, allocations: 413.7 kB / 383.5 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003459/0.2658, allocations: 3.644 MB / 387.1 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00215/0.2679, allocations: 2.032 MB / 389.1 MB, free: 6.215 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007675/0.2687, allocations: 0.6642 MB / 389.8 MB, free: 5.996 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001172/0.2699, allocations: 1.214 MB / 391 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001783/0.2701, allocations: 86.88 kB / 391.1 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001401/0.2715, allocations: 0.9796 MB / 392.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007053/0.2722, allocations: 1.027 MB / 393.1 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007499/0.273, allocations: 1.228 MB / 394.3 MB, free: 3.516 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002677/0.2757, allocations: 4.034 MB / 398.4 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2757, allocations: 0 / 398.4 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2757, allocations: 3.938 kB / 398.4 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.952e-05/0.2757, allocations: 0 / 398.4 MB, free: 0.9258 MB / 302.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.003633/0.2793, allocations: 2.525 MB / 400.9 MB, free: 15.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.532e-05/0.2794, allocations: 13.53 kB / 400.9 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004434/0.2798, allocations: 465.6 kB / 401.4 MB, free: 14.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006229/0.2861, allocations: 1.846 MB / 403.2 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002137/0.2882, allocations: 1.583 MB / 404.8 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.113e-05/0.2883, allocations: 129.2 kB / 404.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005697/0.2889, allocations: 256.5 kB / 405.2 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008402/0.2973, allocations: 6.695 MB / 411.9 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.671e-05/0.2974, allocations: 27.75 kB / 411.9 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002285/0.2976, allocations: 86.19 kB / 412 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001888/0.2995, allocations: 1.367 MB / 413.4 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009339/0.3089, allocations: 6.057 MB / 419.4 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02493/0.3338, allocations: 25.59 MB / 445 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006548/0.3404, allocations: 2.694 MB / 447.7 MB, free: 284 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001328/0.3417, allocations: 1.04 MB / 448.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004923/0.3467, allocations: 3.947 MB / 452.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.3467, allocations: 43.12 kB / 452.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 3.056e-06/0.3467, allocations: 0 / 452.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.02413/0.3709, allocations: 10.36 MB / 463.1 MB, free: 476 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001066/0.372, allocations: 1.584 MB / 464.7 MB, free: 14.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00355/0.3755, allocations: 2.733 MB / 467.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.3757, allocations: 45.8 kB / 467.4 MB, free: 11.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001223/0.3769, allocations: 2.088 MB / 469.5 MB, free: 9.816 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004449/0.3774, allocations: 0.4997 MB / 470 MB, free: 9.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004687/0.3778, allocations: 395.8 kB / 470.4 MB, free: 8.926 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.035e-05/0.3779, allocations: 301.1 kB / 470.7 MB, free: 8.629 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002373/0.3803, allocations: 1.625 MB / 472.3 MB, free: 6.996 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003873/0.3842, allocations: 4.436 MB / 476.8 MB, free: 1.152 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006455/0.3906, allocations: 6.504 MB / 483.3 MB, free: 9.254 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.952e-05/0.3907, allocations: 31.94 kB / 483.3 MB, free: 9.223 MB / 398.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01239/0.4031, allocations: 7.049 MB / 490.4 MB, free: 2.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.553e-05/0.4032, allocations: 50.97 kB / 490.4 MB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005714/0.4089, allocations: 2.558 MB / 493 MB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004873/0.4138, allocations: 1.486 MB / 494.4 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002783/0.4166, allocations: 1.006 MB / 495.5 MB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00873/0.4254, allocations: 7.212 MB / 0.4909 GB, free: 5.562 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003102/0.4285, allocations: 327.6 kB / 0.4912 GB, free: 5.242 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005574/0.429, allocations: 281.9 kB / 0.4915 GB, free: 4.969 MB / 414.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.002251/0.4313, allocations: 1.427 MB / 0.4929 GB, free: 3.535 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003927/0.4317, allocations: 229 kB / 0.4931 GB, free: 3.309 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006955/0.4324, allocations: 333.9 kB / 0.4934 GB, free: 2.973 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005693/0.4381, allocations: 2.525 MB / 0.4959 GB, free: 440 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.4381, allocations: 4 kB / 0.4959 GB, free: 436 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.4382, allocations: 7.922 kB / 0.4959 GB, free: 428 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.012/0.4502, allocations: 6.885 MB / 0.5026 GB, free: 9.473 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.4502, allocations: 128 / 0.5026 GB, free: 9.473 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007539/0.4509, allocations: 183.7 kB / 0.5028 GB, free: 9.293 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004574/0.4555, allocations: 1.438 MB / 0.5042 GB, free: 7.848 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.4556, allocations: 35.97 kB / 0.5042 GB, free: 7.812 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008856/0.4645, allocations: 7.327 MB / 0.5114 GB, free: 224 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008633/0.4654, allocations: 1.443 MB / 0.5128 GB, free: 14.63 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008303/0.4737, allocations: 4.883 MB / 0.5175 GB, free: 9.707 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007004/0.4744, allocations: 297.9 kB / 0.5178 GB, free: 9.395 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004422/0.4749, allocations: 28.12 kB / 0.5179 GB, free: 9.367 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/0.4762, allocations: 115.8 kB / 0.518 GB, free: 9.254 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002563/0.4764, allocations: 83.5 kB / 0.518 GB, free: 9.176 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.817e-05/0.4765, allocations: 43.98 kB / 0.5181 GB, free: 9.133 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002897/0.4794, allocations: 1.689 MB / 0.5197 GB, free: 7.434 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4795, allocations: 4 kB / 0.5197 GB, free: 7.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003421/0.4829, allocations: 0.7462 MB / 0.5205 GB, free: 6.684 MB / 446.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.008496/0.4914, allocations: 5.503 MB / 0.5258 GB, free: 1.133 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1499/0.6413, allocations: 4.347 MB / 0.5301 GB, free: 148.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.6414, allocations: 0 / 0.5301 GB, free: 148.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003072/0.6445, allocations: 1.722 MB / 0.5318 GB, free: 148.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/0.6465, allocations: 257 kB / 0.532 GB, free: 148.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04292/0.6894, allocations: 37.25 MB / 0.5684 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001569/0.691, allocations: 2.289 MB / 0.5706 GB, free: 118.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00262/0.6937, allocations: 1.408 MB / 0.572 GB, free: 116.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009891/0.6947, allocations: 1.116 MB / 0.5731 GB, free: 115.6 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6947, allocations: 1.531 kB / 0.5731 GB, free: 115.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05551/0.7502, allocations: 49.42 MB / 0.6214 GB, free: 66.44 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/0.7504, allocations: 267.2 kB / 0.6216 GB, free: 66.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.592/3.343, allocations: 0 / 0.6216 GB, free: 66.18 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches