Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.JointUSP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.JointUSP") translateModel(ModelicaTest.MultiBody.FourbarVariants.JointUSP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.JointUSP") [: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.1+maint.om/package.mo): time 0.005721/0.005721, allocations: 178.7 kB / 7.454 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.454/1.454, allocations: 170.6 MB / 178.4 MB, free: 15.46 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00189/0.00189, allocations: 115.8 kB / 217.7 MB, free: 8.23 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2221/0.2221, allocations: 37.97 MB / 294.8 MB, free: 9.633 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.372e-06/6.402e-06, allocations: 1.188 kB / 349.5 MB, free: 37.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09278/0.0928, allocations: 48.71 MB / 398.2 MB, free: 5.684 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.346/0.4389, allocations: 101.2 MB / 499.4 MB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.4391, allocations: 71.56 kB / 499.5 MB, free: 12.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.5925/1.032, allocations: 137.3 MB / 0.6219 GB, free: 74.71 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004534/1.032, allocations: 131.3 kB / 0.622 GB, free: 74.71 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2162 * Number of variables: 2162 Notification: Performance of Generate backend data structure: time 0.02377/1.056, allocations: 6.536 MB / 0.6284 GB, free: 72.6 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/1.056, allocations: 11 kB / 0.6284 GB, free: 72.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03583/1.092, allocations: 8.931 MB / 0.6371 GB, free: 72.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02486/1.117, allocations: 9.192 MB / 0.6461 GB, free: 71.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003702/1.117, allocations: 203.5 kB / 0.6463 GB, free: 71.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003051/1.12, allocations: 390.8 kB / 0.6467 GB, free: 71.27 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01745/1.138, allocations: 9.66 MB / 0.6561 GB, free: 71.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02715/1.165, allocations: 13.57 MB / 0.6694 GB, free: 68.06 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003092/1.165, allocations: 78.78 kB / 0.6694 GB, free: 68.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001174/1.166, allocations: 39.47 kB / 0.6695 GB, free: 68.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001878/1.168, allocations: 1.479 MB / 0.6709 GB, free: 68.04 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07919/1.248, allocations: 63.72 MB / 0.7331 GB, free: 25.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005912/1.253, allocations: 4.292 MB / 0.7373 GB, free: 22.45 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003921/1.257, allocations: 3.362 MB / 0.7406 GB, free: 19.34 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01997/1.277, allocations: 12.36 MB / 0.7527 GB, free: 8.148 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/1.278, allocations: 64.56 kB / 0.7527 GB, free: 8.078 MB / 426.7 MB Notification: Performance of pre-optimization done (n=245): time 5.821e-06/1.278, allocations: 0 / 0.7527 GB, free: 8.078 MB / 426.7 MB Notification: Performance of matching and sorting (n=338): time 0.07697/1.355, allocations: 27.28 MB / 0.7794 GB, free: 1.547 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/1.355, allocations: 251.6 kB / 0.7796 GB, free: 1.254 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2033/1.558, allocations: 4.962 MB / 0.7845 GB, free: 116.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009749/1.559, allocations: 25.7 kB / 0.7845 GB, free: 116.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002918/1.562, allocations: 4.009 MB / 0.7884 GB, free: 115.6 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001645/1.564, allocations: 1.197 MB / 0.7896 GB, free: 115 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006725/1.564, allocations: 0 / 0.7896 GB, free: 115 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003865/1.565, allocations: 0.6582 MB / 0.7902 GB, free: 114.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004983/1.57, allocations: 3.522 MB / 0.7937 GB, free: 114.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008286/1.578, allocations: 8.157 MB / 0.8016 GB, free: 108.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009165/1.587, allocations: 5.333 MB / 0.8068 GB, free: 108.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001615/1.587, allocations: 48.5 kB / 0.8069 GB, free: 108.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=1097) (initialization): time 0.03107/1.618, allocations: 13.6 MB / 0.8202 GB, free: 108.1 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/1.619, allocations: 7.25 kB / 0.8202 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002742/1.619, allocations: 163.4 kB / 0.8203 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01231/1.631, allocations: 3.37 MB / 0.8236 GB, free: 108.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007146/1.638, allocations: 1.816 MB / 0.8254 GB, free: 107.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02432/1.663, allocations: 16.06 MB / 0.8411 GB, free: 105.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007919/1.671, allocations: 277.7 kB / 0.8413 GB, free: 105.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002083/1.673, allocations: 480.9 kB / 0.8418 GB, free: 105.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 748 * Number of states: 0 () * Number of discrete variables: 43 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.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],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (996): * Single equations (assignments): 992 * 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 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001737/1.675, allocations: 0.5017 MB / 0.8423 GB, free: 105.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001229/1.676, allocations: 0.497 MB / 0.8428 GB, free: 105 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01784/1.694, allocations: 8.495 MB / 0.8511 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001019/1.694, allocations: 29.47 kB / 0.8511 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.577e-05/1.694, allocations: 13.16 kB / 0.8511 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.548e-05/1.694, allocations: 26.97 kB / 0.8511 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03839/1.732, allocations: 17.12 MB / 0.8679 GB, free: 95.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.069e-05/1.732, allocations: 7.938 kB / 0.8679 GB, free: 95.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002642/1.735, allocations: 459.2 kB / 0.8683 GB, free: 95.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01173/1.747, allocations: 2.968 MB / 0.8712 GB, free: 95.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009295/1.748, allocations: 14.08 kB / 0.8712 GB, free: 95.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02023/1.768, allocations: 13.99 MB / 0.8849 GB, free: 88.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-05/1.768, allocations: 14.81 kB / 0.8849 GB, free: 88.81 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02319/1.791, allocations: 13.94 MB / 0.8985 GB, free: 76.57 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003249/1.794, allocations: 1.053 MB / 0.8995 GB, free: 75.58 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001085/1.796, allocations: 8 kB / 0.8995 GB, free: 75.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002895/1.798, allocations: 107.1 kB / 0.8996 GB, free: 75.51 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004342/1.799, allocations: 161.5 kB / 0.8998 GB, free: 75.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002854/1.799, allocations: 95.89 kB / 0.8999 GB, free: 75.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.006211/1.805, allocations: 3.039 MB / 0.9029 GB, free: 72.69 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01027/1.816, allocations: 1.432 MB / 0.9043 GB, free: 71.27 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (254): * Single equations (assignments): 250 * 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 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000986/1.817, allocations: 199.6 kB / 0.9045 GB, free: 71.09 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01301/1.83, allocations: 8.474 MB / 0.9127 GB, free: 63.32 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/1.83, allocations: 0 / 0.9127 GB, free: 63.32 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004422/1.834, allocations: 3.288 MB / 0.9159 GB, free: 60.29 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00345/1.838, allocations: 0.5606 MB / 0.9165 GB, free: 59.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03158/1.869, allocations: 13.06 MB / 0.9292 GB, free: 48.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2436/2.113, allocations: 5.308 MB / 0.9344 GB, free: 106.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.503e-06/2.113, allocations: 3.188 kB / 0.9344 GB, free: 106.2 MB / 442.7 MB Notification: Performance of Templates: time 0.1253/2.238, allocations: 70.79 MB / 1.004 GB, free: 99.61 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.JointUSP.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.JointUSP.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.JointUSP -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.FourbarVariants.JointUSP.pipe 2>&1)