Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.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.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001392/0.001392, allocations: 103.7 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.001505/0.001505, allocations: 212.6 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.469/1.469, allocations: 227.4 MB / 246.8 MB, free: 10.58 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.2298/0.2298, allocations: 46.12 MB / 344.2 MB, free: 11.58 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.002371/0.002371, allocations: 76.34 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1478, allocations: 62.46 MB / 480.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3): time 0.01681/0.1646, allocations: 13.66 MB / 493.9 MB, free: 7.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01066/0.1753, allocations: 4.715 MB / 498.6 MB, free: 2.699 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002545/0.1779, allocations: 95.69 kB / 498.7 MB, free: 2.605 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009245/0.1872, allocations: 4.459 MB / 0.4913 GB, free: 14.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006451/0.1937, allocations: 2.202 MB / 0.4935 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003048/0.1968, allocations: 1.139 MB / 0.4946 GB, free: 10.78 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01016/0.207, allocations: 6.346 MB / 0.5008 GB, free: 4.422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2625/0.4695, allocations: 5.549 MB / 0.5062 GB, free: 14.95 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005825/0.4754, allocations: 2.219 MB / 0.5084 GB, free: 14.85 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006708/0.4821, allocations: 2.94 MB / 0.5113 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002971/0.4852, allocations: 496.8 kB / 0.5117 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004928/0.4901, allocations: 1.497 MB / 0.5132 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005789/0.4959, allocations: 2.679 MB / 0.5158 GB, free: 14.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006415/0.5024, allocations: 3.133 MB / 0.5189 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01184/0.5142, allocations: 9.551 MB / 0.5282 GB, free: 9.941 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.5143, allocations: 2.594 kB / 0.5282 GB, free: 9.941 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5143, allocations: 0 / 0.5282 GB, free: 9.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003749/0.5146, allocations: 2.688 kB / 0.5282 GB, free: 9.941 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: 1985 * Number of variables: 1985 Notification: Performance of Generate backend data structure: time 0.02001/0.5347, allocations: 6.862 MB / 0.5349 GB, free: 5.414 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.5347, allocations: 10.06 kB / 0.5349 GB, free: 5.414 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002327/0.5371, allocations: 0.9494 MB / 0.5358 GB, free: 4.797 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03765/0.5747, allocations: 6.057 MB / 0.5418 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009657/0.5844, allocations: 4.211 MB / 0.5459 GB, free: 15.47 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002641/0.5847, allocations: 331.7 kB / 0.5462 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001847/0.5866, allocations: 449.5 kB / 0.5466 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03017/0.6168, allocations: 13.86 MB / 0.5602 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001905/0.617, allocations: 58.03 kB / 0.5602 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007054/0.6177, allocations: 209 kB / 0.5604 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004925/0.6226, allocations: 2.54 MB / 0.5629 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02836/0.651, allocations: 11.88 MB / 0.5745 GB, free: 2.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08435/0.7354, allocations: 51.55 MB / 0.6248 GB, free: 14.37 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01769/0.7532, allocations: 6.099 MB / 0.6308 GB, free: 8.137 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005915/0.7591, allocations: 3.74 MB / 0.6344 GB, free: 4.395 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02532/0.7845, allocations: 12.81 MB / 0.6469 GB, free: 7.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.889e-05/0.7846, allocations: 59.19 kB / 0.647 GB, free: 7.438 MB / 494.1 MB Notification: Performance of pre-optimization done (n=228): time 5.891e-06/0.7846, allocations: 4 kB / 0.647 GB, free: 7.434 MB / 494.1 MB Notification: Performance of matching and sorting (n=270): time 0.08827/0.8729, allocations: 27.66 MB / 0.674 GB, free: 11.65 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001551/0.8731, allocations: 212.5 kB / 0.6742 GB, free: 11.4 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01018/0.8833, allocations: 4.962 MB / 0.6791 GB, free: 6.434 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0008784/0.8842, allocations: 61.7 kB / 0.6791 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003928/0.8882, allocations: 3.846 MB / 0.6829 GB, free: 2.52 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001819/0.89, allocations: 1.006 MB / 0.6839 GB, free: 1.52 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002681/0.8927, allocations: 1.443 MB / 0.6853 GB, free: 72 kB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001702/0.8929, allocations: 301.1 kB / 0.6856 GB, free: 15.77 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005196/0.8981, allocations: 3.071 MB / 0.6886 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009018/0.9071, allocations: 7.109 MB / 0.6955 GB, free: 3.68 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01616/0.9233, allocations: 11.02 MB / 0.7063 GB, free: 7.273 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/0.9235, allocations: 40 kB / 0.7063 GB, free: 7.234 MB / 0.545 GB Notification: Performance of matching and sorting (n=922) (initialization): time 0.2949/1.218, allocations: 11.52 MB / 0.7176 GB, free: 185.1 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001995/1.219, allocations: 66.84 kB / 0.7176 GB, free: 185.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003314/1.219, allocations: 139.8 kB / 0.7177 GB, free: 185.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00493/1.224, allocations: 1.753 MB / 0.7195 GB, free: 185.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006473/1.23, allocations: 1.637 MB / 0.7211 GB, free: 185.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01677/1.247, allocations: 12.86 MB / 0.7336 GB, free: 179.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006549/1.254, allocations: 417.2 kB / 0.734 GB, free: 179.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001663/1.255, allocations: 424.8 kB / 0.7344 GB, free: 179.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 642 * Number of states: 0 () * Number of discrete variables: 59 (frameTorque2.torqueArrow.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.forceArrow.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque1.torqueArrow.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.forceArrow.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (850): * Single equations (assignments): 845 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007095/1.263, allocations: 2.683 MB / 0.737 GB, free: 178 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001622/1.264, allocations: 459.9 kB / 0.7375 GB, free: 178 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01278/1.277, allocations: 6.25 MB / 0.7436 GB, free: 175.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.429e-05/1.277, allocations: 34.59 kB / 0.7436 GB, free: 175.8 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.601e-05/1.277, allocations: 8.094 kB / 0.7436 GB, free: 175.8 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-05/1.277, allocations: 15.19 kB / 0.7436 GB, free: 175.8 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0288/1.306, allocations: 13.62 MB / 0.7569 GB, free: 169.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.551e-05/1.306, allocations: 0 / 0.7569 GB, free: 169.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002322/1.308, allocations: 451.2 kB / 0.7574 GB, free: 169.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003826/1.312, allocations: 1.531 MB / 0.7589 GB, free: 168.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005592/1.313, allocations: 49.48 kB / 0.7589 GB, free: 168.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01316/1.326, allocations: 12.13 MB / 0.7708 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/1.326, allocations: 4 kB / 0.7708 GB, free: 156.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01673/1.343, allocations: 10.06 MB / 0.7806 GB, free: 146.6 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001522/1.344, allocations: 0.4937 MB / 0.7811 GB, free: 146.2 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001451/1.346, allocations: 40 kB / 0.7811 GB, free: 146.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003098/1.349, allocations: 191.7 kB / 0.7813 GB, free: 146 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000692/1.35, allocations: 157.7 kB / 0.7814 GB, free: 145.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003364/1.35, allocations: 68.92 kB / 0.7815 GB, free: 145.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006034/1.356, allocations: 3.128 MB / 0.7846 GB, free: 142.6 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.11e-07/1.356, allocations: 0 / 0.7846 GB, free: 142.6 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00909/1.365, allocations: 1.376 MB / 0.7859 GB, free: 141.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.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 (212): * Single equations (assignments): 207 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01612/1.381, allocations: 10.74 MB / 0.7964 GB, free: 130.4 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01709/1.398, allocations: 10.84 MB / 0.807 GB, free: 119.6 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/1.398, allocations: 4.188 kB / 0.807 GB, free: 119.6 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005828/1.404, allocations: 3.252 MB / 0.8102 GB, free: 116.4 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007319/1.412, allocations: 0.6484 MB / 0.8108 GB, free: 115.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1066/1.518, allocations: 73 MB / 0.8821 GB, free: 33.73 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005407/1.524, allocations: 4.194 MB / 0.8862 GB, free: 29.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005475/1.529, allocations: 2.305 MB / 0.8884 GB, free: 27.19 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004148/1.533, allocations: 2.6 MB / 0.891 GB, free: 24.59 MB / 0.545 GB Notification: Performance of SimCode: time 1.142e-06/1.533, allocations: 0 / 0.891 GB, free: 24.59 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4374/1.971, allocations: 105.4 MB / 0.9939 GB, free: 128 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/14.54, allocations: 4.062 kB / 0.9939 GB, free: 128 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe 2>&1)