Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.ThreeSprings,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001826/0.001827, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002371/0.002371, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.444/1.444, allocations: 227.7 MB / 247.1 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 67.3 kB / 307.3 MB, free: 396 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1068, allocations: 50.54 MB / 357.9 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.01311/0.12, allocations: 10.69 MB / 368.6 MB, free: 3.082 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1755/0.2955, allocations: 3.951 MB / 372.5 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002509/0.2981, allocations: 60.19 kB / 372.6 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00587/0.304, allocations: 2.576 MB / 375.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005102/0.3092, allocations: 1.73 MB / 376.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00218/0.3114, allocations: 0.6829 MB / 377.6 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006306/0.3177, allocations: 3.713 MB / 381.3 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005721/0.3235, allocations: 3.568 MB / 384.8 MB, free: 6.816 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003207/0.3267, allocations: 1.471 MB / 386.3 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003308/0.33, allocations: 1.946 MB / 388.3 MB, free: 5.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001348/0.3314, allocations: 318 kB / 388.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003158/0.3346, allocations: 1.143 MB / 389.7 MB, free: 5.102 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002343/0.337, allocations: 1.789 MB / 391.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003857/0.3408, allocations: 2.127 MB / 393.6 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009971/0.3508, allocations: 6.415 MB / 400 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.3509, allocations: 0 / 400 MB, free: 14.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.3509, allocations: 0 / 400 MB, free: 14.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003528/0.3513, allocations: 0 / 400 MB, free: 14.21 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.01421/0.3655, allocations: 4.547 MB / 404.6 MB, free: 9.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.3656, allocations: 8.031 kB / 404.6 MB, free: 9.812 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00232/0.3679, allocations: 0.7242 MB / 405.3 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008431/0.3763, allocations: 1.943 MB / 407.3 MB, free: 7.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005495/0.3819, allocations: 2.186 MB / 409.5 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002995/0.3822, allocations: 254 kB / 409.7 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001574/0.3838, allocations: 389.4 kB / 410.1 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02211/0.4059, allocations: 10.11 MB / 420.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001299/0.4061, allocations: 47.56 kB / 420.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004871/0.4066, allocations: 150.9 kB / 420.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003147/0.4098, allocations: 1.86 MB / 422.2 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01939/0.4292, allocations: 8.366 MB / 430.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05289/0.4821, allocations: 39.36 MB / 470 MB, free: 7.008 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01191/0.4941, allocations: 4.039 MB / 474 MB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00241/0.4965, allocations: 1.424 MB / 475.4 MB, free: 1.387 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01218/0.5087, allocations: 7.683 MB / 483.1 MB, free: 9.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.922e-05/0.5088, allocations: 51.56 kB / 483.2 MB, free: 9.191 MB / 398.1 MB Notification: Performance of pre-optimization done (n=152): time 5.15e-06/0.5089, allocations: 3.938 kB / 483.2 MB, free: 9.188 MB / 398.1 MB Notification: Performance of matching and sorting (n=159): time 0.03597/0.5448, allocations: 12.51 MB / 495.7 MB, free: 12.49 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001512/0.5464, allocations: 1.664 MB / 497.3 MB, free: 10.65 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005628/0.552, allocations: 3.816 MB / 0.4894 GB, free: 6.844 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002918/0.5523, allocations: 45.7 kB / 0.4895 GB, free: 6.793 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002494/0.5548, allocations: 3.107 MB / 0.4925 GB, free: 3.688 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007937/0.5556, allocations: 0.6558 MB / 0.4931 GB, free: 3.039 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001662/0.5573, allocations: 1.248 MB / 0.4944 GB, free: 1.781 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.5575, allocations: 309.1 kB / 0.4946 GB, free: 1.477 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003261/0.5607, allocations: 2.019 MB / 0.4966 GB, free: 15.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006779/0.5675, allocations: 5.95 MB / 0.5024 GB, free: 7.535 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01104/0.5786, allocations: 8.6 MB / 0.5108 GB, free: 12.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001139/0.5787, allocations: 40 kB / 0.5109 GB, free: 12.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.02004/0.5988, allocations: 8.831 MB / 0.5195 GB, free: 4.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.599, allocations: 64 kB / 0.5195 GB, free: 4.027 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0069/0.6059, allocations: 2.837 MB / 0.5223 GB, free: 1.172 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1638/0.7697, allocations: 1.565 MB / 0.5238 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004524/0.7743, allocations: 1.368 MB / 0.5252 GB, free: 137.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0126/0.7869, allocations: 9.645 MB / 0.5346 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005641/0.7926, allocations: 398.4 kB / 0.535 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001336/0.794, allocations: 387.2 kB / 0.5354 GB, free: 132.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (738): * Single equations (assignments): 728 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of prepare postOptimizeDAE: time 0.004901/0.7989, allocations: 2.013 MB / 0.5373 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009734/0.7999, allocations: 325.9 kB / 0.5376 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001185/0.8011, allocations: 435.6 kB / 0.538 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006698/0.8078, allocations: 2.737 MB / 0.5407 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-05/0.8078, allocations: 2.281 kB / 0.5407 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.621e-05/0.8079, allocations: 8.188 kB / 0.5407 GB, free: 130.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01663/0.8245, allocations: 8.619 MB / 0.5491 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.776e-05/0.8246, allocations: 0 / 0.5491 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008674/0.8254, allocations: 199.4 kB / 0.5493 GB, free: 127.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004317/0.8298, allocations: 1.458 MB / 0.5508 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002256/0.83, allocations: 39.3 kB / 0.5508 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01103/0.841, allocations: 9.829 MB / 0.5604 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008008/0.8419, allocations: 1.543 MB / 0.5619 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008417/0.8503, allocations: 5.368 MB / 0.5671 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009735/0.8513, allocations: 370.8 kB / 0.5675 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000393/0.8517, allocations: 35.27 kB / 0.5675 GB, free: 116.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/0.853, allocations: 126.1 kB / 0.5676 GB, free: 116.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003577/0.8534, allocations: 114.5 kB / 0.5678 GB, free: 116.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/0.8535, allocations: 48.69 kB / 0.5678 GB, free: 116.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003106/0.8566, allocations: 2.336 MB / 0.5701 GB, free: 114.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.8566, allocations: 0 / 0.5701 GB, free: 114.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005372/0.862, allocations: 1.055 MB / 0.5711 GB, free: 113.3 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008153/0.8702, allocations: 6.016 MB / 0.577 GB, free: 107.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009436/0.8797, allocations: 6.205 MB / 0.5831 GB, free: 101 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.487e-06/0.8797, allocations: 4 kB / 0.5831 GB, free: 101 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003752/0.8835, allocations: 2.325 MB / 0.5853 GB, free: 98.58 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002288/0.8858, allocations: 397.7 kB / 0.5857 GB, free: 98.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06067/0.9465, allocations: 50.37 MB / 0.6349 GB, free: 39.95 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002718/0.9493, allocations: 3.136 MB / 0.638 GB, free: 36.78 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003983/0.9533, allocations: 1.8 MB / 0.6397 GB, free: 34.97 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001746/0.955, allocations: 1.765 MB / 0.6414 GB, free: 33.2 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.955, allocations: 0 / 0.6414 GB, free: 33.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3246/1.28, allocations: 73.25 MB / 0.713 GB, free: 143.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.11/15.39, allocations: 15.2 kB / 0.713 GB, free: 143.1 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1)