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: translateModel(PlanarMechanics.Examples.CraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrab") translateModel(PlanarMechanics.Examples.CraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrab") [: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.003943/0.003943, allocations: 179.6 kB / 7.455 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.276/1.276, allocations: 221.4 MB / 229.3 MB, free: 3.109 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.001005/0.001005, allocations: 90.34 kB / 280.1 MB, free: 1.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04293/0.04293, allocations: 8.849 MB / 339.7 MB, free: 5.695 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.863e-06/6.973e-06, allocations: 4 kB / 398.1 MB, free: 67.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07146/0.07149, allocations: 52.39 MB / 450.5 MB, free: 15.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2293/0.3008, allocations: 87.73 MB / 0.5256 GB, free: 5.734 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001845/0.301, allocations: 73.06 kB / 0.5257 GB, free: 5.703 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.161/0.462, allocations: 59.6 MB / 0.5839 GB, free: 1.168 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001009/0.4621, allocations: 48 kB / 0.5839 GB, free: 1.121 MB / 394.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.009605/0.4718, allocations: 3.024 MB / 0.5869 GB, free: 14.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.4718, allocations: 8.031 kB / 0.5869 GB, free: 14.03 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0094/0.4812, allocations: 1.602 MB / 0.5885 GB, free: 12.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003743/0.485, allocations: 1.69 MB / 0.5901 GB, free: 10.68 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.4851, allocations: 96 kB / 0.5902 GB, free: 10.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009676/0.4861, allocations: 175.9 kB / 0.5904 GB, free: 10.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008556/0.4947, allocations: 5.306 MB / 0.5956 GB, free: 5.098 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01297/0.5077, allocations: 6.973 MB / 0.6024 GB, free: 13.76 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001165/0.5078, allocations: 27.77 kB / 0.6024 GB, free: 13.73 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006879/0.5085, allocations: 15.92 kB / 0.6024 GB, free: 13.72 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001319/0.5099, allocations: 0.9037 MB / 0.6033 GB, free: 12.81 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03301/0.5429, allocations: 23.63 MB / 0.6264 GB, free: 4.535 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001683/0.5446, allocations: 1.091 MB / 0.6274 GB, free: 3.441 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001015/0.5456, allocations: 0.7167 MB / 0.6281 GB, free: 2.727 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006878/0.5525, allocations: 4.148 MB / 0.6322 GB, free: 14.25 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.5526, allocations: 39.56 kB / 0.6322 GB, free: 14.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=135): time 4.538e-06/0.5526, allocations: 0 / 0.6322 GB, free: 14.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=159): time 0.01203/0.5646, allocations: 5.878 MB / 0.638 GB, free: 8.246 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.5647, allocations: 64.72 kB / 0.638 GB, free: 8.168 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003075/0.5678, allocations: 1.881 MB / 0.6399 GB, free: 6.289 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 8.184e-05/0.5679, allocations: 25.7 kB / 0.6399 GB, free: 6.258 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001234/0.5691, allocations: 2.033 MB / 0.6419 GB, free: 4.191 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004747/0.5696, allocations: 0.5704 MB / 0.6424 GB, free: 3.613 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/0.5698, allocations: 0 / 0.6424 GB, free: 3.613 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003358/0.5701, allocations: 0.5193 MB / 0.6429 GB, free: 3.082 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001971/0.5721, allocations: 1.269 MB / 0.6442 GB, free: 1.809 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1151/0.6872, allocations: 3.478 MB / 0.6476 GB, free: 175.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002572/0.6898, allocations: 2.169 MB / 0.6497 GB, free: 175.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.548e-05/0.6898, allocations: 21.69 kB / 0.6497 GB, free: 175.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=535) (initialization): time 0.006277/0.6961, allocations: 4.518 MB / 0.6541 GB, free: 175.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.6962, allocations: 3.938 kB / 0.6541 GB, free: 175.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.57e-05/0.6962, allocations: 80.53 kB / 0.6542 GB, free: 175.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007014/0.6969, allocations: 319.2 kB / 0.6545 GB, free: 175.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002754/0.6997, allocations: 0.8998 MB / 0.6554 GB, free: 175.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003277/0.703, allocations: 3.063 MB / 0.6584 GB, free: 174.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002408/0.7054, allocations: 101.1 kB / 0.6585 GB, free: 174.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002998/0.7057, allocations: 235.6 kB / 0.6587 GB, free: 174.2 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.0004013/0.7061, allocations: 305.4 kB / 0.659 GB, free: 174 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002252/0.7064, allocations: 191.3 kB / 0.6592 GB, free: 174 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00282/0.7092, allocations: 1.92 MB / 0.6611 GB, free: 173.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001442/0.7094, allocations: 21.94 kB / 0.6611 GB, free: 173.9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.166e-06/0.7094, allocations: 6.719 kB / 0.6611 GB, free: 173.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.7094, allocations: 8.266 kB / 0.6611 GB, free: 173.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007636/0.717, allocations: 4.901 MB / 0.6659 GB, free: 173.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.7171, allocations: 7.344 kB / 0.6659 GB, free: 173.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/0.7181, allocations: 209.7 kB / 0.6661 GB, free: 173.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005654/0.7187, allocations: 198.3 kB / 0.6663 GB, free: 173.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.669e-05/0.7188, allocations: 12.58 kB / 0.6663 GB, free: 173.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002512/0.7213, allocations: 2.517 MB / 0.6687 GB, free: 172.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.7213, allocations: 3.688 kB / 0.6687 GB, free: 172.2 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003555/0.7249, allocations: 3.246 MB / 0.6719 GB, free: 171.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004521/0.7253, allocations: 274.7 kB / 0.6722 GB, free: 171.5 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003036/0.7257, allocations: 3.781 kB / 0.6722 GB, free: 171.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008409/0.7265, allocations: 28.31 kB / 0.6722 GB, free: 171.5 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.7266, allocations: 81.98 kB / 0.6723 GB, free: 171.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.988e-05/0.7267, allocations: 43.22 kB / 0.6723 GB, free: 171.5 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.001496/0.7282, allocations: 1.268 MB / 0.6736 GB, free: 171.4 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00269/0.7309, allocations: 0.593 MB / 0.6741 GB, free: 171.4 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.0003153/0.7313, allocations: 146.7 kB / 0.6743 GB, free: 171.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003808/0.7351, allocations: 3.045 MB / 0.6773 GB, free: 171 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.7351, allocations: 0 / 0.6773 GB, free: 171 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00134/0.7365, allocations: 0.9904 MB / 0.6782 GB, free: 170.8 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009833/0.7374, allocations: 198.7 kB / 0.6784 GB, free: 170.8 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008305/0.7458, allocations: 5.255 MB / 0.6835 GB, free: 168.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002927/0.7487, allocations: 2.817 MB / 0.6863 GB, free: 167.7 MB / 458.7 MB Notification: Performance of SimCode: time 6.01e-07/0.7487, allocations: 0 / 0.6863 GB, free: 167.7 MB / 458.7 MB Notification: Performance of Templates: time 0.0411/0.7898, allocations: 23.33 MB / 0.7091 GB, free: 157.1 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.makefile (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 & ./PlanarMechanics_PlanarMechanics.Examples.CraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)