Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001316/0.001315, allocations: 192.5 kB / 7.806 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.37/1.37, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.0008723/0.0008724, allocations: 86.89 kB / 261.4 MB, free: 13.55 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.1803/0.1803, allocations: 43.49 MB / 352.8 MB, free: 1.977 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1975/0.3778, allocations: 64.96 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.696, allocations: 58.83 MB / 476.6 MB, free: 5.32 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1576/0.8536, allocations: 113.9 MB / 0.5767 GB, free: 1.031 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.854, allocations: 71.97 kB / 0.5768 GB, free: 0.9609 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.6214/1.475, allocations: 125 MB / 0.6989 GB, free: 105.8 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/1.475, allocations: 8.844 kB / 0.6989 GB, free: 105.8 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02203/1.498, allocations: 4.308 MB / 0.7031 GB, free: 103.5 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02403/1.522, allocations: 6.718 MB / 0.7096 GB, free: 98.57 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005011/1.522, allocations: 260.8 kB / 0.7099 GB, free: 98.31 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003237/1.525, allocations: 319.9 kB / 0.7102 GB, free: 98 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01951/1.545, allocations: 8.721 MB / 0.7187 GB, free: 89.28 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03138/1.576, allocations: 12.3 MB / 0.7307 GB, free: 75.85 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002772/1.577, allocations: 75.33 kB / 0.7308 GB, free: 75.78 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001529/1.578, allocations: 36 kB / 0.7308 GB, free: 75.74 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001767/1.58, allocations: 1.375 MB / 0.7322 GB, free: 74.37 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0723/1.652, allocations: 58.82 MB / 0.7896 GB, free: 14.06 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005725/1.658, allocations: 3.88 MB / 0.7934 GB, free: 10.03 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003237/1.661, allocations: 2.931 MB / 0.7963 GB, free: 7.086 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01961/1.681, allocations: 12.61 MB / 0.8086 GB, free: 9.898 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.148e-05/1.681, allocations: 59.75 kB / 0.8086 GB, free: 9.832 MB / 490.7 MB Notification: Performance of pre-optimization done (n=191): time 6.913e-06/1.681, allocations: 8 kB / 0.8086 GB, free: 9.824 MB / 490.7 MB Notification: Performance of matching and sorting (n=242): time 0.3173/1.999, allocations: 30.68 MB / 0.8386 GB, free: 176.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.426e-05/1.999, allocations: 233.4 kB / 0.8388 GB, free: 176.4 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007296/2.006, allocations: 3.734 MB / 0.8425 GB, free: 176.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006827/2.007, allocations: 25.7 kB / 0.8425 GB, free: 176.1 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002167/2.009, allocations: 3.658 MB / 0.8461 GB, free: 174.8 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001127/2.01, allocations: 0.8882 MB / 0.8469 GB, free: 174.2 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003369/2.01, allocations: 0 / 0.8469 GB, free: 174.2 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003928/2.011, allocations: 0.6149 MB / 0.8475 GB, free: 173.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003977/2.015, allocations: 3.16 MB / 0.8506 GB, free: 173.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00689/2.022, allocations: 7.547 MB / 0.858 GB, free: 168.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007743/2.029, allocations: 4.807 MB / 0.8627 GB, free: 168.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001646/2.03, allocations: 46.66 kB / 0.8627 GB, free: 168.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=968) (initialization): time 0.0281/2.058, allocations: 12.73 MB / 0.8752 GB, free: 165.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/2.058, allocations: 3.188 kB / 0.8752 GB, free: 165.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003466/2.058, allocations: 161.3 kB / 0.8753 GB, free: 165.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01112/2.069, allocations: 3.58 MB / 0.8788 GB, free: 164.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005388/2.075, allocations: 1.648 MB / 0.8804 GB, free: 164.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02266/2.097, allocations: 16.07 MB / 0.8961 GB, free: 157.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0065/2.104, allocations: 291.7 kB / 0.8964 GB, free: 157.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001523/2.106, allocations: 442.7 kB / 0.8968 GB, free: 157.4 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 716 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (885): * Single equations (assignments): 881 * 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.002234/2.108, allocations: 497.3 kB / 0.8973 GB, free: 157 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001142/2.109, allocations: 408.1 kB / 0.8977 GB, free: 156.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01755/2.127, allocations: 7.755 MB / 0.9053 GB, free: 154.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-05/2.127, allocations: 32.59 kB / 0.9053 GB, free: 154.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.572e-05/2.127, allocations: 11.78 kB / 0.9053 GB, free: 154.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.151e-05/2.127, allocations: 12.14 kB / 0.9053 GB, free: 154.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03394/2.161, allocations: 15.95 MB / 0.9209 GB, free: 143.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.045e-05/2.161, allocations: 4 kB / 0.9209 GB, free: 143.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002195/2.163, allocations: 344.2 kB / 0.9212 GB, free: 142.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01156/2.175, allocations: 3.51 MB / 0.9247 GB, free: 140.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007325/2.175, allocations: 9.734 kB / 0.9247 GB, free: 140.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02064/2.196, allocations: 14.68 MB / 0.939 GB, free: 127.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/2.196, allocations: 4 kB / 0.939 GB, free: 127.8 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02449/2.221, allocations: 12.23 MB / 0.9509 GB, free: 116.6 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02487/2.246, allocations: 16.33 MB / 0.9669 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002579/2.248, allocations: 0.9018 MB / 0.9678 GB, free: 99.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001477/2.25, allocations: 4 kB / 0.9678 GB, free: 99.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003236/2.253, allocations: 119.7 kB / 0.9679 GB, free: 99.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004464/2.253, allocations: 105.9 kB / 0.968 GB, free: 99.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002461/2.254, allocations: 59.98 kB / 0.968 GB, free: 99.04 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.004612/2.258, allocations: 2.51 MB / 0.9705 GB, free: 96.53 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009642/2.268, allocations: 1.249 MB / 0.9717 GB, free: 95.29 MB / 0.4948 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 () * 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.0009843/2.269, allocations: 187 kB / 0.9719 GB, free: 95.11 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01138/2.28, allocations: 7.508 MB / 0.9792 GB, free: 87.63 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/2.28, allocations: 3.844 kB / 0.9792 GB, free: 87.63 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003721/2.284, allocations: 2.815 MB / 0.982 GB, free: 84.82 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002838/2.287, allocations: 399.2 kB / 0.9824 GB, free: 84.44 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02539/2.312, allocations: 10.79 MB / 0.9929 GB, free: 73.57 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008799/2.321, allocations: 4.51 MB / 0.9973 GB, free: 69.07 MB / 0.4948 GB Notification: Performance of SimCode: time 1.664e-06/2.321, allocations: 0 / 0.9973 GB, free: 69.07 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUSP2_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Joints_JointUSP2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.JointUSP2.pipe 2>&1)