Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.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.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar",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.0009934/0.0009933, allocations: 179.4 kB / 8.517 MB, free: 1.855 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.174/1.174, allocations: 221.4 MB / 230.3 MB, free: 7.715 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.0008905/0.0008905, allocations: 99.66 kB / 281.2 MB, free: 5.461 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.1663/0.1663, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.173/0.3393, allocations: 68.03 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.4313, allocations: 61.91 MB / 0.4942 GB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2621/0.6935, allocations: 106.9 MB / 0.5986 GB, free: 5.832 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/0.6937, allocations: 71.97 kB / 0.5987 GB, free: 5.762 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: 1828 * Number of variables: 1828 Notification: Performance of Generate backend data structure: time 0.4525/1.146, allocations: 116.5 MB / 0.7125 GB, free: 113.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/1.146, allocations: 11.31 kB / 0.7125 GB, free: 113.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01349/1.16, allocations: 2.916 MB / 0.7153 GB, free: 113 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01099/1.171, allocations: 4.651 MB / 0.7199 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001955/1.171, allocations: 154.1 kB / 0.72 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001681/1.173, allocations: 278.7 kB / 0.7203 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01179/1.185, allocations: 8.414 MB / 0.7285 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01874/1.203, allocations: 11.06 MB / 0.7393 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002078/1.204, allocations: 34 kB / 0.7394 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001539/1.205, allocations: 15.06 kB / 0.7394 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00149/1.207, allocations: 1.415 MB / 0.7408 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04896/1.256, allocations: 38.86 MB / 0.7787 GB, free: 88.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004131/1.26, allocations: 3.058 MB / 0.7817 GB, free: 87.08 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002998/1.263, allocations: 2.501 MB / 0.7841 GB, free: 86.11 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01366/1.276, allocations: 9.869 MB / 0.7938 GB, free: 77.85 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/1.277, allocations: 48.56 kB / 0.7938 GB, free: 77.79 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=218): time 4.488e-06/1.277, allocations: 4 kB / 0.7938 GB, free: 77.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=245): time 0.02921/1.306, allocations: 16.44 MB / 0.8099 GB, free: 63.65 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.987e-05/1.306, allocations: 73.41 kB / 0.8099 GB, free: 63.56 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004191/1.31, allocations: 2.826 MB / 0.8127 GB, free: 61.08 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003335/1.31, allocations: 25.7 kB / 0.8127 GB, free: 61.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001396/1.312, allocations: 3.17 MB / 0.8158 GB, free: 58.19 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000833/1.313, allocations: 0.8816 MB / 0.8167 GB, free: 57.4 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004694/1.313, allocations: 0 / 0.8167 GB, free: 57.4 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004021/1.314, allocations: 0.582 MB / 0.8173 GB, free: 56.89 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003288/1.317, allocations: 2.512 MB / 0.8197 GB, free: 54.64 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004381/1.321, allocations: 6 MB / 0.8256 GB, free: 47.28 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004934/1.326, allocations: 3.955 MB / 0.8294 GB, free: 43.91 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.918e-05/1.326, allocations: 36 kB / 0.8295 GB, free: 43.87 MB / 0.4948 GB Notification: Performance of matching and sorting (n=842) (initialization): time 0.01479/1.341, allocations: 8.618 MB / 0.8379 GB, free: 36.46 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/1.341, allocations: 8 kB / 0.8379 GB, free: 36.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001791/1.341, allocations: 128 kB / 0.838 GB, free: 36.33 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003132/1.344, allocations: 1.004 MB / 0.839 GB, free: 35.42 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004789/1.349, allocations: 1.415 MB / 0.8404 GB, free: 34 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00583/1.355, allocations: 4.769 MB / 0.845 GB, free: 29.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004433/1.36, allocations: 171.9 kB / 0.8452 GB, free: 28.96 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00104/1.361, allocations: 368 kB / 0.8455 GB, free: 28.6 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 563 * Number of states: 0 () * Number of discrete variables: 46 (axis1.arrowLine.twoHeadedArrow,axis1.headAtOrigin,axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.arrowLine.twoHeadedArrow,axis2.headAtOrigin,axis2.color[3],axis2.color[2],axis2.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (780): * Single equations (assignments): 773 * 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 {(5,76.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001341/1.362, allocations: 435.1 kB / 0.846 GB, free: 28.17 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005825/1.363, allocations: 304 kB / 0.8462 GB, free: 27.87 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00804/1.371, allocations: 4.938 MB / 0.8511 GB, free: 22.91 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.651e-05/1.371, allocations: 39.98 kB / 0.8511 GB, free: 22.87 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/1.371, allocations: 4 kB / 0.8511 GB, free: 22.87 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.952e-05/1.371, allocations: 11.95 kB / 0.8511 GB, free: 22.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01715/1.388, allocations: 10.06 MB / 0.8609 GB, free: 12.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/1.388, allocations: 8 kB / 0.861 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001723/1.39, allocations: 352.1 kB / 0.8613 GB, free: 12.36 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002745/1.392, allocations: 0.7927 MB / 0.8621 GB, free: 11.56 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002561/1.393, allocations: 12 kB / 0.8621 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004986/1.398, allocations: 4.17 MB / 0.8661 GB, free: 7.273 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/1.398, allocations: 11.88 kB / 0.8662 GB, free: 7.262 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01019/1.408, allocations: 7.936 MB / 0.8739 GB, free: 15.1 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01466/1.423, allocations: 11.04 MB / 0.8847 GB, free: 3.836 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007911/1.423, allocations: 353 kB / 0.885 GB, free: 3.469 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007054/1.424, allocations: 11.98 kB / 0.885 GB, free: 3.457 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001473/1.426, allocations: 63.91 kB / 0.8851 GB, free: 3.395 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002883/1.426, allocations: 109.7 kB / 0.8852 GB, free: 3.289 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001865/1.426, allocations: 64 kB / 0.8853 GB, free: 3.227 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.003058/1.429, allocations: 1.859 MB / 0.8871 GB, free: 1.371 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005302/1.435, allocations: 0.9687 MB / 0.888 GB, free: 412 kB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (188): * Single equations (assignments): 181 * 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 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004874/1.435, allocations: 154.5 kB / 0.8882 GB, free: 252 kB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.1397/1.575, allocations: 5.92 MB / 0.894 GB, free: 178.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/1.575, allocations: 0 / 0.894 GB, free: 178.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00252/1.577, allocations: 2.121 MB / 0.896 GB, free: 177.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001476/1.579, allocations: 276.9 kB / 0.8963 GB, free: 177.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01411/1.593, allocations: 9.202 MB / 0.9053 GB, free: 176.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0047/1.598, allocations: 4.092 MB / 0.9093 GB, free: 175.4 MB / 0.5105 GB Notification: Performance of SimCode: time 9.52e-07/1.598, allocations: 3.219 kB / 0.9093 GB, free: 175.4 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_Planar.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Planar.pipe 2>&1)