Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.ThreeSprings,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 102.6 kB / 17.58 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 191.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.252/1.252, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00209/0.00209, allocations: 56.12 kB / 280.8 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09471/0.09682, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.01032/0.1072, allocations: 10.73 MB / 338.1 MB, free: 9.594 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006641/0.1139, allocations: 3.932 MB / 342.1 MB, free: 5.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001165/0.1151, allocations: 63.81 kB / 342.1 MB, free: 5.586 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004391/0.1195, allocations: 2.581 MB / 344.7 MB, free: 2.996 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003628/0.1231, allocations: 1.747 MB / 346.4 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001322/0.1245, allocations: 0.6902 MB / 347.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003867/0.1283, allocations: 3.697 MB / 350.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003564/0.1319, allocations: 3.554 MB / 354.4 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001809/0.1337, allocations: 1.483 MB / 355.9 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002426/0.1362, allocations: 1.958 MB / 357.8 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006941/0.1369, allocations: 312 kB / 358.1 MB, free: 5.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002008/0.1389, allocations: 1.159 MB / 359.3 MB, free: 4.309 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001623/0.1405, allocations: 1.823 MB / 361.1 MB, free: 2.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002477/0.143, allocations: 2.148 MB / 363.3 MB, free: 328 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005616/0.1487, allocations: 6.476 MB / 369.7 MB, free: 9.824 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1487, allocations: 0 / 369.7 MB, free: 9.824 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1487, allocations: 0 / 369.7 MB, free: 9.824 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.306e-05/0.1488, allocations: 3.938 kB / 369.7 MB, free: 9.82 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.006681/0.1555, allocations: 4.588 MB / 374.3 MB, free: 5.164 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.1555, allocations: 12.03 kB / 374.3 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007364/0.1563, allocations: 0.7236 MB / 375.1 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006357/0.1626, allocations: 1.886 MB / 376.9 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003584/0.1662, allocations: 2.446 MB / 379.4 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1264/0.2927, allocations: 246.4 kB / 379.6 MB, free: 49.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00129/0.294, allocations: 388.5 kB / 380 MB, free: 49.62 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0161/0.3101, allocations: 10.07 MB / 390.1 MB, free: 45.37 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.367e-05/0.3102, allocations: 36.91 kB / 390.1 MB, free: 45.35 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003547/0.3106, allocations: 157.4 kB / 390.3 MB, free: 45.28 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002247/0.3128, allocations: 1.866 MB / 392.1 MB, free: 44.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01323/0.3261, allocations: 8.321 MB / 400.5 MB, free: 40.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03156/0.3577, allocations: 39.38 MB / 439.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009973/0.3677, allocations: 3.989 MB / 443.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001823/0.3695, allocations: 1.436 MB / 445.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009169/0.3787, allocations: 7.595 MB / 452.9 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.368e-05/0.3787, allocations: 51.55 kB / 452.9 MB, free: 2.266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=152): time 3.627e-06/0.3788, allocations: 0 / 452.9 MB, free: 2.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=159): time 0.031/0.4098, allocations: 12.43 MB / 465.3 MB, free: 5.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001197/0.411, allocations: 1.703 MB / 467 MB, free: 3.762 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005815/0.4168, allocations: 3.825 MB / 470.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001994/0.4171, allocations: 53.61 kB / 470.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001987/0.4191, allocations: 3.114 MB / 474 MB, free: 12.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006146/0.4197, allocations: 0.652 MB / 474.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001922/0.4216, allocations: 1.25 MB / 475.9 MB, free: 10.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.614e-05/0.4217, allocations: 301.1 kB / 476.2 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002881/0.4246, allocations: 2.011 MB / 478.2 MB, free: 8.492 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004947/0.4295, allocations: 5.946 MB / 484.2 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00866/0.4382, allocations: 8.562 MB / 492.8 MB, free: 6.055 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.247e-05/0.4383, allocations: 43.94 kB / 492.8 MB, free: 6.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01521/0.4535, allocations: 8.768 MB / 0.4898 GB, free: 13.22 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.49e-05/0.4536, allocations: 68 kB / 0.4899 GB, free: 13.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005739/0.4594, allocations: 2.791 MB / 0.4926 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004813/0.4642, allocations: 1.537 MB / 0.4941 GB, free: 8.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003581/0.4678, allocations: 1.357 MB / 0.4954 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005784/0.4736, allocations: 5.81 MB / 0.5011 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003852/0.4775, allocations: 391.3 kB / 0.5015 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005347/0.478, allocations: 384.2 kB / 0.5018 GB, free: 0.5547 MB / 398.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.002615/0.4807, allocations: 2.021 MB / 0.5038 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005124/0.4812, allocations: 331.6 kB / 0.5041 GB, free: 14.19 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006399/0.4876, allocations: 3.141 MB / 0.5072 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005519/0.4931, allocations: 2.672 MB / 0.5098 GB, free: 8.328 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.097e-05/0.4931, allocations: 11.98 kB / 0.5098 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.4932, allocations: 3.984 kB / 0.5098 GB, free: 8.312 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01443/0.5076, allocations: 8.579 MB / 0.5182 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.5076, allocations: 3.938 kB / 0.5182 GB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008444/0.5085, allocations: 195.7 kB / 0.5184 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004469/0.513, allocations: 1.436 MB / 0.5198 GB, free: 13.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.5131, allocations: 35.97 kB / 0.5198 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006266/0.5194, allocations: 6.01 MB / 0.5257 GB, free: 7.629 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009532/0.5203, allocations: 1.544 MB / 0.5272 GB, free: 5.934 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008826/0.5292, allocations: 5.299 MB / 0.5324 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007957/0.53, allocations: 380.7 kB / 0.5327 GB, free: 200 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007041/0.5307, allocations: 31.92 kB / 0.5328 GB, free: 168 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001581/0.5323, allocations: 123.8 kB / 0.5329 GB, free: 44 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.1346/0.6669, allocations: 83.42 kB / 0.533 GB, free: 141.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002623/0.6672, allocations: 45.05 kB / 0.533 GB, free: 141.9 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004153/0.6714, allocations: 2.358 MB / 0.5353 GB, free: 141.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.6714, allocations: 0 / 0.5353 GB, free: 141.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004567/0.676, allocations: 1.007 MB / 0.5363 GB, free: 141.7 MB / 430.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.008259/0.6843, allocations: 5.753 MB / 0.5419 GB, free: 139.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009317/0.6936, allocations: 5.942 MB / 0.5477 GB, free: 137.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.6936, allocations: 0 / 0.5477 GB, free: 137.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003302/0.6969, allocations: 2.024 MB / 0.5497 GB, free: 136.9 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002262/0.6992, allocations: 400.6 kB / 0.5501 GB, free: 136.7 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05092/0.7501, allocations: 50.42 MB / 0.5993 GB, free: 88.44 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002249/0.7524, allocations: 3.122 MB / 0.6024 GB, free: 85.29 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00333/0.7557, allocations: 1.804 MB / 0.6041 GB, free: 83.48 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001499/0.7573, allocations: 1.761 MB / 0.6058 GB, free: 81.72 MB / 430.1 MB Notification: Performance of SimCode: time 7.41e-07/0.7573, allocations: 0 / 0.6058 GB, free: 81.72 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08755/0.8448, allocations: 69.82 MB / 0.674 GB, free: 11.73 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.39/16.23, allocations: 4.484 kB / 0.674 GB, free: 11.73 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1)