Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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) 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(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",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.0009258/0.0009258, allocations: 183.9 kB / 8.135 MB, free: 2.219 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.054/1.054, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0008874/0.0008874, allocations: 93.44 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0861/0.08701, allocations: 55.83 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.2486, allocations: 50.39 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09109/0.3397, allocations: 98.47 MB / 485.5 MB, free: 4.352 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001969/0.3399, allocations: 92.7 kB / 485.6 MB, free: 4.262 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.2997/0.6396, allocations: 83.52 MB / 0.5557 GB, free: 53.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.943e-05/0.6397, allocations: 12 kB / 0.5558 GB, free: 53.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007123/0.6468, allocations: 1.785 MB / 0.5575 GB, free: 51.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008023/0.6548, allocations: 4.279 MB / 0.5617 GB, free: 47.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.11e-05/0.6549, allocations: 128 kB / 0.5618 GB, free: 47.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005832/0.6555, allocations: 243.9 kB / 0.562 GB, free: 46.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006945/0.6625, allocations: 6.196 MB / 0.5681 GB, free: 40.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008915/0.6714, allocations: 9.432 MB / 0.5773 GB, free: 30.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001069/0.6716, allocations: 63.41 kB / 0.5774 GB, free: 30.19 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004269/0.672, allocations: 32 kB / 0.5774 GB, free: 30.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009482/0.6729, allocations: 0.9858 MB / 0.5783 GB, free: 29.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03415/0.7071, allocations: 46.22 MB / 0.6235 GB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003439/0.7106, allocations: 3.134 MB / 0.6265 GB, free: 10.24 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001811/0.7124, allocations: 1.753 MB / 0.6283 GB, free: 8.477 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006911/0.7193, allocations: 5.502 MB / 0.6336 GB, free: 2.707 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.649e-05/0.7194, allocations: 55.06 kB / 0.6337 GB, free: 2.645 MB / 410.7 MB Notification: Performance of pre-optimization done (n=118): time 2.815e-06/0.7194, allocations: 0 / 0.6337 GB, free: 2.645 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.01649/0.7359, allocations: 10.39 MB / 0.6438 GB, free: 8.148 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/0.7359, allocations: 145.2 kB / 0.644 GB, free: 7.977 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003644/0.7396, allocations: 3.115 MB / 0.647 GB, free: 4.863 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.007e-05/0.7397, allocations: 25.7 kB / 0.647 GB, free: 4.832 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001417/0.7411, allocations: 2.922 MB / 0.6499 GB, free: 1.863 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003751/0.7415, allocations: 0.5132 MB / 0.6504 GB, free: 1.344 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.7417, allocations: 7.938 kB / 0.6504 GB, free: 1.336 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002856/0.742, allocations: 0.5499 MB / 0.6509 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1015/0.8434, allocations: 1.754 MB / 0.6526 GB, free: 135.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002791/0.8462, allocations: 5.565 MB / 0.6581 GB, free: 130.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002813/0.8491, allocations: 3.112 MB / 0.6611 GB, free: 130.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.685e-05/0.8491, allocations: 39.34 kB / 0.6612 GB, free: 130.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.008758/0.8579, allocations: 6.978 MB / 0.668 GB, free: 129.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.258e-05/0.8579, allocations: 6.188 kB / 0.668 GB, free: 129.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.567e-05/0.858, allocations: 137.3 kB / 0.6681 GB, free: 129.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001995/0.86, allocations: 0.8578 MB / 0.6689 GB, free: 129.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003243/0.8632, allocations: 1.342 MB / 0.6703 GB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004303/0.8676, allocations: 4.479 MB / 0.6746 GB, free: 128.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003008/0.8706, allocations: 183.9 kB / 0.6748 GB, free: 128.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003445/0.8709, allocations: 384.2 kB / 0.6752 GB, free: 128.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 629 * Number of states: 0 () * Number of discrete variables: 38 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (719): * Single equations (assignments): 715 * Array equations: 3 * 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 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004708/0.8714, allocations: 444.7 kB / 0.6756 GB, free: 128.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000305/0.8717, allocations: 299.6 kB / 0.6759 GB, free: 128.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003741/0.8755, allocations: 2.335 MB / 0.6782 GB, free: 128 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.57e-05/0.8755, allocations: 14.62 kB / 0.6782 GB, free: 128 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.8755, allocations: 11.16 kB / 0.6782 GB, free: 128 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.8755, allocations: 7.234 kB / 0.6782 GB, free: 128 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007835/0.8834, allocations: 5.485 MB / 0.6835 GB, free: 127.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.8834, allocations: 4.844 kB / 0.6836 GB, free: 127.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008903/0.8843, allocations: 188.3 kB / 0.6837 GB, free: 127.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001864/0.8862, allocations: 0.636 MB / 0.6844 GB, free: 127.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.309e-05/0.8863, allocations: 8.609 kB / 0.6844 GB, free: 127.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004008/0.8903, allocations: 4.123 MB / 0.6884 GB, free: 126.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.8903, allocations: 0 / 0.6884 GB, free: 126.4 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004959/0.8952, allocations: 4.49 MB / 0.6928 GB, free: 125.9 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006139/0.9014, allocations: 6.294 MB / 0.6989 GB, free: 124.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004231/0.9018, allocations: 350.9 kB / 0.6993 GB, free: 123.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003536/0.9022, allocations: 3.844 kB / 0.6993 GB, free: 123.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001/0.9032, allocations: 40.2 kB / 0.6993 GB, free: 123.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/0.9034, allocations: 62.41 kB / 0.6994 GB, free: 123.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.979e-05/0.9035, allocations: 35.75 kB / 0.6994 GB, free: 123.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002378/0.9059, allocations: 2.081 MB / 0.7014 GB, free: 123.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00447/0.9103, allocations: 0.7716 MB / 0.7022 GB, free: 123.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (93): * Single equations (assignments): 89 * Array equations: 3 * 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 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002896/0.9106, allocations: 149.2 kB / 0.7023 GB, free: 123 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00487/0.9155, allocations: 4.156 MB / 0.7064 GB, free: 121.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.9155, allocations: 0 / 0.7064 GB, free: 121.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001271/0.9168, allocations: 1.138 MB / 0.7075 GB, free: 121.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.918, allocations: 313.4 kB / 0.7078 GB, free: 121 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009256/0.9273, allocations: 6.748 MB / 0.7144 GB, free: 118.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00303/0.9304, allocations: 3.437 MB / 0.7177 GB, free: 115.5 MB / 426.7 MB Notification: Performance of SimCode: time 5.72e-07/0.9304, allocations: 0 / 0.7177 GB, free: 115.5 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1)