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.001375/0.001375, 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.001548/0.001548, allocations: 201.2 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.535/1.535, 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.2413/0.2413, 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.002494/0.002494, allocations: 75.88 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3837/0.3862, 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.01518/0.4014, allocations: 10.8 MB / 0.5412 GB, free: 4.902 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.4119, allocations: 3.619 MB / 0.5447 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003189/0.4151, allocations: 63.31 kB / 0.5448 GB, free: 2.039 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007175/0.4224, allocations: 3.237 MB / 0.5479 GB, free: 15.89 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003655/0.4261, allocations: 0.7935 MB / 0.5487 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00277/0.4289, allocations: 0.8148 MB / 0.5495 GB, free: 14.33 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004387/0.4333, allocations: 2.066 MB / 0.5515 GB, free: 12.26 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006382/0.4398, allocations: 3.989 MB / 0.5554 GB, free: 8.211 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003254/0.4431, allocations: 1.289 MB / 0.5567 GB, free: 6.918 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003447/0.4466, allocations: 1.675 MB / 0.5583 GB, free: 5.238 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001072/0.4477, allocations: 352 kB / 0.5586 GB, free: 4.895 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00271/0.4504, allocations: 1.042 MB / 0.5597 GB, free: 3.852 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002289/0.4527, allocations: 1.516 MB / 0.5611 GB, free: 2.332 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003317/0.4561, allocations: 1.756 MB / 0.5628 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008963/0.4651, allocations: 5.854 MB / 0.5686 GB, free: 10.69 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.699e-06/0.4651, allocations: 0 / 0.5686 GB, free: 10.69 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.4652, allocations: 0 / 0.5686 GB, free: 10.69 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002342/0.4654, allocations: 0 / 0.5686 GB, free: 10.69 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.01398/0.4794, allocations: 3.981 MB / 0.5725 GB, free: 6.641 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.2e-05/0.4795, allocations: 8.031 kB / 0.5725 GB, free: 6.633 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002434/0.4819, allocations: 0.541 MB / 0.573 GB, free: 6.082 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003671/0.4856, allocations: 0.6073 MB / 0.5736 GB, free: 5.473 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005304/0.491, allocations: 1.829 MB / 0.5754 GB, free: 3.594 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002581/0.4913, allocations: 209.4 kB / 0.5756 GB, free: 3.387 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001453/0.4928, allocations: 275.9 kB / 0.5758 GB, free: 3.117 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0211/0.5139, allocations: 8.164 MB / 0.5838 GB, free: 10.6 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001012/0.5141, allocations: 15.88 kB / 0.5838 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009186/0.515, allocations: 123.9 kB / 0.5839 GB, free: 10.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002088/0.5171, allocations: 1.13 MB / 0.585 GB, free: 9.332 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01933/0.5365, allocations: 6.955 MB / 0.5918 GB, free: 2.363 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04166/0.5782, allocations: 24.67 MB / 0.6159 GB, free: 9.109 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008116/0.5864, allocations: 2.285 MB / 0.6182 GB, free: 6.812 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001826/0.5882, allocations: 1.081 MB / 0.6192 GB, free: 5.73 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01171/0.6, allocations: 7.202 MB / 0.6262 GB, free: 13.94 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.875e-05/0.6001, allocations: 47.2 kB / 0.6263 GB, free: 13.89 MB / 494.1 MB Notification: Performance of pre-optimization done (n=80): time 3.787e-06/0.6001, allocations: 0 / 0.6263 GB, free: 13.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=96): time 0.0204/0.6205, allocations: 5.456 MB / 0.6316 GB, free: 8.418 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.097e-05/0.6206, allocations: 64.41 kB / 0.6317 GB, free: 8.344 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004297/0.6249, allocations: 2.4 MB / 0.634 GB, free: 5.914 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002126/0.6252, allocations: 41.7 kB / 0.6341 GB, free: 5.867 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002182/0.6274, allocations: 2.145 MB / 0.6362 GB, free: 3.699 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007055/0.6281, allocations: 401 kB / 0.6365 GB, free: 3.305 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001411/0.6296, allocations: 0.7187 MB / 0.6372 GB, free: 2.578 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.6298, allocations: 305.1 kB / 0.6375 GB, free: 2.277 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002054/0.6318, allocations: 1.03 MB / 0.6385 GB, free: 1.246 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004215/0.6361, allocations: 3.189 MB / 0.6417 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007065/0.6432, allocations: 4.576 MB / 0.6461 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-05/0.6434, allocations: 24 kB / 0.6461 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of matching and sorting (n=452) (initialization): time 0.009279/0.6527, allocations: 4.13 MB / 0.6502 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.108e-05/0.6528, allocations: 38.34 kB / 0.6502 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001236/0.6529, allocations: 76 kB / 0.6503 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001336/0.6531, allocations: 104.7 kB / 0.6504 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003249/0.6563, allocations: 0.8461 MB / 0.6512 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001972/0.6566, allocations: 147.4 kB / 0.6514 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003075/0.6596, allocations: 179.9 kB / 0.6515 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000681/0.6604, allocations: 208 kB / 0.6517 GB, free: 1.586 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.003687/0.6641, allocations: 1.434 MB / 0.6531 GB, free: 140 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006889/0.6648, allocations: 218.5 kB / 0.6533 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00313/0.6679, allocations: 1.418 MB / 0.6547 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-05/0.668, allocations: 12 kB / 0.6547 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.668, allocations: 0 / 0.6547 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/0.668, allocations: 3.984 kB / 0.6547 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01226/0.6803, allocations: 5.283 MB / 0.6599 GB, free: 8.895 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.851e-05/0.6804, allocations: 17 kB / 0.6599 GB, free: 8.879 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008755/0.6812, allocations: 215.6 kB / 0.6601 GB, free: 8.668 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.708e-05/0.6813, allocations: 28 kB / 0.6601 GB, free: 8.641 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.568e-05/0.6814, allocations: 36 kB / 0.6602 GB, free: 8.605 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.024e-05/0.6814, allocations: 31.86 kB / 0.6602 GB, free: 8.574 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.341e-05/0.6815, allocations: 31.81 kB / 0.6602 GB, free: 8.543 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00282/0.6843, allocations: 1.754 MB / 0.662 GB, free: 6.574 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006875/0.685, allocations: 303.6 kB / 0.6622 GB, free: 6.258 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003446/0.6854, allocations: 43.98 kB / 0.6623 GB, free: 6.215 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009153/0.6863, allocations: 43.97 kB / 0.6623 GB, free: 6.172 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002064/0.6865, allocations: 120 kB / 0.6624 GB, free: 6.055 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.128e-05/0.6866, allocations: 51.98 kB / 0.6625 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003009/0.6896, allocations: 1.529 MB / 0.664 GB, free: 4.461 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5.41e-07/0.6896, allocations: 0 / 0.664 GB, free: 4.461 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003784/0.6934, allocations: 0.5898 MB / 0.6646 GB, free: 3.871 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.003727/0.6972, allocations: 2.395 MB / 0.6669 GB, free: 1.25 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004589/0.7018, allocations: 2.397 MB / 0.6692 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.761e-05/0.7019, allocations: 4 kB / 0.6692 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001093/0.703, allocations: 0.5648 MB / 0.6698 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002409/0.7054, allocations: 357.1 kB / 0.6701 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04843/0.7539, allocations: 25.49 MB / 0.695 GB, free: 1.402 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00445/0.7584, allocations: 2.461 MB / 0.6974 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003185/0.7616, allocations: 0.9532 MB / 0.6984 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002543/0.7642, allocations: 1.245 MB / 0.6996 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.914e-06/0.7642, allocations: 0 / 0.6996 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3739/1.138, allocations: 43.64 MB / 0.7422 GB, free: 181.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.9/15.04, allocations: 3.938 kB / 0.7422 GB, free: 181.2 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSR_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1)