Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) 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(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001377/0.001377, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001445/0.001445, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2348/0.2348, allocations: 46.12 MB / 344.3 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica 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.002231/0.002231, allocations: 75.88 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3587, allocations: 62.45 MB / 0.5306 GB, free: 13.28 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.01378/0.3726, allocations: 11.04 MB / 0.5414 GB, free: 4.617 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009753/0.3824, allocations: 3.82 MB / 0.5451 GB, free: 1.637 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002684/0.3851, allocations: 64.5 kB / 0.5452 GB, free: 1.625 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006078/0.3913, allocations: 2.684 MB / 0.5478 GB, free: 15.82 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006001/0.3973, allocations: 1.753 MB / 0.5495 GB, free: 14.21 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002284/0.3997, allocations: 0.6979 MB / 0.5502 GB, free: 13.51 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00642/0.4061, allocations: 3.582 MB / 0.5537 GB, free: 9.922 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00525/0.4114, allocations: 3.686 MB / 0.5573 GB, free: 6.172 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00328/0.4147, allocations: 1.472 MB / 0.5587 GB, free: 4.695 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003394/0.4182, allocations: 1.998 MB / 0.5607 GB, free: 2.691 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001055/0.4193, allocations: 320 kB / 0.561 GB, free: 2.379 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002521/0.4218, allocations: 1.042 MB / 0.562 GB, free: 1.336 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002152/0.424, allocations: 1.788 MB / 0.5637 GB, free: 15.54 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003072/0.4271, allocations: 2.089 MB / 0.5658 GB, free: 13.44 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009195/0.4363, allocations: 6.716 MB / 0.5723 GB, free: 6.699 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.363e-06/0.4363, allocations: 0 / 0.5723 GB, free: 6.699 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.4364, allocations: 0 / 0.5723 GB, free: 6.699 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002404/0.4366, allocations: 4 kB / 0.5723 GB, free: 6.695 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01878/0.4554, allocations: 5.2 MB / 0.5774 GB, free: 1.422 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.4555, allocations: 8.031 kB / 0.5774 GB, free: 1.414 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00177/0.4572, allocations: 0.6781 MB / 0.5781 GB, free: 0.7266 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007514/0.4648, allocations: 1.89 MB / 0.5799 GB, free: 14.83 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006096/0.4709, allocations: 2.499 MB / 0.5824 GB, free: 12.27 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002207/0.4712, allocations: 221.8 kB / 0.5826 GB, free: 12.05 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001298/0.4725, allocations: 303.8 kB / 0.5829 GB, free: 11.76 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02214/0.4947, allocations: 10.04 MB / 0.5927 GB, free: 1.062 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000218/0.4949, allocations: 39.64 kB / 0.5927 GB, free: 1.023 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001218/0.4962, allocations: 147.9 kB / 0.5929 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003644/0.4998, allocations: 1.798 MB / 0.5946 GB, free: 15.07 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02107/0.5209, allocations: 9.03 MB / 0.6034 GB, free: 6.023 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05525/0.5762, allocations: 37.15 MB / 0.6397 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01378/0.5901, allocations: 3.708 MB / 0.6433 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002773/0.5929, allocations: 1.715 MB / 0.645 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001164/0.5941, allocations: 0.6746 MB / 0.6457 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.313e-05/0.5942, allocations: 43.12 kB / 0.6457 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=130): time 6.973e-06/0.5942, allocations: 0 / 0.6457 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of matching and sorting (n=136): time 0.04709/0.6413, allocations: 13.1 MB / 0.6585 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.6415, allocations: 153.2 kB / 0.6587 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007521/0.649, allocations: 3.98 MB / 0.6625 GB, free: 8.047 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003494/0.6494, allocations: 41.7 kB / 0.6626 GB, free: 8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002768/0.6522, allocations: 3.085 MB / 0.6656 GB, free: 4.887 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008571/0.6531, allocations: 0.5778 MB / 0.6662 GB, free: 4.305 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002624/0.6557, allocations: 1.139 MB / 0.6673 GB, free: 3.156 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.6559, allocations: 305.1 kB / 0.6676 GB, free: 2.855 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003371/0.6592, allocations: 1.924 MB / 0.6694 GB, free: 0.9258 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006597/0.6659, allocations: 5.49 MB / 0.6748 GB, free: 9.633 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01064/0.6765, allocations: 8.035 MB / 0.6827 GB, free: 15.81 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001371/0.6767, allocations: 36 kB / 0.6827 GB, free: 15.78 MB / 0.545 GB Notification: Performance of matching and sorting (n=716) (initialization): time 0.01718/0.6939, allocations: 7.913 MB / 0.6904 GB, free: 7.855 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001958/0.6941, allocations: 60 kB / 0.6905 GB, free: 7.797 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003552/0.6945, allocations: 128 kB / 0.6906 GB, free: 7.672 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002948/0.6975, allocations: 0.9063 MB / 0.6915 GB, free: 6.762 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004558/0.7021, allocations: 1.279 MB / 0.6927 GB, free: 5.48 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007991/0.7101, allocations: 5.191 MB / 0.6978 GB, free: 164 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005046/0.7152, allocations: 296 kB / 0.6981 GB, free: 15.87 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001218/0.7164, allocations: 372 kB / 0.6984 GB, free: 15.51 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 579 * Number of states: 0 () * Number of discrete variables: 38 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (677): * Single equations (assignments): 673 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004766/0.7212, allocations: 1.963 MB / 0.7004 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001078/0.7223, allocations: 349.6 kB / 0.7007 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006856/0.7292, allocations: 2.782 MB / 0.7034 GB, free: 10.39 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.323e-05/0.7293, allocations: 16 kB / 0.7034 GB, free: 10.38 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.018e-05/0.7294, allocations: 4 kB / 0.7034 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.347e-05/0.7294, allocations: 15.91 kB / 0.7034 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01746/0.7469, allocations: 7.175 MB / 0.7104 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.223e-05/0.7469, allocations: 192 / 0.7104 GB, free: 3.102 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001426/0.7484, allocations: 243.6 kB / 0.7107 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002444/0.7509, allocations: 0.7186 MB / 0.7114 GB, free: 2.141 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003357/0.7512, allocations: 31.97 kB / 0.7114 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007214/0.7584, allocations: 4.752 MB / 0.716 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.563e-06/0.7585, allocations: 4.031 kB / 0.7161 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009293/0.7678, allocations: 5.154 MB / 0.7211 GB, free: 8.027 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.7689, allocations: 398.7 kB / 0.7215 GB, free: 7.617 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008846/0.7698, allocations: 24 kB / 0.7215 GB, free: 7.594 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001795/0.7716, allocations: 87.89 kB / 0.7216 GB, free: 7.508 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004045/0.7721, allocations: 92.39 kB / 0.7217 GB, free: 7.418 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002149/0.7723, allocations: 47.97 kB / 0.7217 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005486/0.7778, allocations: 2.481 MB / 0.7241 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.243e-06/0.7778, allocations: 0 / 0.7241 GB, free: 4.91 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005383/0.7832, allocations: 0.8749 MB / 0.725 GB, free: 4.035 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * 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 (104): * Single equations (assignments): 100 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2825/1.066, allocations: 5.774 MB / 0.7306 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007566/1.073, allocations: 4.599 MB / 0.7351 GB, free: 174.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/1.073, allocations: 0.7812 kB / 0.7351 GB, free: 174.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002098/1.075, allocations: 1.356 MB / 0.7364 GB, free: 174.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003162/1.079, allocations: 432.8 kB / 0.7369 GB, free: 174.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06528/1.144, allocations: 42.83 MB / 0.7787 GB, free: 137.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00423/1.148, allocations: 3.064 MB / 0.7817 GB, free: 134.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003938/1.152, allocations: 1.786 MB / 0.7834 GB, free: 132.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002606/1.155, allocations: 1.749 MB / 0.7851 GB, free: 131 MB / 0.5762 GB Notification: Performance of SimCode: time 7.92e-07/1.155, allocations: 0 / 0.7851 GB, free: 131 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1045/1.259, allocations: 64.09 MB / 0.8477 GB, free: 67.23 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.53/24.79, allocations: 3.781 kB / 0.8477 GB, free: 67.23 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.pipe 2>&1)