Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.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.FreeMotion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion",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.001407/0.001407, allocations: 191.4 kB / 8.529 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.175/1.175, allocations: 221.4 MB / 230.3 MB, free: 7.688 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.0008953/0.0008954, allocations: 94.72 kB / 281.2 MB, free: 5.492 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.155/0.155, allocations: 44.15 MB / 376.1 MB, free: 3.219 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1694/0.3244, allocations: 68.03 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08894/0.4134, allocations: 61.92 MB / 0.4942 GB, free: 1.523 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2514/0.6648, allocations: 102.7 MB / 0.5945 GB, free: 9.961 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002044/0.665, allocations: 76.62 kB / 0.5946 GB, free: 9.887 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: 1512 * Number of variables: 1512 Notification: Performance of Generate backend data structure: time 0.2244/0.8895, allocations: 87.52 MB / 0.68 GB, free: 1.625 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/0.8895, allocations: 11.94 kB / 0.6801 GB, free: 1.613 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01423/0.9038, allocations: 2.931 MB / 0.6829 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01128/0.9151, allocations: 4.795 MB / 0.6876 GB, free: 9.824 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.9152, allocations: 120 kB / 0.6877 GB, free: 9.707 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001253/0.9165, allocations: 215.9 kB / 0.6879 GB, free: 9.496 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0103/0.9268, allocations: 7.243 MB / 0.695 GB, free: 2.25 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1324/1.059, allocations: 9.498 MB / 0.7043 GB, free: 178.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.717e-05/1.059, allocations: 32.95 kB / 0.7043 GB, free: 178.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004882/1.06, allocations: 14.84 kB / 0.7043 GB, free: 178.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001079/1.061, allocations: 1.232 MB / 0.7055 GB, free: 178.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0348/1.096, allocations: 33.83 MB / 0.7386 GB, free: 164.1 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002709/1.098, allocations: 2.674 MB / 0.7412 GB, free: 163.2 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002/1.1, allocations: 2.213 MB / 0.7433 GB, free: 162.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01098/1.111, allocations: 9.445 MB / 0.7525 GB, free: 157.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/1.111, allocations: 51.09 kB / 0.7526 GB, free: 157.1 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=205): time 4.237e-06/1.112, allocations: 0 / 0.7526 GB, free: 157.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=230): time 0.02693/1.138, allocations: 15.17 MB / 0.7674 GB, free: 152.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.988e-05/1.139, allocations: 73.56 kB / 0.7675 GB, free: 152.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003408/1.142, allocations: 2.562 MB / 0.77 GB, free: 151.3 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002081/1.142, allocations: 32.39 kB / 0.77 GB, free: 151.3 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001145/1.143, allocations: 2.72 MB / 0.7727 GB, free: 149.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006452/1.144, allocations: 0.8354 MB / 0.7735 GB, free: 148.7 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002359/1.144, allocations: 1.406 kB / 0.7735 GB, free: 148.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002589/1.144, allocations: 0.5591 MB / 0.774 GB, free: 148.2 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002792/1.147, allocations: 2.497 MB / 0.7765 GB, free: 146.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003556/1.151, allocations: 5.659 MB / 0.782 GB, free: 139.7 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004098/1.155, allocations: 3.82 MB / 0.7857 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.788e-05/1.155, allocations: 35.94 kB / 0.7858 GB, free: 136.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=784) (initialization): time 0.01679/1.172, allocations: 8.823 MB / 0.7944 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/1.172, allocations: 7.938 kB / 0.7944 GB, free: 129.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0109/1.183, allocations: 4.338 MB / 0.7986 GB, free: 125.6 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00983/1.193, allocations: 1.615 MB / 0.8002 GB, free: 124.5 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004105/1.197, allocations: 1.303 MB / 0.8015 GB, free: 123.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005252/1.202, allocations: 4.558 MB / 0.8059 GB, free: 119.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004411/1.206, allocations: 214.3 kB / 0.8061 GB, free: 119 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005384/1.207, allocations: 339.4 kB / 0.8065 GB, free: 118.7 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * Number of states: 0 () * Number of discrete variables: 26 (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],freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (722): * Single equations (assignments): 710 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006557/1.208, allocations: 394.8 kB / 0.8068 GB, free: 118.3 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003554/1.208, allocations: 285.3 kB / 0.8071 GB, free: 118 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007505/1.209, allocations: 443 kB / 0.8075 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007265/1.216, allocations: 4.398 MB / 0.8118 GB, free: 113.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/1.216, allocations: 4 kB / 0.8118 GB, free: 113.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.825e-05/1.216, allocations: 9.188 kB / 0.8118 GB, free: 113.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01873/1.235, allocations: 11.6 MB / 0.8232 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/1.235, allocations: 4 kB / 0.8232 GB, free: 103.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001563/1.236, allocations: 323.5 kB / 0.8235 GB, free: 103 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003994/1.24, allocations: 1.022 MB / 0.8245 GB, free: 102 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001733/1.241, allocations: 23.97 kB / 0.8245 GB, free: 102 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004097/1.245, allocations: 4.216 MB / 0.8286 GB, free: 97.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007295/1.245, allocations: 1.375 MB / 0.8299 GB, free: 96.03 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01191/1.257, allocations: 7.795 MB / 0.8376 GB, free: 88.06 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01244/1.27, allocations: 10.94 MB / 0.8482 GB, free: 76.94 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000772/1.271, allocations: 345.4 kB / 0.8486 GB, free: 76.58 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004809/1.271, allocations: 11.94 kB / 0.8486 GB, free: 76.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/1.273, allocations: 95.84 kB / 0.8487 GB, free: 76.47 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/1.273, allocations: 101.8 kB / 0.8488 GB, free: 76.38 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001652/1.273, allocations: 59.98 kB / 0.8488 GB, free: 76.32 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001973/1.275, allocations: 1.687 MB / 0.8505 GB, free: 74.62 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004492/1.279, allocations: 0.9794 MB / 0.8514 GB, free: 73.65 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 162 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003856/1.28, allocations: 150.8 kB / 0.8516 GB, free: 73.5 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008052/1.288, allocations: 6.37 MB / 0.8578 GB, free: 67.09 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/1.288, allocations: 4 kB / 0.8578 GB, free: 67.08 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003748/1.292, allocations: 2.691 MB / 0.8604 GB, free: 64.32 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001384/1.293, allocations: 233.2 kB / 0.8607 GB, free: 64.1 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01245/1.306, allocations: 8.692 MB / 0.8691 GB, free: 55.35 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0038/1.309, allocations: 3.603 MB / 0.8727 GB, free: 51.73 MB / 0.4948 GB Notification: Performance of SimCode: time 1.113e-06/1.309, allocations: 0 / 0.8727 GB, free: 51.73 MB / 0.4948 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1)