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.001895/0.001895, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002663/0.002663, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 227.4 MB / 246.8 MB, free: 10.51 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.2207/0.2207, allocations: 46.1 MB / 344.2 MB, free: 11.52 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.002424/0.002424, allocations: 80.77 kB / 417.8 MB, free: 19.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1141, allocations: 62.46 MB / 480.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.01509/0.1293, allocations: 10.81 MB / 491 MB, free: 10.24 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007612/0.1369, allocations: 3.622 MB / 494.6 MB, free: 6.613 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001587/0.1385, allocations: 59.88 kB / 494.7 MB, free: 6.555 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006184/0.1448, allocations: 3.244 MB / 498 MB, free: 3.301 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002162/0.147, allocations: 0.7812 MB / 498.7 MB, free: 2.516 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002168/0.1491, allocations: 0.8226 MB / 499.6 MB, free: 1.691 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002877/0.152, allocations: 2.054 MB / 0.4899 GB, free: 15.63 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005622/0.1577, allocations: 4.007 MB / 0.4938 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002511/0.1602, allocations: 1.278 MB / 0.495 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003127/0.1634, allocations: 1.679 MB / 0.4967 GB, free: 8.598 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001013/0.1644, allocations: 348 kB / 0.497 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002481/0.1669, allocations: 1.053 MB / 0.498 GB, free: 7.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002141/0.169, allocations: 1.516 MB / 0.4995 GB, free: 5.684 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003247/0.1723, allocations: 1.76 MB / 0.5012 GB, free: 3.914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.208/0.3804, allocations: 5.704 MB / 0.5068 GB, free: 20.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.3804, allocations: 0 / 0.5068 GB, free: 20.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3804, allocations: 0 / 0.5068 GB, free: 20.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001571/0.3806, allocations: 0 / 0.5068 GB, free: 20.71 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.009346/0.3899, allocations: 3.887 MB / 0.5106 GB, free: 19.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.39, allocations: 11.66 kB / 0.5106 GB, free: 19.36 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007858/0.3908, allocations: 0.5412 MB / 0.5111 GB, free: 19.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002361/0.3932, allocations: 0.5814 MB / 0.5117 GB, free: 19.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003106/0.3963, allocations: 1.795 MB / 0.5134 GB, free: 18.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.3964, allocations: 210.9 kB / 0.5136 GB, free: 18.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004471/0.3969, allocations: 277.1 kB / 0.5139 GB, free: 18.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01488/0.4117, allocations: 8.171 MB / 0.5219 GB, free: 16.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.414e-05/0.4118, allocations: 17.67 kB / 0.5219 GB, free: 16.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003235/0.4122, allocations: 123.7 kB / 0.522 GB, free: 16.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001455/0.4136, allocations: 1.13 MB / 0.5231 GB, free: 16.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01347/0.4271, allocations: 6.953 MB / 0.5299 GB, free: 14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.032/0.4591, allocations: 24.77 MB / 0.5541 GB, free: 8.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007941/0.4671, allocations: 2.274 MB / 0.5563 GB, free: 6.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001699/0.4689, allocations: 1.081 MB / 0.5574 GB, free: 5.223 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01104/0.4799, allocations: 7.198 MB / 0.5644 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.712e-05/0.48, allocations: 43.22 kB / 0.5644 GB, free: 13.45 MB / 414.1 MB Notification: Performance of pre-optimization done (n=80): time 3.687e-06/0.48, allocations: 4 kB / 0.5644 GB, free: 13.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=96): time 0.01858/0.4986, allocations: 5.398 MB / 0.5697 GB, free: 8.059 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/0.4987, allocations: 65.94 kB / 0.5698 GB, free: 7.984 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003876/0.5026, allocations: 2.391 MB / 0.5721 GB, free: 5.566 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.5027, allocations: 43.23 kB / 0.5722 GB, free: 5.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001785/0.5045, allocations: 2.072 MB / 0.5742 GB, free: 3.465 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004105/0.5049, allocations: 378.1 kB / 0.5745 GB, free: 3.098 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001058/0.506, allocations: 0.7181 MB / 0.5752 GB, free: 2.371 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.5062, allocations: 305.1 kB / 0.5755 GB, free: 2.07 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00172/0.5079, allocations: 1.026 MB / 0.5765 GB, free: 1.043 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00356/0.5115, allocations: 3.188 MB / 0.5797 GB, free: 12.82 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005644/0.5171, allocations: 4.573 MB / 0.5841 GB, free: 7.488 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.67e-05/0.5172, allocations: 24 kB / 0.5841 GB, free: 7.465 MB / 430.1 MB Notification: Performance of matching and sorting (n=452) (initialization): time 0.006601/0.5238, allocations: 4.112 MB / 0.5882 GB, free: 3.801 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.992e-05/0.5239, allocations: 39.94 kB / 0.5882 GB, free: 3.762 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001005/0.524, allocations: 76.88 kB / 0.5883 GB, free: 3.688 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001268/0.5241, allocations: 108 kB / 0.5884 GB, free: 3.582 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002488/0.5266, allocations: 0.8398 MB / 0.5892 GB, free: 2.816 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001399/0.5268, allocations: 152.3 kB / 0.5893 GB, free: 2.699 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001979/0.5287, allocations: 183.6 kB / 0.5895 GB, free: 2.523 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002922/0.529, allocations: 208 kB / 0.5897 GB, free: 2.32 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.00224/0.5313, allocations: 1.432 MB / 0.5911 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003636/0.5317, allocations: 209.3 kB / 0.5913 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002463/0.5341, allocations: 1.414 MB / 0.5927 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.5342, allocations: 12 kB / 0.5927 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.5342, allocations: 0 / 0.5927 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/0.5342, allocations: 11.97 kB / 0.5927 GB, free: 15.26 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008694/0.5429, allocations: 5.275 MB / 0.5979 GB, free: 9.711 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.372e-05/0.543, allocations: 16.88 kB / 0.5979 GB, free: 9.695 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007853/0.5437, allocations: 215.7 kB / 0.5981 GB, free: 9.484 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.716e-05/0.5438, allocations: 20 kB / 0.5981 GB, free: 9.465 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.521e-05/0.5439, allocations: 40 kB / 0.5981 GB, free: 9.426 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.997e-05/0.5439, allocations: 31.86 kB / 0.5982 GB, free: 9.395 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-05/0.5439, allocations: 23.88 kB / 0.5982 GB, free: 9.371 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002457/0.5464, allocations: 1.751 MB / 0.5999 GB, free: 7.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006027/0.547, allocations: 296.5 kB / 0.6002 GB, free: 7.102 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003462/0.5474, allocations: 39.98 kB / 0.6002 GB, free: 7.062 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008017/0.5482, allocations: 47.97 kB / 0.6003 GB, free: 7.016 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.5484, allocations: 120 kB / 0.6004 GB, free: 6.895 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.864e-05/0.5485, allocations: 55.83 kB / 0.6004 GB, free: 6.844 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002542/0.551, allocations: 1.525 MB / 0.6019 GB, free: 5.305 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.551, allocations: 0 / 0.6019 GB, free: 5.305 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002946/0.554, allocations: 0.5898 MB / 0.6025 GB, free: 4.715 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.003019/0.557, allocations: 2.386 MB / 0.6048 GB, free: 2.105 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004545/0.5616, allocations: 2.608 MB / 0.6074 GB, free: 15.52 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.225e-06/0.5616, allocations: 4.25 kB / 0.6074 GB, free: 15.51 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008399/0.5624, allocations: 0.5641 MB / 0.6079 GB, free: 14.95 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002043/0.5645, allocations: 355.8 kB / 0.6083 GB, free: 14.61 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04411/0.6086, allocations: 27.85 MB / 0.6355 GB, free: 14.62 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003989/0.6126, allocations: 2.458 MB / 0.6379 GB, free: 12.13 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002842/0.6155, allocations: 0.9557 MB / 0.6388 GB, free: 11.17 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001904/0.6174, allocations: 1.237 MB / 0.64 GB, free: 9.93 MB / 494.1 MB Notification: Performance of SimCode: time 8.81e-07/0.6174, allocations: 0 / 0.64 GB, free: 9.93 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09349/0.7109, allocations: 44.19 MB / 0.6832 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.236/9.947, allocations: 12.86 kB / 0.6832 GB, free: 13.94 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSR_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1)