Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",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.002429/0.002429, allocations: 182 kB / 7.463 MB, free: 2.508 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.183/1.183, allocations: 221.4 MB / 229.3 MB, free: 2.992 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.0009402/0.0009403, allocations: 93.11 kB / 280.1 MB, free: 1.215 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03891/0.03891, allocations: 8.842 MB / 339.7 MB, free: 5.664 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1928/0.2318, allocations: 58.48 MB / 398.2 MB, free: 67.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09196/0.3237, allocations: 52.4 MB / 450.6 MB, free: 14.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3048/0.6287, allocations: 89.47 MB / 0.5274 GB, free: 3.863 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.629, allocations: 78.33 kB / 0.5275 GB, free: 3.828 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.1721/0.8011, allocations: 64.97 MB / 0.591 GB, free: 9.844 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.8012, allocations: 15.94 kB / 0.591 GB, free: 9.828 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009912/0.8111, allocations: 1.614 MB / 0.5925 GB, free: 8.207 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005549/0.8167, allocations: 1.75 MB / 0.5943 GB, free: 6.41 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003168/0.8171, allocations: 96 kB / 0.5943 GB, free: 6.316 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001973/0.8191, allocations: 179.9 kB / 0.5945 GB, free: 6.141 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01073/0.8298, allocations: 5.341 MB / 0.5997 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01771/0.8476, allocations: 7.049 MB / 0.6066 GB, free: 9.363 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001811/0.8478, allocations: 31.7 kB / 0.6066 GB, free: 9.332 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001285/0.8491, allocations: 11.94 kB / 0.6067 GB, free: 9.32 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001458/0.8506, allocations: 0.9039 MB / 0.6075 GB, free: 8.414 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04045/0.891, allocations: 24.16 MB / 0.6311 GB, free: 15.58 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0021/0.8932, allocations: 1.104 MB / 0.6322 GB, free: 14.48 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.8946, allocations: 0.7151 MB / 0.6329 GB, free: 13.76 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007793/0.9024, allocations: 4.191 MB / 0.637 GB, free: 9.246 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/0.9025, allocations: 47.55 kB / 0.637 GB, free: 9.191 MB / 458.7 MB Notification: Performance of pre-optimization done (n=137): time 4.499e-06/0.9025, allocations: 0 / 0.637 GB, free: 9.191 MB / 458.7 MB Notification: Performance of matching and sorting (n=159): time 0.01302/0.9155, allocations: 5.906 MB / 0.6428 GB, free: 3.199 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.319e-05/0.9156, allocations: 64.72 kB / 0.6429 GB, free: 3.125 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004071/0.9197, allocations: 1.948 MB / 0.6448 GB, free: 1.137 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000218/0.9199, allocations: 25.7 kB / 0.6448 GB, free: 1.105 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1746/1.095, allocations: 2.069 MB / 0.6468 GB, free: 176.4 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006075/1.095, allocations: 0.5761 MB / 0.6474 GB, free: 176.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002606/1.095, allocations: 4.219 kB / 0.6474 GB, free: 176.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002746/1.096, allocations: 0.5235 MB / 0.6479 GB, free: 175.8 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/1.097, allocations: 1.283 MB / 0.6492 GB, free: 175.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002428/1.1, allocations: 3.534 MB / 0.6526 GB, free: 172.9 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002561/1.102, allocations: 2.193 MB / 0.6547 GB, free: 172.9 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.698e-05/1.102, allocations: 23.75 kB / 0.6548 GB, free: 172.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=544) (initialization): time 0.006826/1.109, allocations: 4.579 MB / 0.6592 GB, free: 172.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/1.109, allocations: 6.562 kB / 0.6592 GB, free: 172.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.958e-05/1.109, allocations: 82.38 kB / 0.6593 GB, free: 172.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007633/1.11, allocations: 311 kB / 0.6596 GB, free: 172.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002884/1.113, allocations: 0.9035 MB / 0.6605 GB, free: 172.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003393/1.117, allocations: 3.086 MB / 0.6635 GB, free: 171.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003215/1.12, allocations: 101.9 kB / 0.6636 GB, free: 171.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006251/1.12, allocations: 245 kB / 0.6638 GB, free: 171.2 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 364 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,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 (500): * Single equations (assignments): 495 * 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.0006122/1.121, allocations: 314 kB / 0.6641 GB, free: 171 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003179/1.121, allocations: 200.4 kB / 0.6643 GB, free: 170.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002867/1.124, allocations: 1.939 MB / 0.6662 GB, free: 170.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001213/1.124, allocations: 22.05 kB / 0.6663 GB, free: 170.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.017e-05/1.124, allocations: 6.875 kB / 0.6663 GB, free: 170.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/1.124, allocations: 3.75 kB / 0.6663 GB, free: 170.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007788/1.132, allocations: 4.905 MB / 0.6711 GB, free: 170.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.676e-06/1.132, allocations: 6.719 kB / 0.6711 GB, free: 170.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009366/1.133, allocations: 214 kB / 0.6713 GB, free: 170.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005734/1.134, allocations: 203.9 kB / 0.6715 GB, free: 170.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.021e-05/1.134, allocations: 11.2 kB / 0.6715 GB, free: 170.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002488/1.136, allocations: 2.507 MB / 0.6739 GB, free: 168.9 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/1.136, allocations: 3.938 kB / 0.6739 GB, free: 168.9 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003718/1.14, allocations: 3.239 MB / 0.6771 GB, free: 168.3 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00475/1.145, allocations: 4.696 MB / 0.6817 GB, free: 166.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008947/1.146, allocations: 435 kB / 0.6821 GB, free: 166.3 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003782/1.146, allocations: 3.188 kB / 0.6821 GB, free: 166.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008979/1.147, allocations: 37.14 kB / 0.6821 GB, free: 166.3 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/1.147, allocations: 69.34 kB / 0.6822 GB, free: 166.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.192e-05/1.147, allocations: 44.31 kB / 0.6822 GB, free: 166.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001948/1.149, allocations: 1.315 MB / 0.6835 GB, free: 165.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003686/1.153, allocations: 0.6052 MB / 0.6841 GB, free: 165.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.w) * 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.0003821/1.153, allocations: 148.3 kB / 0.6842 GB, free: 165.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004561/1.158, allocations: 3.086 MB / 0.6873 GB, free: 164.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/1.158, allocations: 0 / 0.6873 GB, free: 164.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001396/1.159, allocations: 1.001 MB / 0.6882 GB, free: 164.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001379/1.161, allocations: 216.5 kB / 0.6884 GB, free: 164.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/1.173, allocations: 5.37 MB / 0.6937 GB, free: 162.1 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003753/1.177, allocations: 2.862 MB / 0.6965 GB, free: 160.4 MB / 458.7 MB Notification: Performance of SimCode: time 8.21e-07/1.177, allocations: 0 / 0.6965 GB, free: 160.4 MB / 458.7 MB (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)