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.001225/0.001225, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.00136/0.00136, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.42/1.42, allocations: 222.9 MB / 242.2 MB, free: 15.22 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.2266/0.2266, allocations: 44.18 MB / 336.6 MB, free: 2.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 57.42 kB / 408.5 MB, free: 27.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1283, allocations: 60.83 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.01408/0.1425, allocations: 13.27 MB / 482.6 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009243/0.1518, allocations: 4.841 MB / 487.5 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002539/0.1543, allocations: 87.75 kB / 487.6 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007508/0.1619, allocations: 3.976 MB / 491.5 MB, free: 8.023 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005657/0.1676, allocations: 2.202 MB / 493.7 MB, free: 5.812 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002762/0.1704, allocations: 1.181 MB / 494.9 MB, free: 4.629 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007837/0.1782, allocations: 5.74 MB / 0.4889 GB, free: 14.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006813/0.1851, allocations: 5.186 MB / 0.494 GB, free: 9.625 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003947/0.189, allocations: 2.177 MB / 0.4961 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004539/0.1936, allocations: 2.956 MB / 0.499 GB, free: 4.477 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001604/0.1952, allocations: 0.5039 MB / 0.4995 GB, free: 3.973 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004039/0.1993, allocations: 1.658 MB / 0.5011 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2765/0.4758, allocations: 2.647 MB / 0.5037 GB, free: 20.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007707/0.4836, allocations: 3.097 MB / 0.5067 GB, free: 19.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01612/0.4997, allocations: 9.847 MB / 0.5163 GB, free: 18.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.4998, allocations: 3.859 kB / 0.5163 GB, free: 18.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4998, allocations: 1.594 kB / 0.5163 GB, free: 18.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004299/0.5002, allocations: 0 / 0.5163 GB, free: 18.43 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.02914/0.5294, allocations: 6.673 MB / 0.5229 GB, free: 15.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.22e-05/0.5295, allocations: 12.34 kB / 0.5229 GB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004859/0.5343, allocations: 0.912 MB / 0.5238 GB, free: 15.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09315/0.6275, allocations: 7.41 MB / 0.531 GB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01185/0.6394, allocations: 4.281 MB / 0.5352 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000589/0.6401, allocations: 349.9 kB / 0.5355 GB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003484/0.6436, allocations: 436.7 kB / 0.5359 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03303/0.6766, allocations: 13.78 MB / 0.5494 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000187/0.6769, allocations: 47.91 kB / 0.5494 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001014/0.6779, allocations: 207 kB / 0.5496 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00361/0.6815, allocations: 2.41 MB / 0.552 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02539/0.7069, allocations: 11.61 MB / 0.5633 GB, free: 2.598 MB / 398.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.08008/0.787, allocations: 51.32 MB / 0.6134 GB, free: 14.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01454/0.8016, allocations: 4.665 MB / 0.618 GB, free: 9.684 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005196/0.8068, allocations: 2.776 MB / 0.6207 GB, free: 6.898 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02326/0.8301, allocations: 12.34 MB / 0.6327 GB, free: 10.07 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.412e-05/0.8303, allocations: 55.86 kB / 0.6328 GB, free: 10.01 MB / 478.1 MB Notification: Performance of pre-optimization done (n=191): time 9.748e-06/0.8303, allocations: 7.984 kB / 0.6328 GB, free: 10 MB / 478.1 MB Notification: Performance of matching and sorting (n=242): time 0.1656/0.9959, allocations: 42.44 MB / 0.6742 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001568/0.9961, allocations: 234.5 kB / 0.6745 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01127/1.007, allocations: 4.798 MB / 0.6792 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007458/1.008, allocations: 68.16 kB / 0.6792 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.004169/1.012, allocations: 3.898 MB / 0.683 GB, free: 6.457 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001753/1.014, allocations: 0.9128 MB / 0.6839 GB, free: 5.551 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006066/1.02, allocations: 1.458 MB / 0.6853 GB, free: 4.086 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001155/1.02, allocations: 309.1 kB / 0.6856 GB, free: 3.781 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006697/1.027, allocations: 3.251 MB / 0.6888 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01001/1.037, allocations: 7.553 MB / 0.6962 GB, free: 6.934 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3153/1.352, allocations: 11.59 MB / 0.7075 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002325/1.353, allocations: 42.62 kB / 0.7075 GB, free: 179.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=940) (initialization): time 0.04214/1.395, allocations: 13.86 MB / 0.7211 GB, free: 176 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002181/1.395, allocations: 74.19 kB / 0.7211 GB, free: 176 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003365/1.396, allocations: 150.7 kB / 0.7213 GB, free: 176 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01157/1.407, allocations: 3.786 MB / 0.725 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005647/1.413, allocations: 1.592 MB / 0.7265 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02587/1.439, allocations: 19.17 MB / 0.7453 GB, free: 161.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00737/1.446, allocations: 440.8 kB / 0.7457 GB, free: 161.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001846/1.448, allocations: 438.6 kB / 0.7461 GB, free: 160.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.008275/1.456, allocations: 2.657 MB / 0.7487 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001732/1.458, allocations: 434.1 kB / 0.7491 GB, free: 158.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01953/1.478, allocations: 8.138 MB / 0.7571 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.28e-05/1.478, allocations: 27.94 kB / 0.7571 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-05/1.478, allocations: 12 kB / 0.7571 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.699e-05/1.478, allocations: 11.97 kB / 0.7571 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03788/1.516, allocations: 17.35 MB / 0.7741 GB, free: 132.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.755e-05/1.516, allocations: 0 / 0.7741 GB, free: 132.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002062/1.518, allocations: 393 kB / 0.7744 GB, free: 132.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01108/1.529, allocations: 3.836 MB / 0.7782 GB, free: 128.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008939/1.53, allocations: 48.67 kB / 0.7782 GB, free: 128.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02336/1.553, allocations: 17.54 MB / 0.7954 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/1.553, allocations: 0 / 0.7954 GB, free: 110.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02278/1.576, allocations: 12.52 MB / 0.8076 GB, free: 98.28 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001569/1.578, allocations: 463.4 kB / 0.808 GB, free: 97.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00156/1.579, allocations: 37.09 kB / 0.8081 GB, free: 97.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003347/1.583, allocations: 205.3 kB / 0.8083 GB, free: 97.57 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008432/1.583, allocations: 146.3 kB / 0.8084 GB, free: 97.43 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003653/1.584, allocations: 73.03 kB / 0.8085 GB, free: 97.36 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0067/1.591, allocations: 3.003 MB / 0.8114 GB, free: 94.36 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.62e-07/1.591, allocations: 0 / 0.8114 GB, free: 94.36 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009602/1.6, allocations: 1.443 MB / 0.8128 GB, free: 92.93 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.02401/1.624, allocations: 13.23 MB / 0.8257 GB, free: 79.66 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01607/1.64, allocations: 9.505 MB / 0.835 GB, free: 70.18 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/1.64, allocations: 7.828 kB / 0.835 GB, free: 70.18 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004466/1.645, allocations: 2.968 MB / 0.8379 GB, free: 67.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005967/1.651, allocations: 0.5526 MB / 0.8384 GB, free: 66.66 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4059/2.057, allocations: 74.72 MB / 0.9114 GB, free: 193.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008334/2.065, allocations: 4.096 MB / 0.9154 GB, free: 192.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007122/2.072, allocations: 2.171 MB / 0.9175 GB, free: 192.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005307/2.078, allocations: 2.487 MB / 0.92 GB, free: 192.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.143e-06/2.078, allocations: 0 / 0.92 GB, free: 192.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1659/2.244, allocations: 107.2 MB / 1.025 GB, free: 101.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/14.42, allocations: 4 kB / 1.025 GB, free: 101.8 MB / 0.545 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)