Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.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.Joints.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_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.001018/0.001018, allocations: 169.3 kB / 8.514 MB, free: 1.852 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.206/1.206, allocations: 221.4 MB / 230.3 MB, free: 7.672 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.001272/0.001272, allocations: 94.03 kB / 281.2 MB, free: 5.496 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.1607/0.1607, allocations: 44.15 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1714/0.3321, allocations: 68.03 MB / 444.1 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09293/0.4251, allocations: 61.92 MB / 0.4942 GB, free: 1.52 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2685/0.6936, allocations: 109 MB / 0.6006 GB, free: 3.711 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002332/0.6939, allocations: 75.62 kB / 0.6007 GB, free: 3.641 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: 1088 * Number of variables: 1088 Notification: Performance of Generate backend data structure: time 0.1853/0.8793, allocations: 69.82 MB / 0.6689 GB, free: 13.35 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.8793, allocations: 15.94 kB / 0.6689 GB, free: 13.34 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003163/0.8825, allocations: 0.5418 MB / 0.6694 GB, free: 12.79 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0052/0.8877, allocations: 2.056 MB / 0.6714 GB, free: 10.68 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/0.8879, allocations: 108 kB / 0.6715 GB, free: 10.58 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008226/0.8887, allocations: 192 kB / 0.6717 GB, free: 10.39 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007982/0.8967, allocations: 4.955 MB / 0.6765 GB, free: 5.43 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00992/0.9067, allocations: 6.368 MB / 0.6828 GB, free: 14.7 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.094e-05/0.9068, allocations: 15.88 kB / 0.6828 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003383/0.9071, allocations: 8 kB / 0.6828 GB, free: 14.67 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008691/0.908, allocations: 0.685 MB / 0.6834 GB, free: 13.98 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03174/0.9397, allocations: 24.94 MB / 0.7078 GB, free: 4.406 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001838/0.9416, allocations: 1.31 MB / 0.7091 GB, free: 3.082 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001254/0.9429, allocations: 1.011 MB / 0.7101 GB, free: 2.07 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1369/1.08, allocations: 6.888 MB / 0.7168 GB, free: 200.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/1.08, allocations: 41.69 kB / 0.7168 GB, free: 200.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=73): time 5.039e-06/1.08, allocations: 0 / 0.7168 GB, free: 200.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=86): time 0.01051/1.09, allocations: 4.087 MB / 0.7208 GB, free: 200.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.449e-05/1.091, allocations: 62.66 kB / 0.7209 GB, free: 200.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00217/1.093, allocations: 1.844 MB / 0.7227 GB, free: 199.9 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 7.474e-05/1.093, allocations: 25.7 kB / 0.7227 GB, free: 199.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007951/1.094, allocations: 1.989 MB / 0.7246 GB, free: 198.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002039/1.094, allocations: 336.7 kB / 0.725 GB, free: 198.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/1.094, allocations: 0 / 0.725 GB, free: 198.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001515/1.094, allocations: 453.9 kB / 0.7254 GB, free: 198.2 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/1.095, allocations: 0.9342 MB / 0.7263 GB, free: 198.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001765/1.097, allocations: 3.09 MB / 0.7293 GB, free: 195.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002241/1.099, allocations: 1.711 MB / 0.731 GB, free: 195.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-05/1.099, allocations: 22.16 kB / 0.731 GB, free: 195.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=454) (initialization): time 0.005785/1.105, allocations: 3.575 MB / 0.7345 GB, free: 195.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/1.105, allocations: 6.344 kB / 0.7345 GB, free: 195.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.433e-05/1.105, allocations: 80.62 kB / 0.7346 GB, free: 195.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.362e-05/1.105, allocations: 111.1 kB / 0.7347 GB, free: 195.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00277/1.108, allocations: 0.8336 MB / 0.7355 GB, free: 195.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.043e-05/1.108, allocations: 148.8 kB / 0.7357 GB, free: 195.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002598/1.111, allocations: 101.9 kB / 0.7358 GB, free: 195.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005638/1.111, allocations: 213 kB / 0.736 GB, free: 195.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 353 * Number of states: 0 () * Number of discrete variables: 53 (jointUSR.revolute.positiveBranch,prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,prism.color[3],prism.color[2],prism.color[1],rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.arrowLine.twoHeadedArrow,rRod1.headAtOrigin,rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.arrowLine.twoHeadedArrow,n2_ia.headAtOrigin,n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.arrowLine.twoHeadedArrow,n1_a.headAtOrigin,n1_a.color[3],n1_a.color[2],n1_a.color[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],Fixed1.color[3],Fixed1.color[2],Fixed1.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 (454): * Single equations (assignments): 454 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006392/1.112, allocations: 312 kB / 0.7363 GB, free: 194.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003423/1.112, allocations: 192.3 kB / 0.7364 GB, free: 194.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001727/1.114, allocations: 1.169 MB / 0.7376 GB, free: 194.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/1.114, allocations: 10.66 kB / 0.7376 GB, free: 194.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/1.114, allocations: 1.5 kB / 0.7376 GB, free: 194.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-05/1.114, allocations: 6.984 kB / 0.7376 GB, free: 194.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005642/1.12, allocations: 4.153 MB / 0.7417 GB, free: 193.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.295e-05/1.12, allocations: 15.41 kB / 0.7417 GB, free: 193.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007302/1.121, allocations: 227.1 kB / 0.7419 GB, free: 193.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.646e-05/1.121, allocations: 22.81 kB / 0.7419 GB, free: 193.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.204e-05/1.121, allocations: 18.19 kB / 0.7419 GB, free: 193.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.073e-05/1.121, allocations: 31.06 kB / 0.742 GB, free: 193.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.458e-05/1.121, allocations: 23.59 kB / 0.742 GB, free: 193.5 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001812/1.123, allocations: 2.745 MB / 0.7447 GB, free: 191.1 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0019/1.125, allocations: 3.145 MB / 0.7477 GB, free: 188.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000432/1.125, allocations: 270.5 kB / 0.748 GB, free: 188.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002562/1.125, allocations: 27.19 kB / 0.748 GB, free: 188.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007665/1.126, allocations: 24.45 kB / 0.748 GB, free: 188.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/1.126, allocations: 113.1 kB / 0.7481 GB, free: 188 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/1.126, allocations: 47.28 kB / 0.7482 GB, free: 188 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001678/1.128, allocations: 1.217 MB / 0.7494 GB, free: 187.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003481/1.132, allocations: 0.5154 MB / 0.7499 GB, free: 187.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003399/1.132, allocations: 171 kB / 0.75 GB, free: 187.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002794/1.135, allocations: 2.138 MB / 0.7521 GB, free: 186.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/1.135, allocations: 3.875 kB / 0.7521 GB, free: 186.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0005978/1.135, allocations: 0.5147 MB / 0.7526 GB, free: 186.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001351/1.137, allocations: 253.5 kB / 0.7529 GB, free: 186.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008736/1.145, allocations: 4.781 MB / 0.7576 GB, free: 184.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002999/1.148, allocations: 2.695 MB / 0.7602 GB, free: 183.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.052e-06/1.149, allocations: 0 / 0.7602 GB, free: 183.1 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSR_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSR.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSR.pipe 2>&1)