Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001955/0.001955, allocations: 199.3 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 225.5 MB / 234.4 MB, free: 3.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008729/0.000873, allocations: 82.91 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1059/0.1068, allocations: 56.91 MB / 343.2 MB, free: 8.711 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.2075, allocations: 51.47 MB / 394.7 MB, free: 5.18 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3477/0.5552, allocations: 99.13 MB / 493.8 MB, free: 10.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003149/0.5556, allocations: 88.14 kB / 493.9 MB, free: 10.23 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.2454/0.801, allocations: 84.24 MB / 0.5646 GB, free: 10.89 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.801, allocations: 8 kB / 0.5646 GB, free: 10.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009621/0.8107, allocations: 1.827 MB / 0.5664 GB, free: 9.047 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0101/0.8208, allocations: 3.731 MB / 0.57 GB, free: 5.25 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002483/0.8211, allocations: 128 kB / 0.5702 GB, free: 5.125 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001877/0.823, allocations: 243.8 kB / 0.5704 GB, free: 4.887 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1695/0.9925, allocations: 6.204 MB / 0.5765 GB, free: 128.6 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01293/1.005, allocations: 9.436 MB / 0.5857 GB, free: 125.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001281/1.006, allocations: 54.06 kB / 0.5857 GB, free: 125.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004829/1.006, allocations: 31.06 kB / 0.5858 GB, free: 125.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00112/1.007, allocations: 0.999 MB / 0.5867 GB, free: 125.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04071/1.048, allocations: 46.21 MB / 0.6319 GB, free: 97.13 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00323/1.051, allocations: 3.127 MB / 0.6349 GB, free: 95.56 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00167/1.053, allocations: 1.749 MB / 0.6366 GB, free: 94.86 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009621/1.063, allocations: 5.5 MB / 0.642 GB, free: 91.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/1.063, allocations: 51.08 kB / 0.642 GB, free: 91.65 MB / 442.7 MB Notification: Performance of pre-optimization done (n=118): time 5.881e-06/1.063, allocations: 3.469 kB / 0.642 GB, free: 91.65 MB / 442.7 MB Notification: Performance of matching and sorting (n=125): time 0.02455/1.087, allocations: 10.4 MB / 0.6522 GB, free: 87.1 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/1.087, allocations: 147.1 kB / 0.6523 GB, free: 86.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006783/1.094, allocations: 3.112 MB / 0.6554 GB, free: 85.83 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003639/1.095, allocations: 25.7 kB / 0.6554 GB, free: 85.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001872/1.096, allocations: 2.925 MB / 0.6583 GB, free: 83.55 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005734/1.097, allocations: 0.5103 MB / 0.6588 GB, free: 83.19 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002079/1.097, allocations: 0 / 0.6588 GB, free: 83.19 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002557/1.097, allocations: 0.5507 MB / 0.6593 GB, free: 82.78 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002158/1.1, allocations: 1.754 MB / 0.661 GB, free: 82.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003547/1.103, allocations: 5.559 MB / 0.6664 GB, free: 76.42 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004055/1.107, allocations: 3.13 MB / 0.6695 GB, free: 75.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.203e-05/1.107, allocations: 39.84 kB / 0.6695 GB, free: 75.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.01265/1.12, allocations: 6.99 MB / 0.6764 GB, free: 73 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/1.12, allocations: 3.219 kB / 0.6764 GB, free: 73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001195/1.12, allocations: 137.9 kB / 0.6765 GB, free: 73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002238/1.122, allocations: 0.8608 MB / 0.6773 GB, free: 72.87 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003964/1.126, allocations: 1.341 MB / 0.6786 GB, free: 72.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00473/1.131, allocations: 4.477 MB / 0.683 GB, free: 70.33 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004038/1.135, allocations: 182.5 kB / 0.6832 GB, free: 70.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006199/1.136, allocations: 379.9 kB / 0.6836 GB, free: 70.26 MB / 442.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.0006543/1.137, allocations: 444.5 kB / 0.684 GB, free: 69.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004149/1.137, allocations: 304.6 kB / 0.6843 GB, free: 69.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004099/1.141, allocations: 2.344 MB / 0.6866 GB, free: 68.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.252e-05/1.141, allocations: 12.8 kB / 0.6866 GB, free: 68.98 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.08e-05/1.141, allocations: 5.719 kB / 0.6866 GB, free: 68.98 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/1.141, allocations: 3.234 kB / 0.6866 GB, free: 68.98 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00981/1.151, allocations: 5.485 MB / 0.6919 GB, free: 67.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.353e-06/1.151, allocations: 4 kB / 0.6919 GB, free: 67.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009929/1.152, allocations: 188.1 kB / 0.6921 GB, free: 67.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001891/1.154, allocations: 0.633 MB / 0.6927 GB, free: 66.96 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/1.154, allocations: 14.73 kB / 0.6928 GB, free: 66.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004501/1.159, allocations: 4.106 MB / 0.6968 GB, free: 64.67 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.159, allocations: 9.781 kB / 0.6968 GB, free: 64.67 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005759/1.164, allocations: 4.493 MB / 0.7012 GB, free: 62.86 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007237/1.172, allocations: 6.294 MB / 0.7073 GB, free: 58.34 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007149/1.172, allocations: 348.5 kB / 0.7076 GB, free: 57.99 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003761/1.173, allocations: 4 kB / 0.7076 GB, free: 57.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/1.174, allocations: 38.58 kB / 0.7077 GB, free: 57.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/1.174, allocations: 64.41 kB / 0.7077 GB, free: 57.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/1.174, allocations: 42.86 kB / 0.7078 GB, free: 57.88 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002589/1.177, allocations: 2.071 MB / 0.7098 GB, free: 56.09 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004671/1.181, allocations: 0.7784 MB / 0.7106 GB, free: 55.31 MB / 442.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.0003238/1.182, allocations: 155.5 kB / 0.7107 GB, free: 55.17 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004775/1.186, allocations: 4.163 MB / 0.7148 GB, free: 51.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/1.186, allocations: 0 / 0.7148 GB, free: 51.43 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001196/1.188, allocations: 1.151 MB / 0.7159 GB, free: 50.38 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/1.189, allocations: 310.7 kB / 0.7162 GB, free: 50.12 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/1.2, allocations: 6.744 MB / 0.7228 GB, free: 44.08 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003679/1.204, allocations: 3.443 MB / 0.7261 GB, free: 41.41 MB / 442.7 MB Notification: Performance of SimCode: time 6.71e-07/1.204, allocations: 0 / 0.7261 GB, free: 41.41 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1)