Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_trunk_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.001307/0.001307, allocations: 117.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001581/0.001581, allocations: 204.6 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.418/1.418, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2124/0.2124, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 67.89 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3662/0.3677, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.01525/0.383, allocations: 13.24 MB / 0.5435 GB, free: 3.016 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01121/0.3943, allocations: 4.854 MB / 0.5482 GB, free: 15.2 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003174/0.3975, allocations: 85.5 kB / 0.5483 GB, free: 15.18 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007906/0.4055, allocations: 3.978 MB / 0.5522 GB, free: 11.55 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006603/0.4121, allocations: 2.222 MB / 0.5543 GB, free: 9.316 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003176/0.4153, allocations: 1.182 MB / 0.5555 GB, free: 8.133 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008835/0.4242, allocations: 5.823 MB / 0.5612 GB, free: 2.301 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009649/0.4339, allocations: 5.169 MB / 0.5662 GB, free: 13.07 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004799/0.4387, allocations: 2.165 MB / 0.5683 GB, free: 10.89 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004864/0.4436, allocations: 2.968 MB / 0.5712 GB, free: 7.918 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001713/0.4454, allocations: 0.5 MB / 0.5717 GB, free: 7.418 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003774/0.4492, allocations: 1.643 MB / 0.5733 GB, free: 5.773 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003375/0.4525, allocations: 2.654 MB / 0.5759 GB, free: 3.113 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005658/0.4582, allocations: 3.077 MB / 0.5789 GB, free: 20 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01373/0.472, allocations: 10.11 MB / 0.5888 GB, free: 5.875 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.472, allocations: 0 / 0.5888 GB, free: 5.875 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.472, allocations: 0 / 0.5888 GB, free: 5.875 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003651/0.4724, allocations: 0 / 0.5888 GB, free: 5.875 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.02262/0.4951, allocations: 6.806 MB / 0.5954 GB, free: 14.98 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.4951, allocations: 8.031 kB / 0.5954 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00289/0.498, allocations: 0.9255 MB / 0.5963 GB, free: 14.03 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09028/0.5883, allocations: 7.444 MB / 0.6036 GB, free: 6.574 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01251/0.6009, allocations: 4.147 MB / 0.6077 GB, free: 2.367 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005018/0.6014, allocations: 354 kB / 0.608 GB, free: 2.012 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002165/0.6036, allocations: 435.7 kB / 0.6084 GB, free: 1.586 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0283/0.6319, allocations: 13.78 MB / 0.6219 GB, free: 2.945 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002424/0.6322, allocations: 51.58 kB / 0.6219 GB, free: 2.895 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001666/0.6339, allocations: 195.8 kB / 0.6221 GB, free: 2.703 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004021/0.6379, allocations: 2.414 MB / 0.6245 GB, free: 296 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02698/0.665, allocations: 11.62 MB / 0.6358 GB, free: 4.656 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.0722/0.7372, allocations: 51.16 MB / 0.6858 GB, free: 8 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01279/0.75, allocations: 4.685 MB / 0.6904 GB, free: 11.18 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00382/0.7539, allocations: 2.779 MB / 0.6931 GB, free: 8.379 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02135/0.7753, allocations: 12.44 MB / 0.7052 GB, free: 11.37 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.187e-05/0.7754, allocations: 59.81 kB / 0.7053 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=191): time 5.279e-06/0.7754, allocations: 0 / 0.7053 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=242): time 0.4225/1.198, allocations: 42.58 MB / 0.7469 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.508e-05/1.198, allocations: 239.5 kB / 0.7471 GB, free: 150.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005421/1.203, allocations: 4.806 MB / 0.7518 GB, free: 145.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005059/1.204, allocations: 57.7 kB / 0.7518 GB, free: 145.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001661/1.206, allocations: 4.051 MB / 0.7558 GB, free: 142.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008339/1.206, allocations: 0.9584 MB / 0.7567 GB, free: 141.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001524/1.208, allocations: 1.469 MB / 0.7582 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.975e-05/1.208, allocations: 305.1 kB / 0.7585 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003552/1.212, allocations: 3.258 MB / 0.7616 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00512/1.217, allocations: 7.551 MB / 0.769 GB, free: 126.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009858/1.227, allocations: 11.61 MB / 0.7803 GB, free: 112.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.08e-05/1.227, allocations: 40 kB / 0.7804 GB, free: 112.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=940) (initialization): time 0.02405/1.251, allocations: 13.87 MB / 0.7939 GB, free: 98.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.174e-05/1.251, allocations: 68 kB / 0.794 GB, free: 98.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001297/1.251, allocations: 156 kB / 0.7941 GB, free: 98.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01027/1.261, allocations: 3.776 MB / 0.7978 GB, free: 94.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004774/1.266, allocations: 1.602 MB / 0.7994 GB, free: 93.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02176/1.288, allocations: 19.17 MB / 0.8181 GB, free: 73.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005678/1.294, allocations: 447.5 kB / 0.8185 GB, free: 73.54 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001062/1.295, allocations: 447.5 kB / 0.819 GB, free: 73.11 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.003643/1.298, allocations: 2.649 MB / 0.8216 GB, free: 70.45 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008316/1.299, allocations: 457 kB / 0.822 GB, free: 70 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01483/1.314, allocations: 8.145 MB / 0.8299 GB, free: 61.82 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-05/1.314, allocations: 24 kB / 0.83 GB, free: 61.8 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/1.314, allocations: 12 kB / 0.83 GB, free: 61.79 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.016e-05/1.314, allocations: 15.95 kB / 0.83 GB, free: 61.77 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02931/1.344, allocations: 17.3 MB / 0.8469 GB, free: 44.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.851e-05/1.344, allocations: 0 / 0.8469 GB, free: 44.45 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001872/1.345, allocations: 399.4 kB / 0.8473 GB, free: 44.06 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01024/1.356, allocations: 3.835 MB / 0.851 GB, free: 40.21 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003767/1.356, allocations: 43.98 kB / 0.8511 GB, free: 40.17 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01922/1.375, allocations: 17.53 MB / 0.8682 GB, free: 22.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.375, allocations: 0 / 0.8682 GB, free: 22.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01952/1.395, allocations: 12.57 MB / 0.8805 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/1.396, allocations: 486 kB / 0.8809 GB, free: 9.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006339/1.397, allocations: 36 kB / 0.881 GB, free: 9.375 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0021/1.399, allocations: 215.7 kB / 0.8812 GB, free: 9.164 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004815/1.399, allocations: 154.1 kB / 0.8813 GB, free: 9.012 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001758/1.4, allocations: 56 kB / 0.8814 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003426/1.403, allocations: 2.998 MB / 0.8843 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/1.403, allocations: 0 / 0.8843 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005108/1.408, allocations: 1.429 MB / 0.8857 GB, free: 4.539 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.02243/1.431, allocations: 13.26 MB / 0.8986 GB, free: 7.238 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01235/1.443, allocations: 7.935 MB / 0.9064 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/1.443, allocations: 3.938 kB / 0.9064 GB, free: 15.31 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.004285/1.447, allocations: 2.984 MB / 0.9093 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003321/1.451, allocations: 0.5427 MB / 0.9098 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.378/1.829, 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.00436/1.833, allocations: 4.089 MB / 0.9783 GB, free: 196.9 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.004458/1.838, allocations: 2.173 MB / 0.9804 GB, free: 196.4 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002908/1.84, allocations: 2.483 MB / 0.9828 GB, free: 194.2 MB / 0.6231 GB Notification: Performance of SimCode: time 1.443e-06/1.84, allocations: 3.938 kB / 0.9828 GB, free: 194.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1306/1.971, allocations: 102.8 MB / 1.083 GB, free: 93.54 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 32.76/34.73, allocations: 8.047 kB / 1.083 GB, free: 93.53 MB / 0.6231 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1)