Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.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.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001369/0.001369, allocations: 122.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.001557/0.001557, allocations: 202 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.435/1.435, allocations: 227.4 MB / 247 MB, free: 10.42 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.2578/0.2578, allocations: 46.12 MB / 344.4 MB, free: 11.45 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.002255/0.002255, allocations: 75.88 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3262, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2): time 0.01645/0.3427, allocations: 13.99 MB / 0.5443 GB, free: 2.402 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.3537, allocations: 4.774 MB / 0.5489 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002927/0.3566, allocations: 91.78 kB / 0.549 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008449/0.3651, allocations: 4.475 MB / 0.5534 GB, free: 10.34 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006769/0.372, allocations: 2.233 MB / 0.5556 GB, free: 8.102 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002968/0.3749, allocations: 1.131 MB / 0.5567 GB, free: 6.969 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01006/0.385, allocations: 6.401 MB / 0.5629 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007258/0.3923, allocations: 5.449 MB / 0.5683 GB, free: 11.04 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004459/0.3968, allocations: 2.196 MB / 0.5704 GB, free: 8.836 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005067/0.4019, allocations: 2.971 MB / 0.5733 GB, free: 5.855 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001955/0.4039, allocations: 496 kB / 0.5738 GB, free: 5.371 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003937/0.4079, allocations: 1.502 MB / 0.5752 GB, free: 3.867 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003961/0.4119, allocations: 2.743 MB / 0.5779 GB, free: 1.117 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00555/0.4175, allocations: 3.174 MB / 0.581 GB, free: 13.92 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01365/0.4311, allocations: 9.992 MB / 0.5908 GB, free: 3.895 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.4312, allocations: 0 / 0.5908 GB, free: 3.895 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.4312, allocations: 0 / 0.5908 GB, free: 3.895 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000276/0.4315, allocations: 0 / 0.5908 GB, free: 3.895 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: 2021 * Number of variables: 2021 Notification: Performance of Generate backend data structure: time 0.01822/0.4497, allocations: 7.158 MB / 0.5978 GB, free: 12.64 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.4498, allocations: 11.97 kB / 0.5978 GB, free: 12.63 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002408/0.4522, allocations: 0.959 MB / 0.5987 GB, free: 11.66 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04035/0.4925, allocations: 6.14 MB / 0.6047 GB, free: 5.512 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009092/0.5017, allocations: 4.322 MB / 0.6089 GB, free: 1.133 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003281/0.502, allocations: 336.8 kB / 0.6092 GB, free: 0.8008 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001367/0.5034, allocations: 459.7 kB / 0.6097 GB, free: 360 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0275/0.5309, allocations: 13.85 MB / 0.6232 GB, free: 1.594 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002065/0.5312, allocations: 67.45 kB / 0.6233 GB, free: 1.527 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008655/0.5321, allocations: 215.8 kB / 0.6235 GB, free: 1.316 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004812/0.5369, allocations: 2.539 MB / 0.626 GB, free: 14.77 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02604/0.5629, allocations: 11.75 MB / 0.6374 GB, free: 3.012 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0692/0.6322, allocations: 52.9 MB / 0.6891 GB, free: 12.73 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01765/0.6499, allocations: 6.377 MB / 0.6953 GB, free: 6.203 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004722/0.6547, allocations: 3.467 MB / 0.6987 GB, free: 2.73 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001628/0.6549, allocations: 49.23 kB / 0.6988 GB, free: 2.684 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.077e-05/0.6549, allocations: 63.75 kB / 0.6988 GB, free: 2.609 MB / 0.545 GB Notification: Performance of pre-optimization done (n=218): time 5.25e-06/0.655, allocations: 0 / 0.6988 GB, free: 2.609 MB / 0.545 GB Notification: Performance of matching and sorting (n=260): time 0.3233/0.9783, allocations: 29.78 MB / 0.7279 GB, free: 159.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.947e-05/0.9784, allocations: 213 kB / 0.7281 GB, free: 159 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01003/0.9884, allocations: 5.986 MB / 0.734 GB, free: 157 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006509/0.9891, allocations: 61.45 kB / 0.734 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002661/0.9918, allocations: 4.186 MB / 0.7381 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001361/0.9932, allocations: 1.03 MB / 0.7391 GB, free: 153.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002679/0.9959, allocations: 1.552 MB / 0.7406 GB, free: 152.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.008e-05/0.996, allocations: 304.8 kB / 0.7409 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004052/1, allocations: 3.251 MB / 0.7441 GB, free: 151.3 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005751/1.006, allocations: 7.649 MB / 0.7516 GB, free: 144.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/1.016, allocations: 11.78 MB / 0.7631 GB, free: 130.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001351/1.016, allocations: 44 kB / 0.7631 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=974) (initialization): time 0.02026/1.037, allocations: 12.26 MB / 0.7751 GB, free: 118.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000111/1.037, allocations: 72 kB / 0.7751 GB, free: 118.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001836/1.037, allocations: 152 kB / 0.7753 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004066/1.041, allocations: 1.758 MB / 0.777 GB, free: 116.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005677/1.047, allocations: 1.751 MB / 0.7787 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01297/1.06, allocations: 12.89 MB / 0.7913 GB, free: 101.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006438/1.066, allocations: 463.4 kB / 0.7918 GB, free: 101.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001235/1.067, allocations: 455.9 kB / 0.7922 GB, free: 100.7 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 703 * Number of states: 0 () * Number of discrete variables: 62 (frameTorque2.torqueArrow.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.forceArrow.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque1.torqueArrow.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.forceArrow.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,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],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[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 (902): * Single equations (assignments): 897 * 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.00473/1.072, allocations: 2.762 MB / 0.7949 GB, free: 97.89 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001395/1.074, allocations: 0.5277 MB / 0.7954 GB, free: 97.36 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/1.084, allocations: 6.386 MB / 0.8016 GB, free: 90.94 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.54e-05/1.085, allocations: 28 kB / 0.8017 GB, free: 90.91 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.851e-05/1.085, allocations: 8 kB / 0.8017 GB, free: 90.91 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-05/1.085, allocations: 11.95 kB / 0.8017 GB, free: 90.89 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02466/1.109, allocations: 13.65 MB / 0.815 GB, free: 77.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.511e-05/1.109, allocations: 4 kB / 0.815 GB, free: 77.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002261/1.112, allocations: 443.3 kB / 0.8154 GB, free: 76.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003818/1.115, allocations: 1.53 MB / 0.8169 GB, free: 75.27 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005483/1.116, allocations: 43.94 kB / 0.817 GB, free: 75.22 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01314/1.129, allocations: 12.18 MB / 0.8289 GB, free: 62.78 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/1.129, allocations: 4 kB / 0.8289 GB, free: 62.77 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01517/1.144, allocations: 10.42 MB / 0.8391 GB, free: 52.27 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001807/1.146, allocations: 0.595 MB / 0.8396 GB, free: 51.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001882/1.148, allocations: 47.94 kB / 0.8397 GB, free: 51.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003451/1.152, allocations: 211.4 kB / 0.8399 GB, free: 51.41 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007636/1.152, allocations: 151.5 kB / 0.84 GB, free: 51.26 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004296/1.153, allocations: 67.98 kB / 0.8401 GB, free: 51.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00627/1.159, allocations: 3.815 MB / 0.8438 GB, free: 47.41 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.61e-07/1.159, allocations: 0 / 0.8438 GB, free: 47.41 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007392/1.167, allocations: 1.43 MB / 0.8452 GB, free: 45.98 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 (202): * Single equations (assignments): 197 * 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.01453/1.181, allocations: 11.1 MB / 0.856 GB, free: 34.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01047/1.192, allocations: 8.028 MB / 0.8639 GB, free: 26.78 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/1.192, allocations: 0 / 0.8639 GB, free: 26.78 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005052/1.197, allocations: 3.282 MB / 0.8671 GB, free: 23.47 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005692/1.203, allocations: 0.6958 MB / 0.8678 GB, free: 22.79 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1218/1.324, allocations: 68.86 MB / 0.935 GB, free: 11.19 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008159/1.333, allocations: 4.246 MB / 0.9392 GB, free: 6.914 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.007284/1.34, allocations: 2.551 MB / 0.9417 GB, free: 4.355 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00553/1.345, allocations: 2.682 MB / 0.9443 GB, free: 1.672 MB / 0.6231 GB Notification: Performance of SimCode: time 1.353e-06/1.345, allocations: 0 / 0.9443 GB, free: 1.672 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4055/1.751, allocations: 108.3 MB / 1.05 GB, free: 152.8 MB / 0.6388 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.32/26.07, allocations: 12 kB / 1.05 GB, free: 152.7 MB / 0.6388 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1)