Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001381/0.001381, 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.001589/0.001589, 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.446/1.446, allocations: 227.4 MB / 247 MB, free: 10.41 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.2231/0.2231, 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.002256/0.002256, allocations: 75.88 kB / 480.9 MB, free: 4.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3123/0.3146, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP): time 0.01344/0.3281, allocations: 10.83 MB / 0.5412 GB, free: 4.891 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007784/0.3359, allocations: 3.404 MB / 0.5445 GB, free: 2.203 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0017/0.3376, allocations: 60.31 kB / 0.5446 GB, free: 2.195 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006425/0.3441, allocations: 3.285 MB / 0.5478 GB, free: 12 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002674/0.3468, allocations: 0.7882 MB / 0.5485 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001812/0.3486, allocations: 0.6536 MB / 0.5492 GB, free: 14.65 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.003124/0.3518, allocations: 1.98 MB / 0.5511 GB, free: 12.67 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005012/0.3568, allocations: 3.933 MB / 0.555 GB, free: 8.68 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002081/0.3589, allocations: 1.239 MB / 0.5562 GB, free: 7.438 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002555/0.3615, allocations: 1.644 MB / 0.5578 GB, free: 5.789 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007019/0.3622, allocations: 340 kB / 0.5581 GB, free: 5.457 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001826/0.364, allocations: 0.9208 MB / 0.559 GB, free: 4.535 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00164/0.3657, allocations: 1.504 MB / 0.5605 GB, free: 3.027 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002281/0.368, allocations: 1.745 MB / 0.5622 GB, free: 1.273 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007444/0.3754, allocations: 5.694 MB / 0.5677 GB, free: 11.56 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3755, allocations: 0 / 0.5677 GB, free: 11.56 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3755, allocations: 0 / 0.5677 GB, free: 11.56 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001585/0.3757, allocations: 4 kB / 0.5677 GB, free: 11.55 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: 1077 * Number of variables: 1077 Notification: Performance of Generate backend data structure: time 0.008977/0.3846, allocations: 3.817 MB / 0.5715 GB, free: 7.668 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/0.3847, allocations: 12.03 kB / 0.5715 GB, free: 7.656 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008157/0.3855, allocations: 0.5329 MB / 0.572 GB, free: 7.113 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002233/0.3878, allocations: 0.5956 MB / 0.5726 GB, free: 6.516 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003475/0.3913, allocations: 1.771 MB / 0.5743 GB, free: 4.695 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001845/0.3915, allocations: 209.6 kB / 0.5745 GB, free: 4.488 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005835/0.3921, allocations: 275.9 kB / 0.5748 GB, free: 4.219 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01547/0.4075, allocations: 7.622 MB / 0.5822 GB, free: 12.26 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.164e-05/0.4076, allocations: 15.88 kB / 0.5822 GB, free: 12.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003268/0.408, allocations: 123.9 kB / 0.5823 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001719/0.4097, allocations: 1.103 MB / 0.5834 GB, free: 11.02 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01438/0.4241, allocations: 6.192 MB / 0.5895 GB, free: 4.812 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03184/0.456, allocations: 22.85 MB / 0.6118 GB, free: 13.4 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006183/0.4622, allocations: 1.862 MB / 0.6136 GB, free: 11.52 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/0.4636, allocations: 0.8276 MB / 0.6144 GB, free: 10.69 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008343/0.4719, allocations: 5.878 MB / 0.6201 GB, free: 4.266 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/0.472, allocations: 43.16 kB / 0.6202 GB, free: 4.211 MB / 478.1 MB Notification: Performance of pre-optimization done (n=75): time 3.066e-06/0.472, allocations: 0 / 0.6202 GB, free: 4.211 MB / 478.1 MB Notification: Performance of matching and sorting (n=94): time 0.01466/0.4867, allocations: 4.494 MB / 0.6246 GB, free: 15.71 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.074e-05/0.4868, allocations: 60.41 kB / 0.6246 GB, free: 15.64 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003227/0.49, allocations: 2.29 MB / 0.6269 GB, free: 13.31 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 9.785e-05/0.4901, allocations: 37.7 kB / 0.6269 GB, free: 13.27 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001686/0.4918, allocations: 2.118 MB / 0.629 GB, free: 11.13 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003991/0.4922, allocations: 397 kB / 0.6294 GB, free: 10.74 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009273/0.4932, allocations: 0.691 MB / 0.63 GB, free: 10.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.4933, allocations: 317 kB / 0.6303 GB, free: 9.727 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001528/0.4949, allocations: 0.8967 MB / 0.6312 GB, free: 8.828 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003192/0.4981, allocations: 2.965 MB / 0.6341 GB, free: 4.828 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005229/0.5033, allocations: 4.217 MB / 0.6382 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.3e-05/0.5034, allocations: 20 kB / 0.6382 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of matching and sorting (n=436) (initialization): time 0.00629/0.5097, allocations: 3.771 MB / 0.6419 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.758e-05/0.5098, allocations: 39.98 kB / 0.642 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.63e-05/0.5099, allocations: 76.88 kB / 0.642 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001105/0.51, allocations: 100 kB / 0.6421 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002232/0.5122, allocations: 0.7876 MB / 0.6429 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000141/0.5124, allocations: 147.4 kB / 0.643 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/0.5142, allocations: 147.9 kB / 0.6432 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002679/0.5145, allocations: 204 kB / 0.6434 GB, free: 10.3 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 335 * Number of states: 0 () * Number of discrete variables: 50 (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,jointUSP.prismatic.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],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[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 (436): * Single equations (assignments): 436 * 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.002218/0.5167, allocations: 1.418 MB / 0.6448 GB, free: 8.863 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003464/0.5171, allocations: 214.6 kB / 0.645 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004741/0.5175, allocations: 237 kB / 0.6452 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.5176, allocations: 11.98 kB / 0.6452 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.5176, allocations: 0 / 0.6452 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-05/0.5176, allocations: 3.984 kB / 0.6452 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008015/0.5256, allocations: 5.348 MB / 0.6504 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.188e-05/0.5257, allocations: 20 kB / 0.6504 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006775/0.5264, allocations: 216.5 kB / 0.6507 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.169e-05/0.5264, allocations: 28 kB / 0.6507 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.637e-05/0.5265, allocations: 48 kB / 0.6507 GB, free: 2.414 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.211e-05/0.5265, allocations: 39.84 kB / 0.6508 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.592e-05/0.5266, allocations: 35.81 kB / 0.6508 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002167/0.5287, allocations: 1.728 MB / 0.6525 GB, free: 344 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005338/0.5293, allocations: 311.6 kB / 0.6528 GB, free: 12 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002371/0.5295, allocations: 47.98 kB / 0.6528 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006716/0.5302, allocations: 39.98 kB / 0.6529 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001707/0.5304, allocations: 139.3 kB / 0.653 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.994e-05/0.5305, allocations: 55.98 kB / 0.653 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00221/0.5327, allocations: 1.469 MB / 0.6545 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.71e-07/0.5327, allocations: 3.938 kB / 0.6545 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.002607/0.5353, allocations: 0.5624 MB / 0.655 GB, free: 13.68 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 86 * 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 (118): * Single equations (assignments): 118 * 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.002841/0.5382, allocations: 2.38 MB / 0.6574 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003692/0.5419, allocations: 2.15 MB / 0.6595 GB, free: 8.875 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/0.5419, allocations: 4 kB / 0.6595 GB, free: 8.871 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0008258/0.5427, allocations: 0.5038 MB / 0.66 GB, free: 8.371 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001922/0.5447, allocations: 364.9 kB / 0.6603 GB, free: 8.02 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03712/0.5818, allocations: 24.43 MB / 0.6842 GB, free: 12.44 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00288/0.5847, allocations: 2.452 MB / 0.6866 GB, free: 9.961 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002171/0.5869, allocations: 0.9058 MB / 0.6874 GB, free: 9.051 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/0.5885, allocations: 1.241 MB / 0.6887 GB, free: 7.809 MB / 0.545 GB Notification: Performance of SimCode: time 6.01e-07/0.5885, allocations: 3.938 kB / 0.6887 GB, free: 7.805 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3509/0.9394, allocations: 41.11 MB / 0.7288 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/14.33, allocations: 6.281 kB / 0.7288 GB, free: 175.7 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSP.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP.pipe 2>&1)