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.00138/0.00138, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 210.4 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.49/1.49, allocations: 227.4 MB / 246.8 MB, free: 10.6 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.2487/0.2487, allocations: 46.11 MB / 344.2 MB, free: 11.61 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.003491/0.003491, allocations: 85.42 kB / 417.8 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1605, allocations: 62.46 MB / 480.2 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.01827/0.1788, allocations: 13.24 MB / 493.4 MB, free: 7.883 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0128/0.1917, allocations: 4.856 MB / 498.3 MB, free: 3.012 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003184/0.1949, allocations: 87.75 kB / 498.4 MB, free: 2.926 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008301/0.2033, allocations: 3.964 MB / 0.4906 GB, free: 14.95 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007797/0.2111, allocations: 2.171 MB / 0.4927 GB, free: 12.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003359/0.2145, allocations: 1.181 MB / 0.4939 GB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009616/0.2241, allocations: 5.807 MB / 0.4995 GB, free: 5.77 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007009/0.2312, allocations: 5.178 MB / 0.5046 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2504/0.4816, allocations: 2.162 MB / 0.5067 GB, free: 16.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005671/0.4873, allocations: 2.958 MB / 0.5096 GB, free: 16.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002549/0.4899, allocations: 0.5007 MB / 0.5101 GB, free: 16.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005196/0.4951, allocations: 1.64 MB / 0.5117 GB, free: 16.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004918/0.5, allocations: 2.628 MB / 0.5142 GB, free: 16.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006683/0.5067, allocations: 3.078 MB / 0.5172 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0122/0.5189, allocations: 9.786 MB / 0.5268 GB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.519, allocations: 3.938 kB / 0.5268 GB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.519, allocations: 3.984 kB / 0.5268 GB, free: 12.37 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004448/0.5194, allocations: 4.5 kB / 0.5268 GB, free: 12.37 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02318/0.5426, allocations: 6.642 MB / 0.5333 GB, free: 8.004 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.5427, allocations: 6.062 kB / 0.5333 GB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003052/0.5458, allocations: 0.9204 MB / 0.5342 GB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08857/0.6343, allocations: 7.406 MB / 0.5414 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/0.645, allocations: 4.078 MB / 0.5454 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003595/0.6454, allocations: 351.1 kB / 0.5458 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002309/0.6477, allocations: 430.2 kB / 0.5462 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03317/0.6809, allocations: 13.78 MB / 0.5596 GB, free: 2.363 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001986/0.6812, allocations: 52.19 kB / 0.5597 GB, free: 2.336 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008488/0.682, allocations: 197.6 kB / 0.5599 GB, free: 2.184 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004047/0.6861, allocations: 2.407 MB / 0.5622 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0279/0.714, allocations: 11.62 MB / 0.5736 GB, free: 4.41 MB / 414.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.07929/0.7934, allocations: 51.3 MB / 0.6237 GB, free: 316 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01416/0.8076, allocations: 4.686 MB / 0.6282 GB, free: 11.49 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004746/0.8123, allocations: 2.772 MB / 0.6309 GB, free: 8.703 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02207/0.8344, allocations: 12.43 MB / 0.6431 GB, free: 11.78 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.885e-05/0.8346, allocations: 59.14 kB / 0.6431 GB, free: 11.71 MB / 494.1 MB Notification: Performance of pre-optimization done (n=191): time 5.391e-06/0.8346, allocations: 4 kB / 0.6431 GB, free: 11.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=242): time 0.1591/0.9936, allocations: 42.24 MB / 0.6844 GB, free: 1.398 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001558/0.9938, allocations: 230.6 kB / 0.6846 GB, free: 1.129 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009349/1.003, allocations: 4.793 MB / 0.6893 GB, free: 12.34 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008813/1.004, allocations: 61.7 kB / 0.6894 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.00378/1.008, allocations: 3.901 MB / 0.6932 GB, free: 8.363 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001888/1.01, allocations: 0.9172 MB / 0.6941 GB, free: 7.453 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002645/1.012, allocations: 1.455 MB / 0.6955 GB, free: 5.992 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001474/1.013, allocations: 309.1 kB / 0.6958 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00616/1.019, allocations: 3.258 MB / 0.699 GB, free: 2.426 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2729/1.292, allocations: 7.551 MB / 0.7063 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01395/1.306, allocations: 11.6 MB / 0.7177 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002677/1.306, allocations: 43.66 kB / 0.7177 GB, free: 165.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=940) (initialization): time 0.03351/1.34, allocations: 13.86 MB / 0.7312 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001817/1.34, allocations: 69.53 kB / 0.7313 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003205/1.34, allocations: 148.5 kB / 0.7314 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01268/1.353, allocations: 3.782 MB / 0.7351 GB, free: 160 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006015/1.359, allocations: 1.604 MB / 0.7367 GB, free: 159.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02458/1.383, allocations: 19.16 MB / 0.7554 GB, free: 145.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007253/1.391, allocations: 454.8 kB / 0.7559 GB, free: 145.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001641/1.392, allocations: 433.3 kB / 0.7563 GB, free: 144.9 MB / 0.5294 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.005404/1.398, allocations: 2.66 MB / 0.7589 GB, free: 142.5 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001007/1.399, allocations: 432.8 kB / 0.7593 GB, free: 142.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01609/1.415, allocations: 8.138 MB / 0.7672 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.187e-05/1.415, allocations: 24 kB / 0.7672 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.741e-05/1.415, allocations: 18.2 kB / 0.7673 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.038e-05/1.415, allocations: 11.97 kB / 0.7673 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03671/1.452, allocations: 17.36 MB / 0.7842 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.57e-05/1.452, allocations: 0 / 0.7842 GB, free: 116.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002136/1.454, allocations: 395.4 kB / 0.7846 GB, free: 116.4 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01067/1.465, allocations: 3.842 MB / 0.7884 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006818/1.466, allocations: 43.98 kB / 0.7884 GB, free: 112.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0206/1.486, allocations: 17.53 MB / 0.8055 GB, free: 94.93 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/1.486, allocations: 4.031 kB / 0.8055 GB, free: 94.92 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02119/1.507, allocations: 12.54 MB / 0.8178 GB, free: 82.43 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001577/1.509, allocations: 463.4 kB / 0.8182 GB, free: 81.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001089/1.51, allocations: 39.25 kB / 0.8182 GB, free: 81.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002438/1.513, allocations: 203.7 kB / 0.8184 GB, free: 81.72 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006538/1.513, allocations: 150.3 kB / 0.8186 GB, free: 81.57 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001902/1.513, allocations: 65.56 kB / 0.8186 GB, free: 81.51 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005632/1.519, allocations: 2.998 MB / 0.8216 GB, free: 78.52 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2e-07/1.519, allocations: 3.844 kB / 0.8216 GB, free: 78.52 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009368/1.528, allocations: 1.421 MB / 0.823 GB, free: 77.11 MB / 0.5294 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.02282/1.551, allocations: 13.24 MB / 0.8359 GB, free: 63.83 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01653/1.568, allocations: 9.511 MB / 0.8452 GB, free: 54.36 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/1.568, allocations: 320 / 0.8452 GB, free: 54.36 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003807/1.572, allocations: 2.99 MB / 0.8481 GB, free: 51.35 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00356/1.575, allocations: 0.5376 MB / 0.8486 GB, free: 50.83 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3861/1.962, allocations: 74.69 MB / 0.9216 GB, free: 170.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006509/1.968, allocations: 4.09 MB / 0.9256 GB, free: 169 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00549/1.974, allocations: 2.178 MB / 0.9277 GB, free: 169 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005349/1.979, allocations: 2.476 MB / 0.9301 GB, free: 166.9 MB / 0.545 GB Notification: Performance of SimCode: time 2.314e-06/1.979, allocations: 3.938 kB / 0.9301 GB, free: 166.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1673/2.146, allocations: 107 MB / 1.035 GB, free: 68.95 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/14.64, allocations: 3.609 kB / 1.035 GB, free: 68.95 MB / 0.545 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)