Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.CraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_CraneCrab",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.002313/0.002313, allocations: 182.6 kB / 7.459 MB, free: 2.512 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.161/1.161, allocations: 221.4 MB / 229.3 MB, free: 3.105 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.001007/0.001007, allocations: 92.53 kB / 280.1 MB, free: 1.289 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0391/0.0391, allocations: 8.845 MB / 339.7 MB, free: 5.742 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2061/0.2453, allocations: 58.48 MB / 398.2 MB, free: 67.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09278/0.3381, allocations: 52.39 MB / 450.6 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2771/0.6153, allocations: 87.73 MB / 0.5257 GB, free: 5.551 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/0.6155, allocations: 73.22 kB / 0.5258 GB, free: 5.52 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.1611/0.7766, allocations: 62.67 MB / 0.587 GB, free: 13.89 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.7767, allocations: 8 kB / 0.587 GB, free: 13.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009573/0.7863, allocations: 1.599 MB / 0.5886 GB, free: 12.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004952/0.7913, allocations: 1.694 MB / 0.5902 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001879/0.7915, allocations: 92 kB / 0.5903 GB, free: 10.45 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001603/0.7931, allocations: 175.9 kB / 0.5905 GB, free: 10.28 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01045/0.8036, allocations: 5.309 MB / 0.5957 GB, free: 4.961 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01633/0.82, allocations: 6.977 MB / 0.6025 GB, free: 13.61 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002052/0.8202, allocations: 23.78 kB / 0.6025 GB, free: 13.59 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001303/0.8215, allocations: 12 kB / 0.6025 GB, free: 13.58 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00142/0.823, allocations: 0.9114 MB / 0.6034 GB, free: 12.67 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03716/0.8601, allocations: 23.62 MB / 0.6265 GB, free: 4.398 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001865/0.8621, allocations: 1.084 MB / 0.6275 GB, free: 3.312 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.8632, allocations: 0.7228 MB / 0.6282 GB, free: 2.59 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006867/0.8701, allocations: 4.152 MB / 0.6323 GB, free: 14.11 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.8702, allocations: 43.55 kB / 0.6323 GB, free: 14.05 MB / 458.7 MB Notification: Performance of pre-optimization done (n=135): time 4.799e-06/0.8702, allocations: 0 / 0.6323 GB, free: 14.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=159): time 0.01166/0.8818, allocations: 5.868 MB / 0.6381 GB, free: 8.113 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.8819, allocations: 64.72 kB / 0.6381 GB, free: 8.035 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002883/0.8848, allocations: 1.885 MB / 0.64 GB, free: 6.152 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.345e-05/0.8849, allocations: 29.7 kB / 0.64 GB, free: 6.117 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.886, allocations: 2.025 MB / 0.642 GB, free: 4.059 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004881/0.8865, allocations: 0.5782 MB / 0.6425 GB, free: 3.473 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/0.8867, allocations: 3.938 kB / 0.6425 GB, free: 3.469 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003116/0.887, allocations: 0.5154 MB / 0.643 GB, free: 2.941 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001727/0.8887, allocations: 1.269 MB / 0.6443 GB, free: 1.668 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1899/1.079, allocations: 3.477 MB / 0.6477 GB, free: 104.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003248/1.082, allocations: 2.166 MB / 0.6498 GB, free: 104.5 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-05/1.082, allocations: 23.5 kB / 0.6498 GB, free: 104.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.006652/1.089, allocations: 4.523 MB / 0.6542 GB, free: 104.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.118e-05/1.089, allocations: 3.875 kB / 0.6542 GB, free: 104.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.778e-05/1.089, allocations: 78.38 kB / 0.6543 GB, free: 104.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006733/1.09, allocations: 322 kB / 0.6546 GB, free: 104.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002715/1.092, allocations: 0.8941 MB / 0.6555 GB, free: 104.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003308/1.096, allocations: 3.062 MB / 0.6585 GB, free: 102.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002733/1.098, allocations: 109.9 kB / 0.6586 GB, free: 102.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003914/1.099, allocations: 244 kB / 0.6588 GB, free: 102.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 357 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (491): * Single equations (assignments): 486 * Array equations: 4 * 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 {(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004776/1.099, allocations: 300.9 kB / 0.6591 GB, free: 102.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000239/1.099, allocations: 190.4 kB / 0.6593 GB, free: 102.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002651/1.102, allocations: 1.922 MB / 0.6612 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001137/1.102, allocations: 19.17 kB / 0.6612 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/1.102, allocations: 7.125 kB / 0.6612 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/1.102, allocations: 3.844 kB / 0.6612 GB, free: 102.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007751/1.11, allocations: 4.9 MB / 0.666 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/1.11, allocations: 3.938 kB / 0.666 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008546/1.111, allocations: 208.7 kB / 0.6662 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005199/1.111, allocations: 203.9 kB / 0.6664 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.475e-05/1.112, allocations: 7.5 kB / 0.6664 GB, free: 102.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002381/1.114, allocations: 2.516 MB / 0.6688 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.114, allocations: 3.5 kB / 0.6688 GB, free: 100.9 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003652/1.118, allocations: 3.248 MB / 0.672 GB, free: 100.4 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004677/1.122, allocations: 4.7 MB / 0.6766 GB, free: 99.39 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005331/1.123, allocations: 269.1 kB / 0.6769 GB, free: 99.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002599/1.123, allocations: 7.328 kB / 0.6769 GB, free: 99.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007596/1.124, allocations: 31.36 kB / 0.6769 GB, free: 99.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/1.124, allocations: 75.81 kB / 0.677 GB, free: 99.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.266e-05/1.124, allocations: 43.31 kB / 0.677 GB, free: 99.19 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001709/1.126, allocations: 1.273 MB / 0.6782 GB, free: 99.08 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003778/1.13, allocations: 0.5891 MB / 0.6788 GB, free: 99.08 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 113 * Array equations: 4 * 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 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003752/1.13, allocations: 157.2 kB / 0.679 GB, free: 98.98 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004201/1.134, allocations: 3.043 MB / 0.6819 GB, free: 98.68 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.134, allocations: 1.562 kB / 0.6819 GB, free: 98.68 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001259/1.136, allocations: 0.9842 MB / 0.6829 GB, free: 98.55 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/1.137, allocations: 198 kB / 0.6831 GB, free: 98.54 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008769/1.145, allocations: 5.263 MB / 0.6882 GB, free: 97.34 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003648/1.149, allocations: 2.815 MB / 0.691 GB, free: 96.56 MB / 458.7 MB Notification: Performance of SimCode: time 4.81e-07/1.149, allocations: 5.406 kB / 0.691 GB, free: 96.55 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_CraneCrab_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_CraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)