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.001343/0.001343, allocations: 103.2 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.00134/0.00134, 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 trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 246.8 MB, free: 10.51 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.2417/0.2417, allocations: 46.12 MB / 344.2 MB, free: 11.54 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.002286/0.002286, allocations: 83.08 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1325, allocations: 62.45 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3): time 0.01682/0.1494, allocations: 13.04 MB / 493.3 MB, free: 8.027 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01039/0.1598, allocations: 4.283 MB / 497.5 MB, free: 3.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002416/0.1623, allocations: 87.75 kB / 497.6 MB, free: 3.645 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007759/0.1701, allocations: 3.703 MB / 0.4896 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005955/0.1761, allocations: 1.968 MB / 0.4915 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0022/0.1783, allocations: 0.811 MB / 0.4923 GB, free: 13.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006835/0.1852, allocations: 4.22 MB / 0.4964 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006949/0.1921, allocations: 4.844 MB / 0.5011 GB, free: 4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004161/0.1963, allocations: 1.838 MB / 0.5029 GB, free: 2.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2282/0.4246, allocations: 2.463 MB / 0.5053 GB, free: 16.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001734/0.4263, allocations: 413.8 kB / 0.5057 GB, free: 16.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00295/0.4293, allocations: 1.127 MB / 0.5068 GB, free: 16.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002607/0.4319, allocations: 2.186 MB / 0.509 GB, free: 16.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003644/0.4356, allocations: 2.601 MB / 0.5115 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01109/0.4467, allocations: 7.837 MB / 0.5192 GB, free: 14.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.4467, allocations: 0.5 kB / 0.5192 GB, free: 14.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4467, allocations: 6.844 kB / 0.5192 GB, free: 14.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003365/0.4471, allocations: 0 / 0.5192 GB, free: 14.63 MB / 382.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.02975/0.4768, allocations: 6.215 MB / 0.5252 GB, free: 11.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.128e-05/0.4769, allocations: 12.53 kB / 0.5253 GB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006466/0.4834, allocations: 0.8302 MB / 0.5261 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009228/0.4927, allocations: 1.972 MB / 0.528 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006577/0.4993, allocations: 2.862 MB / 0.5308 GB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/0.4996, allocations: 294.1 kB / 0.5311 GB, free: 9.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001748/0.5013, allocations: 396.1 kB / 0.5314 GB, free: 9.203 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02443/0.5258, allocations: 12.2 MB / 0.5433 GB, free: 2.055 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001919/0.526, allocations: 42.44 kB / 0.5434 GB, free: 2.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001394/0.5274, allocations: 187.3 kB / 0.5436 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004255/0.5317, allocations: 2.192 MB / 0.5457 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02829/0.56, allocations: 11.2 MB / 0.5566 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07904/0.6391, allocations: 46.1 MB / 0.6017 GB, free: 6.941 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02004/0.6592, allocations: 5.482 MB / 0.607 GB, free: 1.32 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005612/0.6648, allocations: 3.435 MB / 0.6104 GB, free: 13.88 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001346/0.6662, allocations: 0.703 MB / 0.6111 GB, free: 13.08 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.378e-05/0.6663, allocations: 59.14 kB / 0.6111 GB, free: 13.02 MB / 462.1 MB Notification: Performance of pre-optimization done (n=203): time 5.279e-06/0.6663, allocations: 0 / 0.6111 GB, free: 13.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=234): time 0.09195/0.7583, allocations: 27.3 MB / 0.6378 GB, free: 1.648 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.7584, allocations: 150.5 kB / 0.6379 GB, free: 1.469 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009503/0.768, allocations: 4.402 MB / 0.6422 GB, free: 13.05 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008574/0.7688, allocations: 61.7 kB / 0.6423 GB, free: 12.98 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003227/0.7721, allocations: 3.393 MB / 0.6456 GB, free: 9.586 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001737/0.7738, allocations: 0.8788 MB / 0.6464 GB, free: 8.715 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002619/0.7765, allocations: 1.41 MB / 0.6478 GB, free: 7.297 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.7766, allocations: 305.1 kB / 0.6481 GB, free: 6.996 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005576/0.7822, allocations: 3.269 MB / 0.6513 GB, free: 3.723 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01248/0.7947, allocations: 7.084 MB / 0.6582 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01702/0.8118, allocations: 11.14 MB / 0.6691 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001303/0.8119, allocations: 40 kB / 0.6691 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of matching and sorting (n=851) (initialization): time 0.02548/0.8374, allocations: 11.25 MB / 0.6801 GB, free: 3.336 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001012/0.8376, allocations: 66.03 kB / 0.6802 GB, free: 3.273 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001704/0.8377, allocations: 136.8 kB / 0.6803 GB, free: 3.141 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003031/0.8408, allocations: 1.121 MB / 0.6814 GB, free: 2.016 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00689/0.8477, allocations: 1.688 MB / 0.6831 GB, free: 332 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009443/0.8572, allocations: 6.35 MB / 0.6893 GB, free: 9.84 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00645/0.8636, allocations: 399.5 kB / 0.6897 GB, free: 9.449 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001761/0.8654, allocations: 443.1 kB / 0.6901 GB, free: 9.02 MB / 0.5294 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.00575/0.8712, allocations: 2.303 MB / 0.6923 GB, free: 6.703 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/0.8723, allocations: 398.8 kB / 0.6927 GB, free: 6.309 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01159/0.8839, allocations: 6.183 MB / 0.6987 GB, free: 104 kB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.095e-05/0.884, allocations: 28 kB / 0.6988 GB, free: 76 kB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.884, allocations: 4 kB / 0.6988 GB, free: 72 kB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.994e-05/0.884, allocations: 15.95 kB / 0.6988 GB, free: 56 kB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02634/0.9104, allocations: 13.03 MB / 0.7115 GB, free: 2.938 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.386e-05/0.9104, allocations: 4 kB / 0.7115 GB, free: 2.934 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003276/0.9137, allocations: 0.5502 MB / 0.7121 GB, free: 2.383 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002761/0.9165, allocations: 0.945 MB / 0.713 GB, free: 1.434 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005507/0.9171, allocations: 87.89 kB / 0.7131 GB, free: 1.348 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2482/1.165, allocations: 6.056 MB / 0.719 GB, free: 191.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/1.165, allocations: 8.891 kB / 0.719 GB, free: 191.9 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.017/1.182, allocations: 10.47 MB / 0.7292 GB, free: 188.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002829/1.185, allocations: 0.8903 MB / 0.7301 GB, free: 188.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007995/1.186, allocations: 42.94 kB / 0.7301 GB, free: 188.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002293/1.188, allocations: 164.8 kB / 0.7303 GB, free: 188.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005192/1.189, allocations: 183 kB / 0.7304 GB, free: 188.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002635/1.189, allocations: 112 kB / 0.7306 GB, free: 188.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00444/1.194, allocations: 2.771 MB / 0.7333 GB, free: 187.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.11e-07/1.194, allocations: 0 / 0.7333 GB, free: 187.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006887/1.2, allocations: 1.179 MB / 0.7344 GB, free: 187.4 MB / 0.545 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.01389/1.214, allocations: 11.13 MB / 0.7453 GB, free: 183.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01493/1.229, allocations: 9.81 MB / 0.7549 GB, free: 175.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.598e-05/1.229, allocations: 4 kB / 0.7549 GB, free: 175.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005032/1.234, allocations: 3.015 MB / 0.7578 GB, free: 172.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003974/1.238, allocations: 0.4977 MB / 0.7583 GB, free: 172.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07974/1.318, allocations: 66.45 MB / 0.8232 GB, free: 97.96 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003411/1.322, allocations: 3.629 MB / 0.8267 GB, free: 94.29 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004894/1.327, allocations: 2.257 MB / 0.8289 GB, free: 92.03 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003441/1.33, allocations: 2.327 MB / 0.8312 GB, free: 89.7 MB / 0.545 GB Notification: Performance of SimCode: time 1.142e-06/1.33, allocations: 3.828 kB / 0.8312 GB, free: 89.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3949/1.725, allocations: 95.35 MB / 0.9243 GB, free: 185.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/14.11, allocations: 1.156 kB / 0.9243 GB, free: 185.4 MB / 0.545 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)