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.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001694/0.001694, allocations: 117.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001906/0.001906, allocations: 207.8 kB / 18.74 MB, free: 4.312 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.425/1.425, allocations: 227.7 MB / 247.2 MB, free: 10.29 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.00195/0.00195, allocations: 63.91 kB / 358.5 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2473/0.2493, allocations: 50.54 MB / 409.1 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01426/0.2636, allocations: 11.97 MB / 421 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008938/0.2726, allocations: 4.207 MB / 425.2 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001892/0.2746, allocations: 67.81 kB / 425.3 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005345/0.2799, allocations: 2.752 MB / 428 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005001/0.2849, allocations: 1.93 MB / 430 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001856/0.2868, allocations: 0.7994 MB / 430.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006979/0.2938, allocations: 4.69 MB / 435.5 MB, free: 6.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004546/0.2984, allocations: 3.547 MB / 439 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002651/0.301, allocations: 1.682 MB / 440.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00352/0.3046, allocations: 2.328 MB / 443 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009121/0.3055, allocations: 352 kB / 443.4 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002609/0.3081, allocations: 1.256 MB / 444.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002249/0.3104, allocations: 2.073 MB / 446.7 MB, free: 11.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003176/0.3136, allocations: 2.415 MB / 449.1 MB, free: 9.172 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009793/0.3234, allocations: 7.512 MB / 456.6 MB, free: 1.629 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.3235, allocations: 8 kB / 456.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3235, allocations: 0 / 456.6 MB, free: 1.621 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002575/0.3237, allocations: 0 / 456.6 MB, free: 1.621 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01286/0.3366, allocations: 5.39 MB / 462 MB, free: 12.15 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.3367, allocations: 12.03 kB / 462 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001378/0.338, allocations: 0.806 MB / 462.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008892/0.3469, allocations: 2.209 MB / 465.1 MB, free: 9.109 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005889/0.3529, allocations: 2.946 MB / 468 MB, free: 6.102 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002426/0.3531, allocations: 266.9 kB / 468.3 MB, free: 5.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001154/0.3543, allocations: 435.6 kB / 468.7 MB, free: 5.414 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02461/0.3789, allocations: 12.27 MB / 480.9 MB, free: 8.332 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001448/0.3791, allocations: 51.56 kB / 481 MB, free: 8.281 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005341/0.3796, allocations: 171.8 kB / 481.2 MB, free: 8.113 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003566/0.3832, allocations: 2.166 MB / 483.3 MB, free: 5.945 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02336/0.4066, allocations: 10.25 MB / 493.6 MB, free: 11.68 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05902/0.4657, allocations: 44.16 MB / 0.5251 GB, free: 14.28 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01255/0.4783, allocations: 4.652 MB / 0.5297 GB, free: 9.418 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002824/0.4811, allocations: 1.712 MB / 0.5314 GB, free: 7.699 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2247/0.7058, allocations: 8.27 MB / 0.5394 GB, free: 123 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.166e-05/0.7059, allocations: 55.67 kB / 0.5395 GB, free: 122.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 5.561e-06/0.7059, allocations: 2.781 kB / 0.5395 GB, free: 122.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.03916/0.7451, allocations: 16.33 MB / 0.5554 GB, free: 117.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009544/0.7461, allocations: 1.693 MB / 0.5571 GB, free: 116.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004723/0.7508, allocations: 4.214 MB / 0.5612 GB, free: 113.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003605/0.7512, allocations: 57.7 kB / 0.5613 GB, free: 113.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001471/0.7527, allocations: 3.54 MB / 0.5647 GB, free: 110.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000705/0.7534, allocations: 0.8437 MB / 0.5655 GB, free: 109.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001362/0.7548, allocations: 1.357 MB / 0.5669 GB, free: 108.4 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.434e-05/0.7548, allocations: 305.1 kB / 0.5672 GB, free: 108.1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002745/0.7576, allocations: 2.25 MB / 0.5694 GB, free: 105.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00449/0.7621, allocations: 6.374 MB / 0.5756 GB, free: 97.54 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00795/0.7701, allocations: 9.283 MB / 0.5846 GB, free: 86.21 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001055/0.7702, allocations: 40.56 kB / 0.5847 GB, free: 86.17 MB / 462.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01563/0.7858, allocations: 9.13 MB / 0.5936 GB, free: 77.03 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.209e-05/0.786, allocations: 74.33 kB / 0.5937 GB, free: 76.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005074/0.791, allocations: 2.874 MB / 0.5965 GB, free: 74.08 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003038/0.7941, allocations: 1.073 MB / 0.5975 GB, free: 72.99 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004729/0.7989, allocations: 1.579 MB / 0.5991 GB, free: 71.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003838/0.8028, allocations: 4.682 MB / 0.6036 GB, free: 66.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004999/0.8078, allocations: 439.5 kB / 0.6041 GB, free: 66.03 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007855/0.8086, allocations: 412 kB / 0.6044 GB, free: 65.62 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 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): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002927/0.8115, allocations: 2.208 MB / 0.6066 GB, free: 63.41 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006439/0.8122, allocations: 393.4 kB / 0.607 GB, free: 63.02 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005706/0.8179, allocations: 3.324 MB / 0.6102 GB, free: 59.67 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004555/0.8225, allocations: 2.776 MB / 0.6129 GB, free: 56.88 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.365e-05/0.8225, allocations: 7.938 kB / 0.6129 GB, free: 56.87 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.919e-05/0.8226, allocations: 11.97 kB / 0.613 GB, free: 56.86 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01556/0.8381, allocations: 10.37 MB / 0.6231 GB, free: 46.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.148e-05/0.8382, allocations: 12 kB / 0.6231 GB, free: 46.24 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001352/0.8396, allocations: 383.4 kB / 0.6235 GB, free: 45.87 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00254/0.8421, allocations: 0.9864 MB / 0.6244 GB, free: 44.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001898/0.8423, allocations: 55.98 kB / 0.6245 GB, free: 44.81 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003853/0.8462, allocations: 4.911 MB / 0.6293 GB, free: 39.63 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006892/0.8469, allocations: 1.577 MB / 0.6308 GB, free: 37.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0077/0.8546, allocations: 5.986 MB / 0.6367 GB, free: 31.71 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009672/0.8556, allocations: 458.2 kB / 0.6371 GB, free: 31.25 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003934/0.856, allocations: 63.92 kB / 0.6372 GB, free: 31.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/0.8575, allocations: 151.8 kB / 0.6373 GB, free: 31.04 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003048/0.8578, allocations: 176.4 kB / 0.6375 GB, free: 30.86 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/0.858, allocations: 75.97 kB / 0.6375 GB, free: 30.79 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003244/0.8612, allocations: 2.59 MB / 0.6401 GB, free: 28.19 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.8613, allocations: 0 / 0.6401 GB, free: 28.19 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004794/0.8661, allocations: 1.118 MB / 0.6412 GB, free: 27.07 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($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],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007755/0.8738, allocations: 6.671 MB / 0.6477 GB, free: 20.19 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008537/0.8824, allocations: 5.961 MB / 0.6535 GB, free: 14.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/0.8824, allocations: 0 / 0.6535 GB, free: 14.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003409/0.8858, allocations: 2.223 MB / 0.6557 GB, free: 11.91 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003028/0.8889, allocations: 0.4969 MB / 0.6562 GB, free: 11.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08645/0.9754, allocations: 50.74 MB / 0.7057 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004983/0.9804, allocations: 3.451 MB / 0.7091 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005/0.9854, allocations: 2.018 MB / 0.711 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004233/0.9897, allocations: 2.093 MB / 0.7131 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of SimCode: time 1.302e-06/0.9897, allocations: 0 / 0.7131 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4334/1.423, allocations: 72.92 MB / 0.7843 GB, free: 157.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 59.47/60.89, allocations: 8.547 kB / 0.7843 GB, free: 157.2 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)