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.00181/0.00181, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002141/0.002141, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.6/1.6, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2757/0.2757, allocations: 46.12 MB / 344.2 MB, free: 11.59 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.002233/0.002233, allocations: 84.95 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1334, allocations: 62.45 MB / 480.2 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2): time 0.01527/0.1487, allocations: 11.03 MB / 491.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00905/0.1578, allocations: 3.831 MB / 495.1 MB, free: 6.23 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002103/0.16, allocations: 63.81 kB / 495.1 MB, free: 6.168 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005451/0.1655, allocations: 2.687 MB / 497.8 MB, free: 3.473 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004921/0.1704, allocations: 1.75 MB / 499.6 MB, free: 1.719 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001733/0.1722, allocations: 0.694 MB / 0.4885 GB, free: 1.023 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005477/0.1777, allocations: 3.571 MB / 0.492 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005734/0.1835, allocations: 3.699 MB / 0.4956 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003194/0.1867, allocations: 1.46 MB / 0.4971 GB, free: 8.219 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003494/0.1902, allocations: 1.998 MB / 0.499 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001218/0.1915, allocations: 324 kB / 0.4993 GB, free: 5.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002764/0.1942, allocations: 1.038 MB / 0.5003 GB, free: 4.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002545/0.1968, allocations: 1.781 MB / 0.5021 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003658/0.2005, allocations: 2.101 MB / 0.5041 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.249/0.4495, allocations: 6.447 MB / 0.5104 GB, free: 17.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.518e-06/0.4496, allocations: 9.047 kB / 0.5104 GB, free: 17.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.4496, allocations: 5.375 kB / 0.5104 GB, free: 17.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003319/0.4499, allocations: 0 / 0.5104 GB, free: 17.88 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02326/0.4732, allocations: 5.078 MB / 0.5154 GB, free: 16.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.4733, allocations: 9.562 kB / 0.5154 GB, free: 16.08 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001762/0.475, allocations: 0.6761 MB / 0.5161 GB, free: 16.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007537/0.4826, allocations: 1.87 MB / 0.5179 GB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006372/0.489, allocations: 2.435 MB / 0.5203 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003087/0.4893, allocations: 227.9 kB / 0.5205 GB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001302/0.4906, allocations: 302.3 kB / 0.5208 GB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0204/0.5111, allocations: 10.04 MB / 0.5306 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001348/0.5112, allocations: 49.31 kB / 0.5306 GB, free: 11.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005142/0.5118, allocations: 141 kB / 0.5308 GB, free: 10.97 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00281/0.5146, allocations: 1.804 MB / 0.5325 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01706/0.5316, allocations: 9.03 MB / 0.5413 GB, free: 5.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06236/0.5941, allocations: 37.22 MB / 0.5777 GB, free: 8 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01518/0.6093, allocations: 3.714 MB / 0.5813 GB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003339/0.6127, allocations: 1.711 MB / 0.583 GB, free: 10.44 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001538/0.6143, allocations: 0.6781 MB / 0.5836 GB, free: 9.66 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.903e-05/0.6144, allocations: 50.5 kB / 0.5837 GB, free: 9.605 MB / 430.1 MB Notification: Performance of pre-optimization done (n=130): time 7.023e-06/0.6144, allocations: 0 / 0.5837 GB, free: 9.605 MB / 430.1 MB Notification: Performance of matching and sorting (n=136): time 0.05406/0.6685, allocations: 12.89 MB / 0.5963 GB, free: 12.62 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.6687, allocations: 145 kB / 0.5964 GB, free: 12.45 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009443/0.6781, allocations: 3.964 MB / 0.6003 GB, free: 8.512 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005241/0.6787, allocations: 45.7 kB / 0.6003 GB, free: 8.461 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003342/0.682, allocations: 2.965 MB / 0.6032 GB, free: 5.512 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001131/0.6832, allocations: 0.5461 MB / 0.6038 GB, free: 4.973 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002224/0.6854, allocations: 1.139 MB / 0.6049 GB, free: 3.828 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001667/0.6856, allocations: 309.1 kB / 0.6052 GB, free: 3.523 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003552/0.6892, allocations: 1.92 MB / 0.607 GB, free: 1.598 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007324/0.6965, allocations: 5.484 MB / 0.6124 GB, free: 10.38 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01164/0.7082, allocations: 8.047 MB / 0.6203 GB, free: 1.07 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001334/0.7084, allocations: 36 kB / 0.6203 GB, free: 1.035 MB / 462.1 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.01952/0.7279, allocations: 7.894 MB / 0.628 GB, free: 9.395 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001973/0.7281, allocations: 60 kB / 0.6281 GB, free: 9.336 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002688/0.7284, allocations: 128 kB / 0.6282 GB, free: 9.211 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002975/0.7314, allocations: 0.9074 MB / 0.6291 GB, free: 8.301 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005289/0.7367, allocations: 1.279 MB / 0.6303 GB, free: 7.02 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008436/0.7452, allocations: 5.186 MB / 0.6354 GB, free: 1.707 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005444/0.7507, allocations: 303.4 kB / 0.6357 GB, free: 1.41 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001545/0.7522, allocations: 362.1 kB / 0.636 GB, free: 1.059 MB / 478.1 MB 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.00599/0.7582, allocations: 1.965 MB / 0.6379 GB, free: 15.08 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/0.7593, allocations: 327.7 kB / 0.6382 GB, free: 14.76 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00706/0.7664, allocations: 2.786 MB / 0.641 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.164e-05/0.7665, allocations: 20.08 kB / 0.641 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.775e-05/0.7665, allocations: 8 kB / 0.641 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-05/0.7665, allocations: 7.969 kB / 0.641 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01868/0.7852, allocations: 7.194 MB / 0.648 GB, free: 4.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.7853, allocations: 0 / 0.648 GB, free: 4.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001311/0.7866, allocations: 247.6 kB / 0.6483 GB, free: 4.438 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002313/0.7889, allocations: 0.7109 MB / 0.649 GB, free: 3.723 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00023/0.7892, allocations: 39.33 kB / 0.649 GB, free: 3.688 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007268/0.7964, allocations: 4.757 MB / 0.6536 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/0.7965, allocations: 4.031 kB / 0.6536 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009536/0.806, allocations: 5.142 MB / 0.6587 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/0.8076, allocations: 384.7 kB / 0.659 GB, free: 9.219 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001141/0.8087, allocations: 20 kB / 0.6591 GB, free: 9.199 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001964/0.8107, allocations: 79.89 kB / 0.6591 GB, free: 9.121 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003734/0.8111, allocations: 88.53 kB / 0.6592 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001759/0.8113, allocations: 51.97 kB / 0.6593 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006294/0.8176, allocations: 2.485 MB / 0.6617 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.21e-07/0.8176, allocations: 0 / 0.6617 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006657/0.8243, allocations: 0.8861 MB / 0.6626 GB, free: 5.633 MB / 0.4981 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.01085/0.8351, allocations: 5.753 MB / 0.6682 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.009196/0.8444, allocations: 5.054 MB / 0.6731 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.8444, allocations: 256 / 0.6731 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002225/0.8466, allocations: 1.361 MB / 0.6744 GB, free: 9.426 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003689/0.8504, allocations: 424.3 kB / 0.6748 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3156/1.166, allocations: 47.89 MB / 0.7216 GB, free: 188.6 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003167/1.169, allocations: 3.06 MB / 0.7246 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004429/1.174, allocations: 1.788 MB / 0.7263 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00216/1.176, allocations: 1.747 MB / 0.7281 GB, free: 186.1 MB / 0.545 GB Notification: Performance of SimCode: time 1.153e-06/1.176, allocations: 0 / 0.7281 GB, free: 186.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1168/1.293, allocations: 67.69 MB / 0.7942 GB, free: 127.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.99/13.29, allocations: 7.938 kB / 0.7942 GB, free: 127.3 MB / 0.545 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)