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_3.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_3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001374/0.001374, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001472/0.001472, allocations: 199.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 247 MB, free: 10.43 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.2415/0.2415, allocations: 46.12 MB / 344.4 MB, free: 11.47 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.002329/0.002329, allocations: 75.88 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3763/0.3786, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3): time 0.01664/0.3953, allocations: 13.03 MB / 0.5433 GB, free: 3.152 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01187/0.4072, allocations: 4.29 MB / 0.5475 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003322/0.4106, allocations: 86.88 kB / 0.5476 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008079/0.4188, allocations: 3.702 MB / 0.5512 GB, free: 12.56 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007009/0.4258, allocations: 1.968 MB / 0.5531 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002885/0.4288, allocations: 0.8187 MB / 0.5539 GB, free: 9.766 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.007763/0.4366, allocations: 4.221 MB / 0.5581 GB, free: 5.527 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008381/0.445, allocations: 4.832 MB / 0.5628 GB, free: 0.625 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004595/0.4496, allocations: 1.842 MB / 0.5646 GB, free: 14.77 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004659/0.4543, allocations: 2.473 MB / 0.567 GB, free: 12.29 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001638/0.456, allocations: 419.9 kB / 0.5674 GB, free: 11.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003269/0.4593, allocations: 1.123 MB / 0.5685 GB, free: 10.76 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00291/0.4623, allocations: 2.194 MB / 0.5706 GB, free: 8.562 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004075/0.4664, allocations: 2.598 MB / 0.5732 GB, free: 5.949 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0117/0.4781, allocations: 8.12 MB / 0.5811 GB, free: 13.8 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.4781, allocations: 0 / 0.5811 GB, free: 13.8 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4782, allocations: 4 kB / 0.5811 GB, free: 13.79 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003056/0.4785, allocations: 0 / 0.5811 GB, free: 13.79 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1736 * Number of variables: 1736 Notification: Performance of Generate backend data structure: time 0.02468/0.5032, allocations: 6.367 MB / 0.5873 GB, free: 7.348 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/0.5032, allocations: 8.031 kB / 0.5873 GB, free: 7.34 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002817/0.5061, allocations: 0.8307 MB / 0.5881 GB, free: 6.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008177/0.5143, allocations: 2.006 MB / 0.5901 GB, free: 4.488 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007257/0.5215, allocations: 2.93 MB / 0.593 GB, free: 1.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003205/0.5219, allocations: 291.5 kB / 0.5932 GB, free: 1.215 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001969/0.5239, allocations: 387.8 kB / 0.5936 GB, free: 0.8359 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02894/0.5529, allocations: 12.2 MB / 0.6055 GB, free: 3.914 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002501/0.5532, allocations: 59.47 kB / 0.6056 GB, free: 3.855 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001397/0.5546, allocations: 183.8 kB / 0.6058 GB, free: 3.676 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004552/0.5591, allocations: 2.182 MB / 0.6079 GB, free: 1.492 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02471/0.5839, allocations: 11.21 MB / 0.6188 GB, free: 6.273 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06967/0.6536, allocations: 45.96 MB / 0.6637 GB, free: 7.203 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01901/0.6727, allocations: 5.489 MB / 0.6691 GB, free: 1.559 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005352/0.6781, allocations: 3.439 MB / 0.6724 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001224/0.6793, allocations: 0.6987 MB / 0.6731 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.395e-05/0.6794, allocations: 51.88 kB / 0.6732 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=203): time 6.061e-06/0.6794, allocations: 0 / 0.6732 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of matching and sorting (n=234): time 0.08473/0.7642, allocations: 27.57 MB / 0.7001 GB, free: 1.559 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.7643, allocations: 158.5 kB / 0.7002 GB, free: 1.371 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008499/0.7728, allocations: 4.412 MB / 0.7046 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007526/0.7737, allocations: 61.7 kB / 0.7046 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003806/0.7775, allocations: 3.52 MB / 0.7081 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001773/0.7793, allocations: 0.9186 MB / 0.709 GB, free: 8.387 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003645/0.783, allocations: 1.419 MB / 0.7103 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.7831, allocations: 305.1 kB / 0.7106 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0063/0.7895, allocations: 3.265 MB / 0.7138 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2909/1.08, allocations: 7.076 MB / 0.7207 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01441/1.095, allocations: 11.14 MB / 0.7316 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003432/1.095, allocations: 38.31 kB / 0.7316 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=851) (initialization): time 0.02124/1.117, allocations: 11.29 MB / 0.7427 GB, free: 147 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001422/1.117, allocations: 64.66 kB / 0.7427 GB, free: 147 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002318/1.117, allocations: 132.2 kB / 0.7429 GB, free: 147 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002891/1.12, allocations: 1.113 MB / 0.7439 GB, free: 146.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006026/1.126, allocations: 1.693 MB / 0.7456 GB, free: 146.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007294/1.133, allocations: 6.34 MB / 0.7518 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006153/1.139, allocations: 399.3 kB / 0.7522 GB, free: 141.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001583/1.141, allocations: 439.8 kB / 0.7526 GB, free: 141.3 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 610 * Number of states: 0 () * Number of discrete variables: 44 (torque.torqueArrow.twoHeadedArrow,torque.torqueArrow.headAtOrigin,fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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 (812): * Single equations (assignments): 808 * 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.004973/1.146, allocations: 2.311 MB / 0.7549 GB, free: 139 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001093/1.147, allocations: 422.2 kB / 0.7553 GB, free: 138.9 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01023/1.157, allocations: 6.191 MB / 0.7613 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.9e-05/1.158, allocations: 24 kB / 0.7613 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.539e-05/1.158, allocations: 4 kB / 0.7613 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.936e-05/1.158, allocations: 11.95 kB / 0.7613 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02205/1.18, allocations: 12.89 MB / 0.7739 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.962e-05/1.18, allocations: 4.562 kB / 0.7739 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002672/1.182, allocations: 0.5404 MB / 0.7745 GB, free: 119.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002331/1.185, allocations: 0.9554 MB / 0.7754 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004432/1.185, allocations: 83.89 kB / 0.7755 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006186/1.192, allocations: 6.102 MB / 0.7814 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/1.192, allocations: 11.31 kB / 0.7814 GB, free: 111.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01313/1.205, allocations: 10.49 MB / 0.7917 GB, free: 101.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002197/1.207, allocations: 0.9052 MB / 0.7926 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000956/1.208, allocations: 39.98 kB / 0.7926 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002727/1.211, allocations: 171.7 kB / 0.7928 GB, free: 100.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005741/1.211, allocations: 185.4 kB / 0.7929 GB, free: 100.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002612/1.212, allocations: 99.89 kB / 0.793 GB, free: 100.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004062/1.216, allocations: 2.781 MB / 0.7958 GB, free: 97.35 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.92e-07/1.216, allocations: 0 / 0.7958 GB, free: 97.35 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007572/1.223, allocations: 1.178 MB / 0.7969 GB, free: 96.18 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,r1.phi,r1.w,r2.phi,r2.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 (206): * Single equations (assignments): 202 * 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 Backend phase and start with SimCode phase: time 0.0143/1.238, allocations: 11.16 MB / 0.8078 GB, free: 84.96 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0111/1.249, allocations: 7.733 MB / 0.8154 GB, free: 77.26 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.928e-06/1.249, allocations: 3.938 kB / 0.8154 GB, free: 77.25 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004146/1.253, allocations: 3.024 MB / 0.8183 GB, free: 74.22 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00424/1.257, allocations: 0.4919 MB / 0.8188 GB, free: 73.74 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08321/1.34, allocations: 59.01 MB / 0.8764 GB, free: 8.598 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00516/1.346, allocations: 3.627 MB / 0.88 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005126/1.351, allocations: 2.253 MB / 0.8822 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003719/1.355, allocations: 2.327 MB / 0.8844 GB, free: 360 kB / 0.5606 GB Notification: Performance of SimCode: time 6.92e-07/1.355, allocations: 0 / 0.8844 GB, free: 360 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4443/1.799, allocations: 91.26 MB / 0.9736 GB, free: 230.3 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.72/21.52, allocations: 17.39 kB / 0.9736 GB, free: 230.3 MB / 0.6387 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Parts_Rotor1D_Rotor1D_3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.pipe 2>&1)