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.001345/0.001345, allocations: 117.6 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001471/0.001471, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 247 MB, free: 10.48 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.2129/0.2129, allocations: 46.11 MB / 344.3 MB, free: 11.49 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.003674/0.003674, allocations: 83.84 kB / 480.9 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3239, allocations: 62.44 MB / 0.5306 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3): time 0.01509/0.3391, allocations: 13.66 MB / 0.5439 GB, free: 2.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01072/0.3499, allocations: 4.728 MB / 0.5486 GB, free: 14.95 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002816/0.3527, allocations: 90.31 kB / 0.5487 GB, free: 14.94 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00815/0.3609, allocations: 4.454 MB / 0.553 GB, free: 10.76 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006442/0.3674, allocations: 2.206 MB / 0.5552 GB, free: 8.547 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002811/0.3702, allocations: 1.146 MB / 0.5563 GB, free: 7.398 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00992/0.3802, allocations: 6.35 MB / 0.5625 GB, free: 1.031 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007118/0.3873, allocations: 5.538 MB / 0.5679 GB, free: 11.43 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004296/0.3917, allocations: 2.235 MB / 0.5701 GB, free: 9.188 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004694/0.3964, allocations: 2.936 MB / 0.5729 GB, free: 6.242 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001338/0.3978, allocations: 500 kB / 0.5734 GB, free: 5.754 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003337/0.4011, allocations: 1.498 MB / 0.5749 GB, free: 4.254 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003119/0.4042, allocations: 2.677 MB / 0.5775 GB, free: 1.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004463/0.4087, allocations: 3.131 MB / 0.5805 GB, free: 14.42 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0118/0.4206, allocations: 9.872 MB / 0.5902 GB, free: 4.512 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.4206, allocations: 0 / 0.5902 GB, free: 4.512 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4206, allocations: 0 / 0.5902 GB, free: 4.512 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003448/0.421, allocations: 0 / 0.5902 GB, free: 4.512 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: 1985 * Number of variables: 1985 Notification: Performance of Generate backend data structure: time 0.01755/0.4385, allocations: 7.033 MB / 0.5971 GB, free: 13.39 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.4386, allocations: 12.03 kB / 0.5971 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001649/0.4403, allocations: 0.9464 MB / 0.598 GB, free: 12.42 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03832/0.4786, allocations: 6.097 MB / 0.6039 GB, free: 6.309 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009621/0.4882, allocations: 4.298 MB / 0.6081 GB, free: 1.953 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003108/0.4886, allocations: 333 kB / 0.6085 GB, free: 1.625 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001476/0.4901, allocations: 451.7 kB / 0.6089 GB, free: 1.184 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02538/0.5155, allocations: 13.86 MB / 0.6224 GB, free: 2.504 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001625/0.5157, allocations: 63.56 kB / 0.6225 GB, free: 2.441 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005674/0.5162, allocations: 207.8 kB / 0.6227 GB, free: 2.238 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004539/0.5208, allocations: 2.539 MB / 0.6252 GB, free: 15.7 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02532/0.5461, allocations: 11.88 MB / 0.6368 GB, free: 3.801 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06718/0.6134, allocations: 51.36 MB / 0.6869 GB, free: 15.12 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01635/0.6298, allocations: 6.118 MB / 0.6929 GB, free: 8.855 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005221/0.635, allocations: 3.748 MB / 0.6966 GB, free: 5.098 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02051/0.6556, allocations: 12.82 MB / 0.7091 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.854e-05/0.6557, allocations: 56.56 kB / 0.7091 GB, free: 8.051 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=228): time 6.031e-06/0.6557, allocations: 4 kB / 0.7091 GB, free: 8.047 MB / 0.5606 GB Notification: Performance of matching and sorting (n=270): time 0.3446/1, allocations: 27.96 MB / 0.7364 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.64e-05/1, allocations: 205.4 kB / 0.7366 GB, free: 159 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005544/1.006, allocations: 4.979 MB / 0.7415 GB, free: 156.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005558/1.006, allocations: 67.64 kB / 0.7416 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001696/1.008, allocations: 3.988 MB / 0.7455 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009979/1.009, allocations: 1.062 MB / 0.7465 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001682/1.011, allocations: 1.449 MB / 0.7479 GB, free: 151 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.918e-05/1.011, allocations: 301.1 kB / 0.7482 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003483/1.014, allocations: 3.071 MB / 0.7512 GB, free: 147.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004605/1.019, allocations: 7.112 MB / 0.7581 GB, free: 138.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009218/1.028, allocations: 11.02 MB / 0.7689 GB, free: 125.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.329e-05/1.028, allocations: 40 kB / 0.7689 GB, free: 125.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=922) (initialization): time 0.0167/1.045, allocations: 11.54 MB / 0.7802 GB, free: 114 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.659e-05/1.045, allocations: 68 kB / 0.7803 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000113/1.045, allocations: 144.2 kB / 0.7804 GB, free: 113.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003901/1.049, allocations: 1.73 MB / 0.7821 GB, free: 112 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005278/1.055, allocations: 1.634 MB / 0.7837 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01269/1.067, allocations: 12.85 MB / 0.7962 GB, free: 97.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005519/1.073, allocations: 423.3 kB / 0.7966 GB, free: 96.87 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008651/1.074, allocations: 423.9 kB / 0.7971 GB, free: 96.45 MB / 0.5606 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.003582/1.077, allocations: 2.685 MB / 0.7997 GB, free: 93.76 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008248/1.078, allocations: 476.8 kB / 0.8001 GB, free: 93.29 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008869/1.087, allocations: 6.263 MB / 0.8062 GB, free: 87 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.581e-05/1.087, allocations: 31.75 kB / 0.8063 GB, free: 86.97 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/1.087, allocations: 11.98 kB / 0.8063 GB, free: 86.96 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-05/1.087, allocations: 11.95 kB / 0.8063 GB, free: 86.95 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01864/1.106, allocations: 13.4 MB / 0.8194 GB, free: 73.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.77e-05/1.106, allocations: 0 / 0.8194 GB, free: 73.55 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002118/1.108, allocations: 455.3 kB / 0.8198 GB, free: 73.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003497/1.112, allocations: 1.527 MB / 0.8213 GB, free: 71.57 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003415/1.112, allocations: 55.52 kB / 0.8214 GB, free: 71.52 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01242/1.124, allocations: 12.23 MB / 0.8333 GB, free: 59.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.124, allocations: 4 kB / 0.8333 GB, free: 59.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01267/1.137, allocations: 10.11 MB / 0.8432 GB, free: 48.84 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/1.138, allocations: 0.5134 MB / 0.8437 GB, free: 48.31 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008641/1.139, allocations: 44 kB / 0.8437 GB, free: 48.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002305/1.141, allocations: 187.7 kB / 0.8439 GB, free: 48.08 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005196/1.142, allocations: 157.8 kB / 0.8441 GB, free: 47.93 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000197/1.142, allocations: 64 kB / 0.8441 GB, free: 47.86 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004018/1.146, allocations: 3.131 MB / 0.8472 GB, free: 44.74 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.8e-07/1.146, allocations: 0 / 0.8472 GB, free: 44.74 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005946/1.152, allocations: 1.379 MB / 0.8485 GB, free: 43.36 MB / 0.5606 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.01366/1.166, allocations: 10.78 MB / 0.859 GB, free: 32.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01003/1.176, allocations: 7.659 MB / 0.8665 GB, free: 24.85 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.86e-05/1.176, allocations: 4 kB / 0.8665 GB, free: 24.84 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.004725/1.181, allocations: 3.247 MB / 0.8697 GB, free: 21.56 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004241/1.185, allocations: 0.6567 MB / 0.8703 GB, free: 20.92 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09959/1.285, allocations: 62.66 MB / 0.9315 GB, free: 15.66 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007855/1.293, allocations: 4.179 MB / 0.9356 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.006597/1.299, allocations: 2.313 MB / 0.9379 GB, free: 9.133 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005176/1.304, allocations: 2.596 MB / 0.9404 GB, free: 6.535 MB / 0.6231 GB Notification: Performance of SimCode: time 1.573e-06/1.304, allocations: 4 kB / 0.9404 GB, free: 6.531 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4002/1.705, allocations: 101.2 MB / 1.039 GB, free: 165.8 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.18/22.88, allocations: 15.5 kB / 1.039 GB, free: 165.8 MB / 0.6387 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)