Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009348/0.0009348, allocations: 170.9 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.242/1.242, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008081/0.0008081, allocations: 86.34 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.302/0.302, allocations: 43.56 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003503/0.0003504, allocations: 12 kB / 432.1 MB, free: 5.734 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1081, allocations: 58.85 MB / 490.9 MB, free: 10.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.JointUSP2): time 0.2233/0.3314, allocations: 43.7 MB / 0.5221 GB, free: 19.37 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02092/0.3524, allocations: 10.12 MB / 0.532 GB, free: 12.48 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008096/0.3606, allocations: 207 kB / 0.5322 GB, free: 12.45 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005682/0.3663, allocations: 2.251 MB / 0.5344 GB, free: 11.64 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0157/0.382, allocations: 6.81 MB / 0.541 GB, free: 8.781 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003488/0.3855, allocations: 1.041 MB / 0.542 GB, free: 8.395 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.02492/0.4104, allocations: 20.53 MB / 0.5621 GB, free: 1.48 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0096/0.4201, allocations: 6.814 MB / 0.5687 GB, free: 10.6 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00376/0.4239, allocations: 1.701 MB / 0.5704 GB, free: 8.895 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004266/0.4282, allocations: 2.683 MB / 0.573 GB, free: 6.203 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001134/0.4294, allocations: 204 kB / 0.5732 GB, free: 6.004 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00314/0.4325, allocations: 1.42 MB / 0.5746 GB, free: 4.582 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002814/0.4354, allocations: 2.283 MB / 0.5768 GB, free: 2.293 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004226/0.4396, allocations: 2.553 MB / 0.5793 GB, free: 15.71 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009191/0.4488, allocations: 7.906 MB / 0.587 GB, free: 7.793 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.4489, allocations: 0 / 0.587 GB, free: 7.793 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4489, allocations: 0 / 0.587 GB, free: 7.793 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003093/0.4492, allocations: 0 / 0.587 GB, free: 7.793 MB / 410.7 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.0137/0.4629, allocations: 5.528 MB / 0.5924 GB, free: 2.191 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.463, allocations: 8.031 kB / 0.5924 GB, free: 2.184 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002484/0.4654, allocations: 0.9255 MB / 0.5934 GB, free: 1.246 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08369/0.5492, allocations: 7.601 MB / 0.6008 GB, free: 9.629 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009035/0.5582, allocations: 4.591 MB / 0.6053 GB, free: 4.977 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003286/0.5586, allocations: 349.8 kB / 0.6056 GB, free: 4.625 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001151/0.5598, allocations: 431.7 kB / 0.606 GB, free: 4.203 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02384/0.5836, allocations: 13.77 MB / 0.6195 GB, free: 5.574 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001325/0.5838, allocations: 51.52 kB / 0.6195 GB, free: 5.523 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005065/0.5843, allocations: 203.8 kB / 0.6197 GB, free: 5.324 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003417/0.5877, allocations: 2.41 MB / 0.6221 GB, free: 2.914 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0256/0.6133, allocations: 11.59 MB / 0.6334 GB, free: 7.305 MB / 458.7 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.2803/0.8937, allocations: 51.38 MB / 0.6835 GB, free: 104.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01132/0.9051, allocations: 4.666 MB / 0.6881 GB, free: 103.5 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003561/0.9087, allocations: 2.765 MB / 0.6908 GB, free: 103.4 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01639/0.9251, allocations: 12.36 MB / 0.7029 GB, free: 97.99 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/0.9252, allocations: 55.84 kB / 0.7029 GB, free: 97.94 MB / 490.7 MB Notification: Performance of pre-optimization done (n=191): time 5.42e-06/0.9252, allocations: 3.25 kB / 0.7029 GB, free: 97.94 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.1394/1.065, allocations: 42.46 MB / 0.7444 GB, free: 84.61 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.578e-05/1.065, allocations: 234.6 kB / 0.7446 GB, free: 84.33 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005558/1.07, allocations: 4.799 MB / 0.7493 GB, free: 79.53 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000501/1.071, allocations: 62.95 kB / 0.7494 GB, free: 79.46 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001799/1.073, allocations: 3.902 MB / 0.7532 GB, free: 75.56 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009038/1.074, allocations: 0.9242 MB / 0.7541 GB, free: 74.64 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004105/1.074, allocations: 144 kB / 0.7542 GB, free: 74.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002636/1.074, allocations: 0.6078 MB / 0.7548 GB, free: 73.89 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003864/1.078, allocations: 3.223 MB / 0.758 GB, free: 70.66 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005169/1.083, allocations: 7.527 MB / 0.7653 GB, free: 61.08 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009909/1.093, allocations: 11.55 MB / 0.7766 GB, free: 47.55 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.857e-05/1.093, allocations: 44 kB / 0.7766 GB, free: 47.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=940) (initialization): time 0.02472/1.118, allocations: 13.8 MB / 0.7901 GB, free: 33.69 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.061e-05/1.118, allocations: 68 kB / 0.7902 GB, free: 33.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001533/1.118, allocations: 152 kB / 0.7903 GB, free: 33.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01053/1.129, allocations: 3.779 MB / 0.794 GB, free: 29.69 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004679/1.134, allocations: 1.591 MB / 0.7955 GB, free: 28.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02167/1.155, allocations: 18.02 MB / 0.8131 GB, free: 9.941 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005083/1.16, allocations: 447.3 kB / 0.8136 GB, free: 9.504 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008042/1.161, allocations: 432 kB / 0.814 GB, free: 9.082 MB / 490.7 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003377/1.165, allocations: 2.672 MB / 0.8166 GB, free: 6.398 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006524/1.165, allocations: 430.4 kB / 0.817 GB, free: 5.973 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0161/1.181, allocations: 8.13 MB / 0.8249 GB, free: 13.82 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.192e-05/1.182, allocations: 24 kB / 0.825 GB, free: 13.79 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.052e-05/1.182, allocations: 12 kB / 0.825 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-05/1.182, allocations: 11.95 kB / 0.825 GB, free: 13.77 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03475/1.216, allocations: 17.35 MB / 0.8419 GB, free: 12.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-05/1.216, allocations: 0 / 0.8419 GB, free: 12.39 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002013/1.219, allocations: 391.4 kB / 0.8423 GB, free: 12.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0122/1.231, allocations: 3.827 MB / 0.846 GB, free: 8.176 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005293/1.231, allocations: 43.98 kB / 0.8461 GB, free: 8.133 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02408/1.255, allocations: 16.45 MB / 0.8621 GB, free: 7.551 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/1.255, allocations: 0 / 0.8621 GB, free: 7.551 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2359/1.491, allocations: 12.5 MB / 0.8744 GB, free: 167 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002526/1.494, allocations: 0.9327 MB / 0.8753 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001003/1.495, allocations: 46.58 kB / 0.8753 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002718/1.498, allocations: 206.5 kB / 0.8755 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008798/1.499, allocations: 143.9 kB / 0.8756 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002342/1.499, allocations: 65.53 kB / 0.8757 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005425/1.504, allocations: 2.999 MB / 0.8786 GB, free: 166.8 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.6e-07/1.504, allocations: 0 / 0.8786 GB, free: 166.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007401/1.512, allocations: 1.44 MB / 0.88 GB, free: 166.8 MB / 0.5261 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02192/1.534, allocations: 13.22 MB / 0.893 GB, free: 162.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01094/1.545, allocations: 7.854 MB / 0.9006 GB, free: 159.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.238e-06/1.545, allocations: 3.719 kB / 0.9006 GB, free: 159.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004227/1.549, allocations: 2.964 MB / 0.9035 GB, free: 158.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003959/1.553, allocations: 0.5139 MB / 0.904 GB, free: 158.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08799/1.641, allocations: 50.9 MB / 0.9537 GB, free: 124.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004803/1.646, allocations: 4.116 MB / 0.9577 GB, free: 121.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002935/1.649, allocations: 2.537 MB / 0.9602 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of SimCode: time 1.102e-06/1.649, allocations: 0 / 0.9602 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.908/10.56, allocations: 121.4 MB / 1.079 GB, free: 157.2 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1)