Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.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.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP",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.001601/0.001601, allocations: 176.4 kB / 8.518 MB, free: 1.844 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.178/1.178, allocations: 221.4 MB / 230.3 MB, free: 7.719 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.0009485/0.0009485, allocations: 102.5 kB / 281.2 MB, free: 5.527 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.1605/0.1605, allocations: 44.15 MB / 376.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1634/0.3239, allocations: 68.02 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08789/0.4118, allocations: 61.91 MB / 0.4942 GB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2532/0.6651, allocations: 108.3 MB / 0.5999 GB, free: 4.43 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001964/0.6653, allocations: 75.95 kB / 0.6 GB, free: 4.355 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: 1077 * Number of variables: 1077 Notification: Performance of Generate backend data structure: time 0.1718/0.8371, allocations: 68.3 MB / 0.6667 GB, free: 15.57 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.8371, allocations: 11.94 kB / 0.6667 GB, free: 15.56 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002611/0.8398, allocations: 0.5419 MB / 0.6672 GB, free: 15.02 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00428/0.8441, allocations: 2.036 MB / 0.6692 GB, free: 12.93 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.8442, allocations: 108 kB / 0.6693 GB, free: 12.83 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004586/0.8446, allocations: 192 kB / 0.6695 GB, free: 12.64 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006633/0.8513, allocations: 4.728 MB / 0.6741 GB, free: 7.906 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00825/0.8595, allocations: 6.132 MB / 0.6801 GB, free: 1.414 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.815e-05/0.8596, allocations: 19.88 kB / 0.6801 GB, free: 1.395 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002998/0.8599, allocations: 8 kB / 0.6801 GB, free: 1.387 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007498/0.8607, allocations: 0.6342 MB / 0.6808 GB, free: 0.75 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02505/0.8858, allocations: 23.17 MB / 0.7034 GB, free: 8.961 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001528/0.8873, allocations: 1.041 MB / 0.7044 GB, free: 7.91 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009725/0.8883, allocations: 0.733 MB / 0.7051 GB, free: 7.176 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007147/0.8955, allocations: 5.486 MB / 0.7105 GB, free: 1.211 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.8955, allocations: 35.22 kB / 0.7105 GB, free: 1.168 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=65): time 2.504e-06/0.8955, allocations: 4 kB / 0.7105 GB, free: 1.164 MB / 0.5105 GB Notification: Performance of matching and sorting (n=74): time 0.1261/1.022, allocations: 2.929 MB / 0.7134 GB, free: 203.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.952e-05/1.022, allocations: 59.06 kB / 0.7134 GB, free: 203.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00182/1.023, allocations: 1.794 MB / 0.7152 GB, free: 203.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.807e-05/1.024, allocations: 29.58 kB / 0.7152 GB, free: 203.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005875/1.024, allocations: 1.964 MB / 0.7171 GB, free: 202.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/1.024, allocations: 295.5 kB / 0.7174 GB, free: 202.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.016e-05/1.024, allocations: 0.8125 kB / 0.7174 GB, free: 202.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001354/1.024, allocations: 450.9 kB / 0.7178 GB, free: 202 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00087/1.025, allocations: 0.788 MB / 0.7186 GB, free: 202 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/1.027, allocations: 2.848 MB / 0.7214 GB, free: 199.3 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001505/1.028, allocations: 1.477 MB / 0.7228 GB, free: 199.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-05/1.028, allocations: 23.38 kB / 0.7229 GB, free: 199.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=429) (initialization): time 0.003659/1.032, allocations: 3.144 MB / 0.7259 GB, free: 199.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/1.032, allocations: 11.61 kB / 0.7259 GB, free: 199.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.959e-05/1.032, allocations: 75 kB / 0.726 GB, free: 199.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.385e-05/1.032, allocations: 106.9 kB / 0.7261 GB, free: 199.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00205/1.034, allocations: 0.7749 MB / 0.7269 GB, free: 199.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.521e-05/1.034, allocations: 149 kB / 0.727 GB, free: 199.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/1.036, allocations: 76.55 kB / 0.7271 GB, free: 199.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002024/1.036, allocations: 205.9 kB / 0.7273 GB, free: 199.1 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 339 * Number of states: 0 () * Number of discrete variables: 50 (jointUSP.prismatic.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],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[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 (429): * Single equations (assignments): 429 * 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.000282/1.036, allocations: 312.8 kB / 0.7276 GB, free: 198.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/1.037, allocations: 181 kB / 0.7278 GB, free: 198.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001152/1.038, allocations: 0.9446 MB / 0.7287 GB, free: 198.7 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/1.038, allocations: 10.75 kB / 0.7287 GB, free: 198.7 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/1.038, allocations: 0 / 0.7287 GB, free: 198.7 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/1.038, allocations: 3.938 kB / 0.7287 GB, free: 198.7 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004273/1.042, allocations: 3.814 MB / 0.7324 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/1.042, allocations: 18.28 kB / 0.7324 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006128/1.043, allocations: 205.9 kB / 0.7326 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.731e-05/1.043, allocations: 23.22 kB / 0.7327 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.387e-05/1.043, allocations: 19.44 kB / 0.7327 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.429e-05/1.043, allocations: 34.55 kB / 0.7327 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/1.043, allocations: 26.25 kB / 0.7327 GB, free: 197.5 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001364/1.044, allocations: 2.649 MB / 0.7353 GB, free: 195 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001319/1.046, allocations: 3.055 MB / 0.7383 GB, free: 192.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002818/1.046, allocations: 271.7 kB / 0.7386 GB, free: 191.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002163/1.046, allocations: 21.62 kB / 0.7386 GB, free: 191.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006777/1.047, allocations: 20.67 kB / 0.7386 GB, free: 191.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.489e-05/1.047, allocations: 106.1 kB / 0.7387 GB, free: 191.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.846e-05/1.047, allocations: 47.66 kB / 0.7387 GB, free: 191.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001218/1.048, allocations: 1.187 MB / 0.7399 GB, free: 191.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002841/1.051, allocations: 494.8 kB / 0.7404 GB, free: 191.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 110 * 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.0002424/1.051, allocations: 166.2 kB / 0.7405 GB, free: 191.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002024/1.053, allocations: 1.871 MB / 0.7424 GB, free: 191.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/1.053, allocations: 7.844 kB / 0.7424 GB, free: 191.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004146/1.054, allocations: 453.4 kB / 0.7428 GB, free: 191.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009738/1.055, allocations: 247 kB / 0.743 GB, free: 191.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006435/1.061, allocations: 4.684 MB / 0.7476 GB, free: 189.9 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00238/1.063, allocations: 2.679 MB / 0.7502 GB, free: 189.1 MB / 0.5105 GB Notification: Performance of SimCode: time 4.61e-07/1.063, allocations: 0 / 0.7502 GB, free: 189.1 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointUSP.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointUSP.pipe 2>&1)