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.001274/0.001274, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001353, allocations: 208.6 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.431/1.431, 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.2643/0.2643, 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.002243/0.002243, allocations: 80.59 kB / 417.8 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1098, allocations: 62.45 MB / 480.2 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP): time 0.01253/0.1224, allocations: 10.82 MB / 491 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006617/0.1291, allocations: 3.415 MB / 494.4 MB, free: 6.855 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001125/0.1302, allocations: 59.88 kB / 494.5 MB, free: 6.797 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005852/0.1361, allocations: 3.279 MB / 497.8 MB, free: 3.508 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002162/0.1383, allocations: 0.7929 MB / 498.6 MB, free: 2.711 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001612/0.14, allocations: 0.6506 MB / 499.2 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002755/0.1427, allocations: 1.964 MB / 0.4894 GB, free: 96 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004666/0.1474, allocations: 3.949 MB / 0.4933 GB, free: 12.08 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002042/0.1495, allocations: 1.243 MB / 0.4945 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002222/0.1517, allocations: 1.648 MB / 0.4961 GB, free: 9.184 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005872/0.1523, allocations: 344 kB / 0.4964 GB, free: 8.848 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001591/0.1539, allocations: 0.9091 MB / 0.4973 GB, free: 7.938 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001498/0.1555, allocations: 1.512 MB / 0.4988 GB, free: 6.422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001883/0.1573, allocations: 1.733 MB / 0.5005 GB, free: 4.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2343/0.3916, allocations: 5.548 MB / 0.5059 GB, free: 21.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.3917, allocations: 3.094 kB / 0.5059 GB, free: 21.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.3917, allocations: 0 / 0.5059 GB, free: 21.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001804/0.3919, allocations: 0.75 kB / 0.5059 GB, free: 21.02 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: 1077 * Number of variables: 1077 Notification: Performance of Generate backend data structure: time 0.009954/0.4018, allocations: 3.732 MB / 0.5096 GB, free: 19.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.4019, allocations: 10.06 kB / 0.5096 GB, free: 19.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001185/0.4031, allocations: 0.5347 MB / 0.5101 GB, free: 19.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002636/0.4057, allocations: 0.5791 MB / 0.5107 GB, free: 19.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004597/0.4104, allocations: 1.735 MB / 0.5124 GB, free: 18.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002242/0.4106, allocations: 210 kB / 0.5126 GB, free: 18.94 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008479/0.4115, allocations: 276.7 kB / 0.5128 GB, free: 18.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01976/0.4312, allocations: 7.62 MB / 0.5203 GB, free: 17.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.041e-05/0.4314, allocations: 15.34 kB / 0.5203 GB, free: 17.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003621/0.4317, allocations: 125.1 kB / 0.5204 GB, free: 17 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001751/0.4335, allocations: 1.103 MB / 0.5215 GB, free: 16.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0129/0.4464, allocations: 6.184 MB / 0.5275 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02694/0.4734, allocations: 22.92 MB / 0.5499 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006214/0.4796, allocations: 1.864 MB / 0.5517 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/0.4809, allocations: 0.8364 MB / 0.5525 GB, free: 9.863 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00826/0.4892, allocations: 5.859 MB / 0.5583 GB, free: 3.508 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.716e-05/0.4893, allocations: 39.2 kB / 0.5583 GB, free: 3.461 MB / 398.1 MB Notification: Performance of pre-optimization done (n=75): time 2.956e-06/0.4893, allocations: 4 kB / 0.5583 GB, free: 3.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=94): time 0.01597/0.5053, allocations: 4.435 MB / 0.5626 GB, free: 15.02 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.5054, allocations: 64.41 kB / 0.5627 GB, free: 14.95 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003801/0.5092, allocations: 2.279 MB / 0.5649 GB, free: 12.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001267/0.5093, allocations: 37.7 kB / 0.565 GB, free: 12.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001594/0.5109, allocations: 2.047 MB / 0.567 GB, free: 10.56 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004361/0.5114, allocations: 371.1 kB / 0.5673 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009878/0.5124, allocations: 0.6865 MB / 0.568 GB, free: 9.504 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.5125, allocations: 311.9 kB / 0.5683 GB, free: 9.199 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001603/0.5141, allocations: 0.9007 MB / 0.5692 GB, free: 8.297 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003243/0.5174, allocations: 2.967 MB / 0.5721 GB, free: 4.336 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00561/0.523, allocations: 4.22 MB / 0.5762 GB, free: 15.39 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.63e-05/0.5231, allocations: 20 kB / 0.5762 GB, free: 15.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006563/0.5297, allocations: 3.768 MB / 0.5799 GB, free: 12.04 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.836e-05/0.5298, allocations: 36 kB / 0.5799 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001006/0.5299, allocations: 72 kB / 0.58 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001065/0.53, allocations: 103.6 kB / 0.5801 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00257/0.5326, allocations: 0.7845 MB / 0.5808 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001655/0.5328, allocations: 147.8 kB / 0.581 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002444/0.5353, allocations: 147.9 kB / 0.5811 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003618/0.5356, allocations: 208 kB / 0.5813 GB, free: 10.66 MB / 430.1 MB 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.002308/0.538, allocations: 1.417 MB / 0.5827 GB, free: 9.254 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003741/0.5383, allocations: 201.5 kB / 0.5829 GB, free: 9.055 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004707/0.5388, allocations: 237 kB / 0.5831 GB, free: 8.816 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.5388, allocations: 8 kB / 0.5831 GB, free: 8.809 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.477e-05/0.5389, allocations: 4.797 kB / 0.5831 GB, free: 8.805 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/0.5389, allocations: 3.984 kB / 0.5831 GB, free: 8.801 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008486/0.5474, allocations: 5.341 MB / 0.5884 GB, free: 3.141 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.448e-05/0.5474, allocations: 20 kB / 0.5884 GB, free: 3.121 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006922/0.5481, allocations: 212.5 kB / 0.5886 GB, free: 2.914 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.8e-05/0.5482, allocations: 29.42 kB / 0.5886 GB, free: 2.887 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.459e-05/0.5483, allocations: 49.75 kB / 0.5886 GB, free: 2.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-05/0.5483, allocations: 40.89 kB / 0.5887 GB, free: 2.801 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.349e-05/0.5483, allocations: 31.88 kB / 0.5887 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002341/0.5507, allocations: 1.712 MB / 0.5904 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005682/0.5513, allocations: 306.3 kB / 0.5907 GB, free: 464 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002168/0.5515, allocations: 43.98 kB / 0.5907 GB, free: 420 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006913/0.5522, allocations: 43.98 kB / 0.5908 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000159/0.5524, allocations: 135.3 kB / 0.5909 GB, free: 240 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.979e-05/0.5524, allocations: 52 kB / 0.5909 GB, free: 188 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002253/0.5547, allocations: 1.477 MB / 0.5924 GB, free: 14.69 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5547, allocations: 0 / 0.5924 GB, free: 14.69 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002891/0.5576, allocations: 0.5547 MB / 0.5929 GB, free: 14.14 MB / 446.1 MB 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.00278/0.5604, allocations: 2.375 MB / 0.5952 GB, free: 11.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003955/0.5644, allocations: 2.23 MB / 0.5974 GB, free: 9.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/0.5644, allocations: 5.875 kB / 0.5974 GB, free: 9.266 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007945/0.5652, allocations: 0.5 MB / 0.5979 GB, free: 8.77 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00198/0.5672, allocations: 371 kB / 0.5983 GB, free: 8.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04279/0.61, allocations: 26.62 MB / 0.6243 GB, free: 9.75 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003376/0.6134, allocations: 2.456 MB / 0.6267 GB, free: 7.262 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002712/0.6162, allocations: 0.9078 MB / 0.6276 GB, free: 6.352 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001767/0.618, allocations: 1.237 MB / 0.6288 GB, free: 5.113 MB / 478.1 MB Notification: Performance of SimCode: time 1.994e-06/0.618, allocations: 0 / 0.6288 GB, free: 5.113 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08916/0.7071, allocations: 41.63 MB / 0.6694 GB, free: 11.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.816/9.523, allocations: 9.016 kB / 0.6694 GB, free: 11.69 MB / 0.5137 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)