Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSR.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.Joints.JointUSR,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001409/0.001409, 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.001597/0.001597, 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.448/1.448, allocations: 227.4 MB / 246.8 MB, free: 10.59 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.2241/0.2241, allocations: 46.11 MB / 344.2 MB, free: 11.57 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.003513/0.003513, allocations: 79.84 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.137, allocations: 62.44 MB / 480.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.01385/0.1509, allocations: 10.81 MB / 491 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007941/0.1589, allocations: 3.63 MB / 494.6 MB, free: 6.641 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00164/0.1606, allocations: 59.88 kB / 494.7 MB, free: 6.582 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006407/0.167, allocations: 3.24 MB / 497.9 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002315/0.1694, allocations: 0.7813 MB / 498.7 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002228/0.1716, allocations: 0.8187 MB / 499.5 MB, free: 1.727 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003187/0.1748, allocations: 2.061 MB / 0.4899 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005584/0.1804, allocations: 4.011 MB / 0.4938 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002191/0.1827, allocations: 1.27 MB / 0.495 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002753/0.1854, allocations: 1.679 MB / 0.4966 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00104/0.1865, allocations: 356 kB / 0.497 GB, free: 8.285 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002491/0.189, allocations: 1.046 MB / 0.498 GB, free: 7.238 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00207/0.1911, allocations: 1.524 MB / 0.4995 GB, free: 5.711 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002994/0.1941, allocations: 1.753 MB / 0.5012 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2147/0.4088, allocations: 5.704 MB / 0.5068 GB, free: 20.73 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.725e-06/0.4089, allocations: 1.609 kB / 0.5068 GB, free: 20.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4089, allocations: 0 / 0.5068 GB, free: 20.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001578/0.409, allocations: 0 / 0.5068 GB, free: 20.73 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: 1088 * Number of variables: 1088 Notification: Performance of Generate backend data structure: time 0.009309/0.4184, allocations: 3.888 MB / 0.5106 GB, free: 19.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.846e-05/0.4184, allocations: 10.11 kB / 0.5106 GB, free: 19.38 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001049/0.4195, allocations: 0.5402 MB / 0.5111 GB, free: 19.32 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002563/0.4221, allocations: 0.5851 MB / 0.5117 GB, free: 19.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003452/0.4255, allocations: 1.791 MB / 0.5134 GB, free: 18.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001403/0.4257, allocations: 217.4 kB / 0.5136 GB, free: 18.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005343/0.4262, allocations: 273.4 kB / 0.5139 GB, free: 18.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01586/0.4421, allocations: 8.172 MB / 0.5219 GB, free: 16.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-05/0.4422, allocations: 14.16 kB / 0.5219 GB, free: 16.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003723/0.4426, allocations: 123.6 kB / 0.522 GB, free: 16.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001504/0.4441, allocations: 1.133 MB / 0.5231 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01381/0.4579, allocations: 6.945 MB / 0.5299 GB, free: 14.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03172/0.4897, allocations: 24.77 MB / 0.5541 GB, free: 8.625 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00811/0.4978, allocations: 2.279 MB / 0.5563 GB, free: 6.344 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00184/0.4997, allocations: 1.087 MB / 0.5574 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01141/0.5112, allocations: 7.182 MB / 0.5644 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.105e-05/0.5112, allocations: 43.22 kB / 0.5644 GB, free: 13.49 MB / 414.1 MB Notification: Performance of pre-optimization done (n=80): time 3.156e-06/0.5112, allocations: 0 / 0.5644 GB, free: 13.49 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.01859/0.5298, allocations: 5.406 MB / 0.5697 GB, free: 8.098 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/0.5299, allocations: 64.41 kB / 0.5698 GB, free: 8.023 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003739/0.5337, allocations: 2.397 MB / 0.5721 GB, free: 5.602 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001207/0.5338, allocations: 41.7 kB / 0.5722 GB, free: 5.555 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001694/0.5355, allocations: 2.064 MB / 0.5742 GB, free: 3.504 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004101/0.5359, allocations: 378.7 kB / 0.5745 GB, free: 3.137 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001029/0.537, allocations: 0.7142 MB / 0.5752 GB, free: 2.414 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.5371, allocations: 305.1 kB / 0.5755 GB, free: 2.113 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001784/0.5389, allocations: 1.034 MB / 0.5765 GB, free: 1.078 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003659/0.5426, allocations: 3.189 MB / 0.5796 GB, free: 12.86 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005936/0.5486, allocations: 4.574 MB / 0.5841 GB, free: 7.527 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.033e-05/0.5486, allocations: 20 kB / 0.5841 GB, free: 7.508 MB / 430.1 MB Notification: Performance of matching and sorting (n=452) (initialization): time 0.007543/0.5562, allocations: 4.12 MB / 0.5882 GB, free: 3.836 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.37e-05/0.5563, allocations: 39.94 kB / 0.5882 GB, free: 3.797 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001422/0.5565, allocations: 83.84 kB / 0.5883 GB, free: 3.719 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001441/0.5566, allocations: 100 kB / 0.5884 GB, free: 3.621 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00266/0.5593, allocations: 0.8472 MB / 0.5892 GB, free: 2.848 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001172/0.5594, allocations: 147.7 kB / 0.5893 GB, free: 2.734 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002221/0.5616, allocations: 176.3 kB / 0.5895 GB, free: 2.562 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003007/0.5619, allocations: 208 kB / 0.5897 GB, free: 2.359 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 349 * Number of states: 0 () * Number of discrete variables: 53 (prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,n2_ia.arrowLine.twoHeadedArrow,n2_ia.headAtOrigin,n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,jointUSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (452): * Single equations (assignments): 452 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002268/0.5642, allocations: 1.44 MB / 0.5911 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000341/0.5646, allocations: 209.3 kB / 0.5913 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002543/0.5671, allocations: 1.418 MB / 0.5927 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/0.5672, allocations: 8 kB / 0.5927 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.5672, allocations: 1.125 kB / 0.5927 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.5672, allocations: 3.984 kB / 0.5927 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008941/0.5761, allocations: 5.281 MB / 0.5979 GB, free: 9.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.735e-05/0.5762, allocations: 18.62 kB / 0.5979 GB, free: 9.734 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00076/0.577, allocations: 219.6 kB / 0.5981 GB, free: 9.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-05/0.577, allocations: 20 kB / 0.5981 GB, free: 9.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.938e-05/0.5771, allocations: 36 kB / 0.5981 GB, free: 9.465 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.817e-05/0.5771, allocations: 32.73 kB / 0.5982 GB, free: 9.434 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.669e-05/0.5771, allocations: 19.94 kB / 0.5982 GB, free: 9.414 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002317/0.5794, allocations: 1.752 MB / 0.5999 GB, free: 7.449 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006314/0.5801, allocations: 290.2 kB / 0.6002 GB, free: 7.145 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002558/0.5803, allocations: 43.98 kB / 0.6002 GB, free: 7.102 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007168/0.5811, allocations: 43.98 kB / 0.6003 GB, free: 7.059 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/0.5812, allocations: 128 kB / 0.6004 GB, free: 6.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.365e-05/0.5813, allocations: 51.56 kB / 0.6004 GB, free: 6.883 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002277/0.5836, allocations: 1.525 MB / 0.6019 GB, free: 5.344 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5836, allocations: 0 / 0.6019 GB, free: 5.344 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002833/0.5865, allocations: 0.5937 MB / 0.6025 GB, free: 4.75 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 66 * Number of states: 0 () * 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 (121): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003007/0.5895, allocations: 2.381 MB / 0.6048 GB, free: 2.145 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004729/0.5942, allocations: 2.609 MB / 0.6074 GB, free: 15.55 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.912e-05/0.5943, allocations: 4 kB / 0.6074 GB, free: 15.55 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009807/0.5953, allocations: 0.5648 MB / 0.6079 GB, free: 14.99 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/0.5974, allocations: 358.4 kB / 0.6083 GB, free: 14.65 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04306/0.6405, allocations: 27.85 MB / 0.6355 GB, free: 14.65 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003509/0.644, allocations: 2.45 MB / 0.6379 GB, free: 12.17 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002858/0.6469, allocations: 0.9571 MB / 0.6388 GB, free: 11.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002067/0.649, allocations: 1.233 MB / 0.64 GB, free: 9.969 MB / 494.1 MB Notification: Performance of SimCode: time 9.22e-07/0.649, allocations: 0 / 0.64 GB, free: 9.969 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08959/0.7386, allocations: 44.2 MB / 0.6832 GB, free: 13.98 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.417/10.16, allocations: 3.938 kB / 0.6832 GB, free: 13.97 MB / 0.5294 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSR.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSR.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSR_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1)