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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001169/0.001169, allocations: 105 kB / 19.74 MB, free: 2.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001267/0.001267, allocations: 217.7 kB / 22.92 MB, free: 5.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.284/1.284, allocations: 230.2 MB / 256.2 MB, free: 8.754 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.1947/0.1947, allocations: 46.89 MB / 359.3 MB, free: 4.98 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "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.002073/0.002073, allocations: 83.8 kB / 0.494 GB, free: 9.094 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2621, allocations: 65.98 MB / 0.5584 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSR): time 0.0119/0.274, allocations: 10.89 MB / 0.5691 GB, free: 10.27 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.006061/0.2801, allocations: 3.669 MB / 0.5726 GB, free: 6.594 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006325/0.2807, allocations: 59.88 kB / 0.5727 GB, free: 6.535 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005414/0.2861, allocations: 3.279 MB / 0.5759 GB, free: 3.246 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001499/0.2876, allocations: 0.8242 MB / 0.5767 GB, free: 2.418 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001627/0.2893, allocations: 0.8226 MB / 0.5775 GB, free: 1.594 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002359/0.2916, allocations: 2.057 MB / 0.5795 GB, free: 15.54 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002903/0.2945, allocations: 2.762 MB / 0.5822 GB, free: 12.71 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001487/0.296, allocations: 1.274 MB / 0.5835 GB, free: 11.44 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002171/0.2982, allocations: 1.776 MB / 0.5852 GB, free: 9.656 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004838/0.2987, allocations: 352 kB / 0.5855 GB, free: 9.312 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001741/0.3004, allocations: 1.077 MB / 0.5866 GB, free: 8.234 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00143/0.3018, allocations: 1.551 MB / 0.5881 GB, free: 6.68 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001769/0.3036, allocations: 1.764 MB / 0.5898 GB, free: 4.906 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005878/0.3095, allocations: 5.85 MB / 0.5955 GB, free: 15.04 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3095, allocations: 0 / 0.5955 GB, free: 15.04 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.367e-06/0.3095, allocations: 7.938 kB / 0.5955 GB, free: 15.03 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.174e-05/0.3096, allocations: 0 / 0.5955 GB, free: 15.03 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: 1088 * Number of variables: 1088 Notification: Performance of Generate backend data structure: time 0.007348/0.3169, allocations: 3.973 MB / 0.5994 GB, free: 10.98 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.3169, allocations: 8.031 kB / 0.5994 GB, free: 10.98 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006456/0.3176, allocations: 0.5449 MB / 0.6 GB, free: 10.42 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002132/0.3197, allocations: 0.5956 MB / 0.6005 GB, free: 9.824 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003049/0.3228, allocations: 1.833 MB / 0.6023 GB, free: 7.941 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001603/0.3229, allocations: 213.4 kB / 0.6025 GB, free: 7.73 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004664/0.3234, allocations: 275.9 kB / 0.6028 GB, free: 7.461 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01438/0.3378, allocations: 8.168 MB / 0.6108 GB, free: 14.94 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.454e-05/0.3378, allocations: 15.88 kB / 0.6108 GB, free: 14.93 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002805/0.3381, allocations: 123.9 kB / 0.6109 GB, free: 14.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001568/0.3397, allocations: 1.126 MB / 0.612 GB, free: 13.67 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01387/0.3536, allocations: 6.948 MB / 0.6188 GB, free: 6.711 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02885/0.3824, allocations: 24.68 MB / 0.6429 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007013/0.3894, allocations: 2.179 MB / 0.645 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001321/0.3907, allocations: 0.9642 MB / 0.646 GB, free: 10.29 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008806/0.3995, allocations: 7.198 MB / 0.653 GB, free: 2.504 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/0.3996, allocations: 39.22 kB / 0.653 GB, free: 2.457 MB / 494.1 MB Notification: Performance of pre-optimization done (n=80): time 2.094e-06/0.3996, allocations: 0 / 0.653 GB, free: 2.457 MB / 494.1 MB Notification: Performance of matching and sorting (n=96): time 0.01655/0.4161, allocations: 5.452 MB / 0.6584 GB, free: 12.99 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.4162, allocations: 60.41 kB / 0.6584 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002886/0.4191, allocations: 2.416 MB / 0.6608 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 6.725e-05/0.4191, allocations: 41.7 kB / 0.6608 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001441/0.4206, allocations: 2.141 MB / 0.6629 GB, free: 8.266 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003119/0.4209, allocations: 405 kB / 0.6633 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008298/0.4217, allocations: 0.7148 MB / 0.664 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.4218, allocations: 305.1 kB / 0.6643 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.4233, allocations: 1.038 MB / 0.6653 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003225/0.4266, allocations: 3.189 MB / 0.6684 GB, free: 1.539 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005045/0.4316, allocations: 4.576 MB / 0.6729 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.792e-05/0.4316, allocations: 20 kB / 0.6729 GB, free: 11.87 MB / 0.5137 GB Notification: Performance of matching and sorting (n=452) (initialization): time 0.006045/0.4377, allocations: 4.127 MB / 0.6769 GB, free: 7.734 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.323e-05/0.4377, allocations: 40 kB / 0.677 GB, free: 7.695 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.772e-05/0.4378, allocations: 79.98 kB / 0.677 GB, free: 7.617 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001076/0.4379, allocations: 100 kB / 0.6771 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002451/0.4404, allocations: 0.8422 MB / 0.678 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001248/0.4405, allocations: 151.4 kB / 0.6781 GB, free: 6.527 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001877/0.4424, allocations: 188 kB / 0.6783 GB, free: 6.344 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002702/0.4427, allocations: 212 kB / 0.6785 GB, free: 6.137 MB / 0.5137 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.001975/0.4446, allocations: 1.426 MB / 0.6799 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003116/0.4449, allocations: 222.5 kB / 0.6801 GB, free: 4.477 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00233/0.4473, allocations: 1.414 MB / 0.6815 GB, free: 3.051 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.4473, allocations: 8 kB / 0.6815 GB, free: 3.043 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.4473, allocations: 0 / 0.6815 GB, free: 3.043 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.672e-05/0.4473, allocations: 7.984 kB / 0.6815 GB, free: 3.035 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007471/0.4548, allocations: 5.276 MB / 0.6866 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-05/0.4548, allocations: 23.94 kB / 0.6867 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000727/0.4555, allocations: 219.6 kB / 0.6869 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.312e-05/0.4555, allocations: 20 kB / 0.6869 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.165e-05/0.4556, allocations: 40 kB / 0.6869 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.537e-05/0.4556, allocations: 31.86 kB / 0.687 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.371e-05/0.4556, allocations: 23.88 kB / 0.687 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002028/0.4577, allocations: 1.759 MB / 0.6887 GB, free: 11.14 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004315/0.4581, allocations: 303.6 kB / 0.689 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001941/0.4583, allocations: 47.97 kB / 0.689 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006836/0.459, allocations: 43.98 kB / 0.6891 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.4591, allocations: 128 kB / 0.6892 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.65e-05/0.4592, allocations: 48 kB / 0.6892 GB, free: 10.56 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001986/0.4612, allocations: 1.525 MB / 0.6907 GB, free: 9.02 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.4612, allocations: 0 / 0.6907 GB, free: 9.02 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002429/0.4636, allocations: 0.5859 MB / 0.6913 GB, free: 8.434 MB / 0.5294 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.002687/0.4663, allocations: 2.399 MB / 0.6936 GB, free: 5.805 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.003663/0.47, allocations: 2.295 MB / 0.6959 GB, free: 3.527 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/0.47, allocations: 4 kB / 0.6959 GB, free: 3.523 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0007925/0.4708, allocations: 0.5287 MB / 0.6964 GB, free: 2.996 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001639/0.4724, allocations: 357.3 kB / 0.6968 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03343/0.5058, allocations: 25.48 MB / 0.7216 GB, free: 6.105 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002465/0.5083, allocations: 2.458 MB / 0.724 GB, free: 3.617 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00207/0.5104, allocations: 0.9532 MB / 0.725 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001484/0.5119, allocations: 1.233 MB / 0.7262 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of SimCode: time 6.21e-07/0.5119, allocations: 0 / 0.7262 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2551/0.7669, allocations: 44.1 MB / 0.7692 GB, free: 126.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.38, allocations: 3.938 kB / 0.7692 GB, free: 126.7 MB / 0.5606 GB " [Timeout remaining time 648] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.940643267997075]