Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.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.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2",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.001034/0.001034, allocations: 178.4 kB / 8.519 MB, free: 1.832 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.193/1.193, 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.000898/0.000898, allocations: 85.59 kB / 281.2 MB, free: 5.531 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.1615/0.1615, allocations: 44.14 MB / 376.1 MB, free: 3.258 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1745/0.3361, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09506/0.4311, allocations: 61.91 MB / 0.4942 GB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2648/0.696, allocations: 109.6 MB / 0.6012 GB, free: 3.223 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.6963, allocations: 83.61 kB / 0.6013 GB, free: 3.145 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: 1982 * Number of variables: 1982 Notification: Performance of Generate backend data structure: time 0.4645/1.161, allocations: 120.3 MB / 0.7187 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/1.161, allocations: 10.09 kB / 0.7187 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02416/1.185, allocations: 6.612 MB / 0.7252 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01611/1.201, allocations: 7.526 MB / 0.7325 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/1.201, allocations: 183.3 kB / 0.7327 GB, free: 102.1 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00104/1.202, allocations: 334.7 kB / 0.733 GB, free: 102 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01043/1.213, allocations: 8.263 MB / 0.7411 GB, free: 102 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01427/1.227, allocations: 12.41 MB / 0.7532 GB, free: 97.45 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001917/1.227, allocations: 90.78 kB / 0.7533 GB, free: 97.44 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006259/1.228, allocations: 34.84 kB / 0.7533 GB, free: 97.44 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001232/1.229, allocations: 1.375 MB / 0.7547 GB, free: 97.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05225/1.281, allocations: 59.98 MB / 0.8133 GB, free: 53.38 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005011/1.286, allocations: 5.027 MB / 0.8182 GB, free: 49.02 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003015/1.29, allocations: 3.489 MB / 0.8216 GB, free: 45.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01183/1.301, allocations: 9.642 MB / 0.831 GB, free: 37.37 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/1.301, allocations: 64.56 kB / 0.8311 GB, free: 37.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=239): time 4.499e-06/1.301, allocations: 0 / 0.8311 GB, free: 37.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=306): time 0.05741/1.359, allocations: 28.21 MB / 0.8586 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.42e-05/1.359, allocations: 269.3 kB / 0.8589 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00445/1.363, allocations: 3.909 MB / 0.8627 GB, free: 8.293 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002675/1.364, allocations: 25.7 kB / 0.8627 GB, free: 8.262 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001247/1.365, allocations: 3.634 MB / 0.8663 GB, free: 4.574 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007163/1.366, allocations: 1.106 MB / 0.8673 GB, free: 3.453 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003398/1.366, allocations: 0 / 0.8673 GB, free: 3.453 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002942/1.366, allocations: 0.6285 MB / 0.8679 GB, free: 2.82 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003667/1.37, allocations: 3.175 MB / 0.871 GB, free: 15.64 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007295/1.377, allocations: 7.431 MB / 0.8783 GB, free: 6.09 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006915/1.384, allocations: 4.835 MB / 0.883 GB, free: 1.23 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.788e-05/1.384, allocations: 47.94 kB / 0.8831 GB, free: 1.184 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.01975/1.404, allocations: 11.41 MB / 0.8942 GB, free: 5.746 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/1.404, allocations: 8 kB / 0.8942 GB, free: 5.738 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001381/1.404, allocations: 148 kB / 0.8944 GB, free: 5.594 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005552/1.41, allocations: 2.085 MB / 0.8964 GB, free: 3.504 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006041/1.416, allocations: 1.723 MB / 0.8981 GB, free: 1.773 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1522/1.568, allocations: 13.18 MB / 0.911 GB, free: 171 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005601/1.574, allocations: 249.2 kB / 0.9112 GB, free: 171 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007468/1.574, allocations: 463.8 kB / 0.9116 GB, free: 171 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 687 * Number of states: 0 () * Number of discrete variables: 44 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (928): * Single equations (assignments): 923 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,46.9%) 20,(7,46.9%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009554/1.575, allocations: 489.5 kB / 0.9121 GB, free: 170.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006367/1.576, allocations: 449.2 kB / 0.9125 GB, free: 170.9 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01068/1.587, allocations: 6.676 MB / 0.919 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-05/1.587, allocations: 29 kB / 0.9191 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/1.587, allocations: 7.781 kB / 0.9191 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-05/1.587, allocations: 11.39 kB / 0.9191 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02189/1.609, allocations: 14.16 MB / 0.9329 GB, free: 169.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-05/1.609, allocations: 7.531 kB / 0.9329 GB, free: 169.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002361/1.611, allocations: 463.3 kB / 0.9334 GB, free: 169.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004609/1.616, allocations: 1.766 MB / 0.9351 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003888/1.616, allocations: 21.14 kB / 0.9351 GB, free: 169.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01417/1.63, allocations: 11.43 MB / 0.9463 GB, free: 163.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.595e-06/1.63, allocations: 7.656 kB / 0.9463 GB, free: 163.7 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01379/1.644, allocations: 11.63 MB / 0.9576 GB, free: 158.4 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01718/1.661, allocations: 15.76 MB / 0.973 GB, free: 151 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008987/1.662, allocations: 490.1 kB / 0.9735 GB, free: 150.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000732/1.663, allocations: 7.906 kB / 0.9735 GB, free: 150.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002217/1.665, allocations: 117.1 kB / 0.9736 GB, free: 150.6 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003873/1.666, allocations: 156.4 kB / 0.9738 GB, free: 150.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000247/1.666, allocations: 82.47 kB / 0.9738 GB, free: 150.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003605/1.67, allocations: 2.668 MB / 0.9765 GB, free: 149.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006687/1.676, allocations: 1.243 MB / 0.9777 GB, free: 149.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (244): * Single equations (assignments): 239 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,55.6%) 18,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005533/1.677, allocations: 172.4 kB / 0.9778 GB, free: 149.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01334/1.69, allocations: 8.233 MB / 0.9859 GB, free: 147 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/1.69, allocations: 5.812 kB / 0.9859 GB, free: 147 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00604/1.696, allocations: 3.44 MB / 0.9892 GB, free: 145.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00258/1.699, allocations: 0.4985 MB / 0.9897 GB, free: 144.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01864/1.718, allocations: 11.97 MB / 1.001 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00547/1.723, allocations: 4.793 MB / 1.006 GB, free: 130.6 MB / 0.5261 GB Notification: Performance of SimCode: time 9.02e-07/1.723, allocations: 0 / 1.006 GB, free: 130.6 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion2.pipe 2>&1)