Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 112.8 kB / 17.77 MB, free: 5.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 180.9 kB / 18.7 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 242.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2235/0.2235, allocations: 44.19 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 63.89 kB / 470 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3416, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.01427/0.3558, allocations: 13.31 MB / 0.5314 GB, free: 9.855 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01175/0.3676, allocations: 4.853 MB / 0.5362 GB, free: 6.086 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002867/0.3705, allocations: 80.97 kB / 0.5362 GB, free: 6.074 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008329/0.3788, allocations: 4.022 MB / 0.5402 GB, free: 3.391 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007021/0.3858, allocations: 2.263 MB / 0.5424 GB, free: 1.77 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00318/0.389, allocations: 1.183 MB / 0.5435 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01003/0.399, allocations: 5.731 MB / 0.5491 GB, free: 12.59 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00652/0.4055, allocations: 4.35 MB / 0.5534 GB, free: 8.176 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004484/0.41, allocations: 2.177 MB / 0.5555 GB, free: 5.992 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005755/0.4158, allocations: 2.968 MB / 0.5584 GB, free: 3.016 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001686/0.4175, allocations: 0.5 MB / 0.5589 GB, free: 2.516 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004409/0.4219, allocations: 1.662 MB / 0.5605 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003692/0.4256, allocations: 2.739 MB / 0.5632 GB, free: 14.11 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005465/0.431, allocations: 3.096 MB / 0.5662 GB, free: 10.99 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.015/0.446, allocations: 10.16 MB / 0.5761 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.427e-06/0.446, allocations: 0 / 0.5761 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.446, allocations: 7.938 kB / 0.5761 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004703/0.4465, allocations: 0 / 0.5761 GB, free: 0.7891 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02074/0.4673, allocations: 6.84 MB / 0.5828 GB, free: 9.859 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.768e-05/0.4673, allocations: 8.031 kB / 0.5828 GB, free: 9.852 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003217/0.4705, allocations: 0.9177 MB / 0.5837 GB, free: 8.922 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08559/0.5561, allocations: 7.452 MB / 0.591 GB, free: 1.457 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01058/0.5667, allocations: 4.37 MB / 0.5953 GB, free: 13.02 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004217/0.5671, allocations: 350 kB / 0.5956 GB, free: 12.67 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001888/0.569, allocations: 431.7 kB / 0.596 GB, free: 12.25 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02882/0.5978, allocations: 13.77 MB / 0.6095 GB, free: 13.62 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002082/0.598, allocations: 55.56 kB / 0.6095 GB, free: 13.57 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008707/0.5989, allocations: 199.8 kB / 0.6097 GB, free: 13.38 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004109/0.603, allocations: 2.406 MB / 0.6121 GB, free: 10.97 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02664/0.6297, allocations: 11.61 MB / 0.6234 GB, free: 15.34 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.07045/0.7001, allocations: 51.18 MB / 0.6734 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01331/0.7134, allocations: 4.481 MB / 0.6777 GB, free: 6.043 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004164/0.7176, allocations: 2.58 MB / 0.6803 GB, free: 3.453 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01904/0.7366, allocations: 12.36 MB / 0.6923 GB, free: 6.543 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.323e-05/0.7367, allocations: 59.8 kB / 0.6924 GB, free: 6.477 MB / 0.545 GB Notification: Performance of pre-optimization done (n=191): time 3.958e-06/0.7367, allocations: 0 / 0.6924 GB, free: 6.477 MB / 0.545 GB Notification: Performance of matching and sorting (n=242): time 0.4016/1.138, allocations: 42.76 MB / 0.7341 GB, free: 163 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/1.138, allocations: 231.8 kB / 0.7344 GB, free: 162.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006379/1.145, allocations: 4.818 MB / 0.7391 GB, free: 161.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0004804/1.145, allocations: 61.23 kB / 0.7391 GB, free: 161 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002829/1.148, allocations: 4.059 MB / 0.7431 GB, free: 158.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001769/1.15, allocations: 0.9525 MB / 0.744 GB, free: 157.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003576/1.153, allocations: 1.471 MB / 0.7455 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.221e-05/1.154, allocations: 305.1 kB / 0.7458 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004403/1.158, allocations: 3.26 MB / 0.7489 GB, free: 155.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006094/1.164, allocations: 7.542 MB / 0.7563 GB, free: 147.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01072/1.175, allocations: 11.6 MB / 0.7676 GB, free: 133.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001197/1.175, allocations: 47.62 kB / 0.7677 GB, free: 133.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=940) (initialization): time 0.02497/1.2, allocations: 13.83 MB / 0.7812 GB, free: 119.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.369e-05/1.2, allocations: 73 kB / 0.7813 GB, free: 119.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001531/1.2, allocations: 148 kB / 0.7814 GB, free: 119.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01055/1.211, allocations: 3.779 MB / 0.7851 GB, free: 115.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004921/1.216, allocations: 1.591 MB / 0.7866 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02215/1.238, allocations: 19.17 MB / 0.8054 GB, free: 94.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00595/1.244, allocations: 443.6 kB / 0.8058 GB, free: 94.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001146/1.245, allocations: 439.8 kB / 0.8062 GB, free: 93.93 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.004134/1.249, allocations: 2.653 MB / 0.8088 GB, free: 91.26 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001118/1.25, allocations: 461 kB / 0.8092 GB, free: 90.81 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01541/1.265, allocations: 8.096 MB / 0.8171 GB, free: 82.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.287e-05/1.266, allocations: 24 kB / 0.8172 GB, free: 82.67 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.593e-05/1.266, allocations: 12 kB / 0.8172 GB, free: 82.66 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.171e-05/1.266, allocations: 15.95 kB / 0.8172 GB, free: 82.64 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03123/1.297, allocations: 17.25 MB / 0.834 GB, free: 65.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.093e-05/1.297, allocations: 0 / 0.834 GB, free: 65.37 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001903/1.299, allocations: 391.4 kB / 0.8344 GB, free: 64.99 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01058/1.309, allocations: 3.836 MB / 0.8382 GB, free: 61.14 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004518/1.31, allocations: 42.42 kB / 0.8382 GB, free: 61.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02015/1.33, allocations: 17.54 MB / 0.8553 GB, free: 43.42 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.33, allocations: 4.031 kB / 0.8553 GB, free: 43.42 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01968/1.35, allocations: 12.51 MB / 0.8675 GB, free: 30.88 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001198/1.351, allocations: 490 kB / 0.868 GB, free: 30.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009301/1.352, allocations: 32 kB / 0.868 GB, free: 30.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00236/1.354, allocations: 207.7 kB / 0.8682 GB, free: 30.14 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006157/1.355, allocations: 146.2 kB / 0.8684 GB, free: 30 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002009/1.355, allocations: 63.92 kB / 0.8684 GB, free: 29.93 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003764/1.359, allocations: 3.003 MB / 0.8714 GB, free: 26.94 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/1.359, allocations: 0 / 0.8714 GB, free: 26.94 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00745/1.366, allocations: 1.449 MB / 0.8728 GB, free: 25.49 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.0211/1.387, allocations: 13.21 MB / 0.8857 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01075/1.398, allocations: 7.579 MB / 0.8931 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/1.398, allocations: 0 / 0.8931 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00389/1.402, allocations: 2.734 MB / 0.8958 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003802/1.406, allocations: 0.5448 MB / 0.8963 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3677/1.773, allocations: 65.93 MB / 0.9607 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006939/1.78, allocations: 4.093 MB / 0.9647 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006008/1.786, allocations: 2.178 MB / 0.9668 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004288/1.791, allocations: 2.48 MB / 0.9692 GB, free: 188.1 MB / 0.6075 GB Notification: Performance of SimCode: time 1.633e-06/1.791, allocations: 1.75 kB / 0.9692 GB, free: 188.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1462/1.937, allocations: 103.3 MB / 1.07 GB, free: 90.93 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 31.1/33.04, allocations: 11.28 kB / 1.07 GB, free: 90.92 MB / 0.6075 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_0_0_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1)