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.001623/0.001623, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001939/0.001939, allocations: 200.7 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.534/1.534, allocations: 227.4 MB / 247 MB, free: 10.45 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.2408/0.2408, allocations: 46.12 MB / 344.4 MB, free: 11.44 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.0022/0.0022, allocations: 83.81 kB / 480.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3809/0.3832, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.01413/0.3973, allocations: 10.81 MB / 0.5412 GB, free: 4.895 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009153/0.4065, allocations: 3.618 MB / 0.5447 GB, free: 2.043 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002022/0.4086, allocations: 60.84 kB / 0.5448 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006768/0.4154, allocations: 3.241 MB / 0.5479 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002598/0.418, allocations: 0.788 MB / 0.5487 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002199/0.4203, allocations: 0.8226 MB / 0.5495 GB, free: 14.3 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003016/0.4233, allocations: 2.057 MB / 0.5515 GB, free: 12.24 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004907/0.4282, allocations: 4.009 MB / 0.5554 GB, free: 8.176 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001927/0.4301, allocations: 1.27 MB / 0.5567 GB, free: 6.902 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002426/0.4326, allocations: 1.683 MB / 0.5583 GB, free: 5.215 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006032/0.4332, allocations: 352 kB / 0.5586 GB, free: 4.871 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002111/0.4353, allocations: 1.042 MB / 0.5597 GB, free: 3.828 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001582/0.4369, allocations: 1.524 MB / 0.5611 GB, free: 2.301 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001989/0.4389, allocations: 1.756 MB / 0.5629 GB, free: 0.5352 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007072/0.446, allocations: 5.854 MB / 0.5686 GB, free: 10.66 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.446, allocations: 0 / 0.5686 GB, free: 10.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.446, allocations: 0 / 0.5686 GB, free: 10.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001285/0.4462, allocations: 0 / 0.5686 GB, free: 10.66 MB / 430.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.009623/0.4558, allocations: 3.973 MB / 0.5725 GB, free: 6.617 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.4559, allocations: 8.031 kB / 0.5725 GB, free: 6.609 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008259/0.4567, allocations: 0.5488 MB / 0.573 GB, free: 6.051 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002347/0.4591, allocations: 0.6035 MB / 0.5736 GB, free: 5.445 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003583/0.4627, allocations: 1.833 MB / 0.5754 GB, free: 3.562 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001748/0.4628, allocations: 205.4 kB / 0.5756 GB, free: 3.359 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004902/0.4633, allocations: 271.9 kB / 0.5758 GB, free: 3.094 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01694/0.4803, allocations: 8.164 MB / 0.5838 GB, free: 10.58 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.006e-05/0.4804, allocations: 15.88 kB / 0.5838 GB, free: 10.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003203/0.4807, allocations: 131.9 kB / 0.584 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001656/0.4824, allocations: 1.126 MB / 0.5851 GB, free: 9.305 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01647/0.4989, allocations: 6.947 MB / 0.5918 GB, free: 2.344 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03809/0.537, allocations: 24.68 MB / 0.6159 GB, free: 9.082 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007724/0.5448, allocations: 2.284 MB / 0.6182 GB, free: 6.789 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001708/0.5465, allocations: 1.089 MB / 0.6192 GB, free: 5.699 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01033/0.5569, allocations: 7.194 MB / 0.6263 GB, free: 13.92 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.557, allocations: 43.22 kB / 0.6263 GB, free: 13.87 MB / 494.1 MB Notification: Performance of pre-optimization done (n=80): time 3.526e-06/0.557, allocations: 0 / 0.6263 GB, free: 13.87 MB / 494.1 MB Notification: Performance of matching and sorting (n=96): time 0.01789/0.5749, allocations: 5.456 MB / 0.6316 GB, free: 8.398 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.254e-05/0.575, allocations: 64.41 kB / 0.6317 GB, free: 8.324 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003567/0.5785, allocations: 2.4 MB / 0.634 GB, free: 5.895 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001265/0.5787, allocations: 45.69 kB / 0.6341 GB, free: 5.844 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001825/0.5805, allocations: 2.145 MB / 0.6362 GB, free: 3.676 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004357/0.581, allocations: 397 kB / 0.6365 GB, free: 3.285 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001024/0.582, allocations: 0.7187 MB / 0.6372 GB, free: 2.559 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.5822, allocations: 301.1 kB / 0.6375 GB, free: 2.262 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/0.5839, allocations: 1.038 MB / 0.6385 GB, free: 1.223 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003693/0.5876, allocations: 3.189 MB / 0.6417 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00599/0.5936, allocations: 4.573 MB / 0.6461 GB, free: 7.312 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.069e-05/0.5937, allocations: 20 kB / 0.6461 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of matching and sorting (n=452) (initialization): time 0.007059/0.6008, allocations: 4.131 MB / 0.6502 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.323e-05/0.6009, allocations: 43.94 kB / 0.6502 GB, free: 3.109 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.249e-05/0.601, allocations: 76 kB / 0.6503 GB, free: 3.035 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001071/0.6011, allocations: 100 kB / 0.6504 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002482/0.6036, allocations: 0.8422 MB / 0.6512 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001414/0.6037, allocations: 147.9 kB / 0.6514 GB, free: 1.949 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002044/0.6058, allocations: 179.9 kB / 0.6515 GB, free: 1.773 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002746/0.606, allocations: 212 kB / 0.6517 GB, free: 1.566 MB / 0.4981 GB 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.002282/0.6083, allocations: 1.434 MB / 0.6531 GB, free: 120 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003631/0.6087, allocations: 226.5 kB / 0.6533 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002473/0.6112, allocations: 1.414 MB / 0.6547 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.6112, allocations: 8 kB / 0.6547 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.6112, allocations: 0 / 0.6547 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.6112, allocations: 3.984 kB / 0.6547 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00847/0.6197, allocations: 5.287 MB / 0.6599 GB, free: 8.871 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.801e-05/0.6198, allocations: 16 kB / 0.6599 GB, free: 8.855 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007454/0.6205, allocations: 219.6 kB / 0.6601 GB, free: 8.641 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.023e-05/0.6206, allocations: 20.75 kB / 0.6601 GB, free: 8.621 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.651e-05/0.6206, allocations: 36 kB / 0.6602 GB, free: 8.586 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.48e-05/0.6207, allocations: 35.86 kB / 0.6602 GB, free: 8.551 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-05/0.6207, allocations: 23.88 kB / 0.6602 GB, free: 8.527 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002353/0.6231, allocations: 1.762 MB / 0.662 GB, free: 6.551 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005509/0.6236, allocations: 303.6 kB / 0.6622 GB, free: 6.234 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002113/0.6238, allocations: 43.98 kB / 0.6623 GB, free: 6.191 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006763/0.6245, allocations: 43.98 kB / 0.6623 GB, free: 6.148 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.6247, allocations: 124 kB / 0.6624 GB, free: 6.027 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.506e-05/0.6248, allocations: 52 kB / 0.6625 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002376/0.6272, allocations: 1.525 MB / 0.664 GB, free: 4.438 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6272, allocations: 0 / 0.664 GB, free: 4.438 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002807/0.63, allocations: 0.5937 MB / 0.6646 GB, free: 3.844 MB / 0.5137 GB 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.003079/0.6331, allocations: 2.391 MB / 0.6669 GB, free: 1.227 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004173/0.6373, allocations: 2.4 MB / 0.6692 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.49e-05/0.6373, allocations: 4 kB / 0.6693 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008758/0.6382, allocations: 0.5659 MB / 0.6698 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00183/0.64, allocations: 353.5 kB / 0.6701 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03954/0.6796, allocations: 25.48 MB / 0.695 GB, free: 1.379 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002896/0.6825, allocations: 2.462 MB / 0.6974 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00237/0.6849, allocations: 0.9532 MB / 0.6984 GB, free: 13.93 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001695/0.6866, allocations: 1.237 MB / 0.6996 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of SimCode: time 1.432e-06/0.6866, allocations: 0 / 0.6996 GB, free: 12.69 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3831/1.07, allocations: 43.65 MB / 0.7422 GB, free: 181.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.96/15.03, allocations: 2.969 kB / 0.7422 GB, free: 181.1 MB / 0.5762 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)