Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2.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.JointUSP2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001667/0.001667, allocations: 117.6 kB / 17.79 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.00186/0.00186, allocations: 199.9 kB / 18.74 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.479/1.479, allocations: 227.4 MB / 247 MB, free: 10.4 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.2246/0.2246, allocations: 46.11 MB / 344.4 MB, free: 11.42 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.00241/0.00241, allocations: 83.84 kB / 480.9 MB, free: 4.469 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3948/0.3973, allocations: 62.44 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.01621/0.4135, allocations: 13.24 MB / 0.5435 GB, free: 2.941 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01205/0.4256, allocations: 4.862 MB / 0.5483 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003427/0.4291, allocations: 80.91 kB / 0.5484 GB, free: 15.11 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008744/0.4379, allocations: 3.965 MB / 0.5522 GB, free: 11.48 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00735/0.4453, allocations: 2.171 MB / 0.5544 GB, free: 9.309 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003634/0.449, allocations: 1.178 MB / 0.5555 GB, free: 8.129 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009875/0.4589, allocations: 5.82 MB / 0.5612 GB, free: 2.305 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007242/0.4662, allocations: 5.175 MB / 0.5662 GB, free: 13.06 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004312/0.4705, allocations: 2.165 MB / 0.5684 GB, free: 10.89 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005042/0.4756, allocations: 2.96 MB / 0.5713 GB, free: 7.922 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001642/0.4773, allocations: 0.5 MB / 0.5717 GB, free: 7.422 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003763/0.4811, allocations: 1.646 MB / 0.5733 GB, free: 5.773 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003541/0.4847, allocations: 2.626 MB / 0.5759 GB, free: 3.141 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005323/0.49, allocations: 3.073 MB / 0.5789 GB, free: 52 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01541/0.5055, allocations: 10.1 MB / 0.5888 GB, free: 5.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.177e-05/0.5055, allocations: 4 kB / 0.5888 GB, free: 5.906 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.5055, allocations: 0 / 0.5888 GB, free: 5.906 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.00036/0.5059, allocations: 0 / 0.5888 GB, free: 5.906 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02187/0.5278, allocations: 6.809 MB / 0.5954 GB, free: 15 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.5279, allocations: 8.031 kB / 0.5954 GB, free: 15 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002947/0.5308, allocations: 0.9177 MB / 0.5963 GB, free: 14.07 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09545/0.6263, allocations: 7.448 MB / 0.6036 GB, free: 6.605 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009916/0.6362, allocations: 4.155 MB / 0.6077 GB, free: 2.391 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000443/0.6367, allocations: 350 kB / 0.608 GB, free: 2.039 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001831/0.6386, allocations: 435.7 kB / 0.6084 GB, free: 1.613 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0284/0.667, allocations: 13.78 MB / 0.6219 GB, free: 2.977 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001611/0.6672, allocations: 51.58 kB / 0.6219 GB, free: 2.926 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006996/0.6679, allocations: 199.8 kB / 0.6221 GB, free: 2.73 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003913/0.6718, allocations: 2.41 MB / 0.6245 GB, free: 328 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02473/0.6966, allocations: 11.62 MB / 0.6358 GB, free: 4.688 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0759/0.7726, allocations: 51.16 MB / 0.6858 GB, free: 36 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01372/0.7863, allocations: 4.684 MB / 0.6904 GB, free: 11.2 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004882/0.7912, allocations: 2.776 MB / 0.6931 GB, free: 8.414 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0222/0.8135, allocations: 12.44 MB / 0.7052 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.604e-05/0.8136, allocations: 55.88 kB / 0.7053 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=191): time 4.489e-06/0.8136, allocations: 3.938 kB / 0.7053 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of matching and sorting (n=242): time 0.4048/1.218, allocations: 42.57 MB / 0.7468 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.391e-05/1.218, allocations: 245.6 kB / 0.7471 GB, free: 150.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005562/1.224, allocations: 4.805 MB / 0.7518 GB, free: 145.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004865/1.225, allocations: 61.7 kB / 0.7518 GB, free: 145.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002346/1.227, allocations: 4.049 MB / 0.7558 GB, free: 142.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001338/1.228, allocations: 0.9561 MB / 0.7567 GB, free: 141.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002092/1.23, allocations: 1.468 MB / 0.7582 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.916e-05/1.23, allocations: 301.1 kB / 0.7584 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003747/1.234, allocations: 3.266 MB / 0.7616 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005111/1.239, allocations: 7.548 MB / 0.769 GB, free: 126.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01041/1.25, allocations: 11.6 MB / 0.7803 GB, free: 112.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001035/1.25, allocations: 48 kB / 0.7804 GB, free: 112.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=940) (initialization): time 0.02614/1.276, allocations: 13.88 MB / 0.7939 GB, free: 98.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001849/1.276, allocations: 71.94 kB / 0.794 GB, free: 98.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002344/1.277, allocations: 152 kB / 0.7941 GB, free: 98.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01092/1.287, allocations: 3.772 MB / 0.7978 GB, free: 94.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004781/1.292, allocations: 1.599 MB / 0.7994 GB, free: 93.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02335/1.316, allocations: 19.17 MB / 0.8181 GB, free: 73.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005868/1.322, allocations: 453 kB / 0.8185 GB, free: 73.45 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001232/1.323, allocations: 443.5 kB / 0.819 GB, free: 73.02 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 687 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (857): * Single equations (assignments): 853 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,58,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004573/1.327, allocations: 2.649 MB / 0.8216 GB, free: 70.36 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001208/1.329, allocations: 456.9 kB / 0.822 GB, free: 69.91 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01665/1.345, allocations: 8.142 MB / 0.8299 GB, free: 61.73 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.966e-05/1.345, allocations: 24 kB / 0.83 GB, free: 61.71 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.441e-05/1.345, allocations: 12 kB / 0.83 GB, free: 61.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.463e-05/1.346, allocations: 11.95 kB / 0.83 GB, free: 61.69 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03372/1.379, allocations: 17.31 MB / 0.8469 GB, free: 44.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.87e-05/1.379, allocations: 0 / 0.8469 GB, free: 44.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002084/1.381, allocations: 391.4 kB / 0.8473 GB, free: 43.97 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01081/1.392, allocations: 3.843 MB / 0.851 GB, free: 40.12 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005582/1.393, allocations: 36 kB / 0.851 GB, free: 40.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02133/1.414, allocations: 17.54 MB / 0.8682 GB, free: 22.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/1.414, allocations: 3.984 kB / 0.8682 GB, free: 22.4 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02181/1.436, allocations: 12.56 MB / 0.8804 GB, free: 9.809 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001278/1.437, allocations: 483.8 kB / 0.8809 GB, free: 9.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001346/1.439, allocations: 40 kB / 0.8809 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002939/1.442, allocations: 207.7 kB / 0.8811 GB, free: 9.074 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008281/1.443, allocations: 154.1 kB / 0.8813 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003748/1.443, allocations: 63.58 kB / 0.8814 GB, free: 8.863 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00484/1.448, allocations: 2.995 MB / 0.8843 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.41e-07/1.448, allocations: 0 / 0.8843 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006396/1.454, allocations: 1.426 MB / 0.8857 GB, free: 4.449 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.w) * 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 (167): * Single equations (assignments): 163 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,52,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02624/1.481, allocations: 13.26 MB / 0.8986 GB, free: 7.148 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01537/1.496, allocations: 7.939 MB / 0.9064 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/1.496, allocations: 3.938 kB / 0.9064 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005575/1.502, allocations: 2.979 MB / 0.9093 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004508/1.506, allocations: 0.538 MB / 0.9098 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3712/1.877, allocations: 66 MB / 0.9743 GB, free: 198.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004109/1.882, allocations: 4.09 MB / 0.9783 GB, free: 196.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.004317/1.886, allocations: 2.174 MB / 0.9804 GB, free: 196.4 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002949/1.889, allocations: 2.481 MB / 0.9828 GB, free: 194.2 MB / 0.6231 GB Notification: Performance of SimCode: time 1.092e-06/1.889, allocations: 0 / 0.9828 GB, free: 194.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1417/2.031, allocations: 102.8 MB / 1.083 GB, free: 93.64 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.69/33.72, allocations: 0 / 1.083 GB, free: 93.64 MB / 0.6231 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1)