Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR",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 4.0.0+maint.om/package.mo): time 0.001506/0.001505, allocations: 181.9 kB / 8.521 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 221.4 MB / 230.3 MB, free: 7.77 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009499/0.00095, allocations: 88.73 kB / 281.2 MB, free: 5.512 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.184/0.184, allocations: 44.14 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2396/0.4237, allocations: 68.03 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.5398, allocations: 61.91 MB / 0.4942 GB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3609/0.9007, allocations: 118.8 MB / 0.6102 GB, free: 9.859 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/0.901, allocations: 75.97 kB / 0.6103 GB, free: 9.785 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: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.6929/1.594, allocations: 176.2 MB / 0.7824 GB, free: 97.55 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.245e-05/1.594, allocations: 15.94 kB / 0.7824 GB, free: 97.54 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02929/1.623, allocations: 6.073 MB / 0.7883 GB, free: 91.45 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02791/1.651, allocations: 9.315 MB / 0.7974 GB, free: 82.12 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005401/1.652, allocations: 248 kB / 0.7976 GB, free: 81.88 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004857/1.657, allocations: 463.7 kB / 0.7981 GB, free: 81.43 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02376/1.681, allocations: 13.58 MB / 0.8114 GB, free: 67.85 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03007/1.711, allocations: 18.03 MB / 0.829 GB, free: 48.39 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002536/1.711, allocations: 99.09 kB / 0.8291 GB, free: 48.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001198/1.712, allocations: 48 kB / 0.8291 GB, free: 48.25 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002143/1.714, allocations: 2.086 MB / 0.8311 GB, free: 46.16 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2818/1.996, allocations: 80.6 MB / 0.9099 GB, free: 110.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00731/2.003, allocations: 5.147 MB / 0.9149 GB, free: 110.3 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00529/2.009, allocations: 4.278 MB / 0.9191 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03142/2.04, allocations: 20.05 MB / 0.9386 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.417e-05/2.04, allocations: 65.81 kB / 0.9387 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=340): time 8.396e-06/2.04, allocations: 0 / 0.9387 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=432): time 0.07225/2.113, allocations: 25.68 MB / 0.9638 GB, free: 97.77 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.301e-05/2.113, allocations: 193.9 kB / 0.964 GB, free: 97.57 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008444/2.121, allocations: 5.107 MB / 0.969 GB, free: 95.72 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009045/2.122, allocations: 29.55 kB / 0.969 GB, free: 95.69 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002826/2.125, allocations: 5.076 MB / 0.9739 GB, free: 91.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001819/2.127, allocations: 1.535 MB / 0.9754 GB, free: 90.65 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006879/2.127, allocations: 0 / 0.9754 GB, free: 90.65 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005076/2.128, allocations: 0.7801 MB / 0.9762 GB, free: 90.15 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005437/2.133, allocations: 4.127 MB / 0.9802 GB, free: 88.68 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01043/2.144, allocations: 10.19 MB / 0.9902 GB, free: 79.08 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01214/2.156, allocations: 6.534 MB / 0.9966 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002811/2.156, allocations: 61.75 kB / 0.9966 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1440) (initialization): time 0.03322/2.19, allocations: 14.92 MB / 1.011 GB, free: 69.95 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/2.19, allocations: 4 kB / 1.011 GB, free: 69.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002514/2.19, allocations: 222.3 kB / 1.011 GB, free: 69.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007903/2.198, allocations: 2.222 MB / 1.014 GB, free: 68.09 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009327/2.207, allocations: 2.502 MB / 1.016 GB, free: 65.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01618/2.223, allocations: 10.66 MB / 1.026 GB, free: 56.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009332/2.233, allocations: 424.5 kB / 1.027 GB, free: 56.21 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002042/2.235, allocations: 0.6163 MB / 1.027 GB, free: 55.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 982 * Number of states: 0 () * Number of discrete variables: 49 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[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 (1339): * Single equations (assignments): 1332 * Array equations: 6 * 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 prepare postOptimizeDAE: time 0.002999/2.238, allocations: 0.6401 MB / 1.028 GB, free: 54.96 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001561/2.24, allocations: 0.563 MB / 1.029 GB, free: 54.39 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01692/2.256, allocations: 8.099 MB / 1.037 GB, free: 47.77 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001001/2.257, allocations: 59.52 kB / 1.037 GB, free: 47.71 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.951e-05/2.257, allocations: 8 kB / 1.037 GB, free: 47.71 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.81e-05/2.257, allocations: 22.61 kB / 1.037 GB, free: 47.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03568/2.292, allocations: 17.42 MB / 1.054 GB, free: 33.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.414e-05/2.292, allocations: 12 kB / 1.054 GB, free: 33.08 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00344/2.296, allocations: 0.627 MB / 1.054 GB, free: 32.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006879/2.303, allocations: 1.743 MB / 1.056 GB, free: 31.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008254/2.304, allocations: 27.28 kB / 1.056 GB, free: 31.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01396/2.318, allocations: 8.981 MB / 1.065 GB, free: 23.37 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/2.318, allocations: 15.94 kB / 1.065 GB, free: 23.36 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02094/2.339, allocations: 14.37 MB / 1.079 GB, free: 9.84 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2538/2.593, allocations: 27.37 MB / 1.106 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001741/2.594, allocations: 0.5847 MB / 1.106 GB, free: 137.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001856/2.596, allocations: 23.61 kB / 1.106 GB, free: 137.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004125/2.6, allocations: 134.2 kB / 1.106 GB, free: 137.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000817/2.601, allocations: 219.8 kB / 1.106 GB, free: 137.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003332/2.601, allocations: 116.4 kB / 1.107 GB, free: 137.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.006657/2.608, allocations: 3.416 MB / 1.11 GB, free: 137 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01315/2.621, allocations: 1.67 MB / 1.112 GB, free: 137 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (343): * Single equations (assignments): 336 * Array equations: 6 * 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%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001427/2.623, allocations: 232.2 kB / 1.112 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01616/2.639, allocations: 9.625 MB / 1.121 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.529e-05/2.639, allocations: 2.516 kB / 1.121 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00504/2.644, allocations: 3.299 MB / 1.124 GB, free: 136.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004305/2.648, allocations: 0.5519 MB / 1.125 GB, free: 136.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03466/2.683, allocations: 15.04 MB / 1.14 GB, free: 131.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01164/2.695, allocations: 6.226 MB / 1.146 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of SimCode: time 1.132e-06/2.695, allocations: 0 / 1.146 GB, free: 129.2 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointUSR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointUSR.pipe 2>&1)