Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",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 3.2.3+maint.om/package.mo): time 0.001456/0.001456, allocations: 182.8 kB / 8.477 MB, free: 1.859 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.288/1.288, allocations: 205.2 MB / 214.1 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009452/0.0009452, allocations: 89.94 kB / 262.1 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1048/0.1058, allocations: 52.99 MB / 315.1 MB, free: 8.574 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.3164, allocations: 47.56 MB / 362.6 MB, free: 45.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1081/0.4245, allocations: 98.18 MB / 460.8 MB, free: 3.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/0.4247, allocations: 86.48 kB / 460.9 MB, free: 3.598 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: 1851 * Number of variables: 1851 Notification: Performance of Generate backend data structure: time 0.4792/0.9039, allocations: 100.6 MB / 0.5483 GB, free: 90.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.904, allocations: 13.41 kB / 0.5483 GB, free: 90.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01083/0.9148, allocations: 1.923 MB / 0.5502 GB, free: 89.35 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01508/0.9299, allocations: 4.991 MB / 0.5551 GB, free: 86.23 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003242/0.9303, allocations: 172 kB / 0.5553 GB, free: 86.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002522/0.9328, allocations: 307.8 kB / 0.5556 GB, free: 85.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01402/0.9469, allocations: 7.982 MB / 0.5633 GB, free: 77.78 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02644/0.9734, allocations: 11.76 MB / 0.5748 GB, free: 64.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003718/0.9738, allocations: 71.31 kB / 0.5749 GB, free: 64.84 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002352/0.9761, allocations: 32 kB / 0.5749 GB, free: 64.8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001781/0.9779, allocations: 1.266 MB / 0.5762 GB, free: 63.54 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06567/1.044, allocations: 55.69 MB / 0.6305 GB, free: 6.648 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005123/1.049, allocations: 4.443 MB / 0.6349 GB, free: 2.062 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003913/1.053, allocations: 3.311 MB / 0.6381 GB, free: 14.74 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01948/1.072, allocations: 9.998 MB / 0.6479 GB, free: 4.535 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.398e-05/1.072, allocations: 55.88 kB / 0.6479 GB, free: 4.473 MB / 410.7 MB Notification: Performance of pre-optimization done (n=215): time 7.224e-06/1.072, allocations: 0 / 0.6479 GB, free: 4.473 MB / 410.7 MB Notification: Performance of matching and sorting (n=246): time 0.1643/1.237, allocations: 22.26 MB / 0.6697 GB, free: 134.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.942e-05/1.237, allocations: 153.1 kB / 0.6698 GB, free: 134.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004962/1.242, allocations: 3.43 MB / 0.6732 GB, free: 134.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005351/1.242, allocations: 25.7 kB / 0.6732 GB, free: 134 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001477/1.244, allocations: 3.429 MB / 0.6765 GB, free: 131.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001069/1.245, allocations: 0.9001 MB / 0.6774 GB, free: 131.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003172/1.245, allocations: 0 / 0.6774 GB, free: 131.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003437/1.246, allocations: 0.6065 MB / 0.678 GB, free: 131 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003637/1.249, allocations: 2.962 MB / 0.6809 GB, free: 131 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005145/1.254, allocations: 7.149 MB / 0.6879 GB, free: 125.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005714/1.26, allocations: 4.563 MB / 0.6923 GB, free: 124.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.657e-05/1.26, allocations: 42.19 kB / 0.6924 GB, free: 124.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=936) (initialization): time 0.01743/1.278, allocations: 10.07 MB / 0.7022 GB, free: 121.1 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/1.278, allocations: 4.125 kB / 0.7022 GB, free: 121.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002373/1.278, allocations: 150.4 kB / 0.7024 GB, free: 121.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003147/1.281, allocations: 1.081 MB / 0.7034 GB, free: 120.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006988/1.288, allocations: 1.743 MB / 0.7051 GB, free: 120.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006592/1.295, allocations: 5.53 MB / 0.7105 GB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006508/1.301, allocations: 251.2 kB / 0.7108 GB, free: 117.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001255/1.303, allocations: 451 kB / 0.7112 GB, free: 117.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 683 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],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 (897): * Single equations (assignments): 893 * 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.001057/1.304, allocations: 489.9 kB / 0.7117 GB, free: 116.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006919/1.304, allocations: 374.9 kB / 0.712 GB, free: 116.4 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008018/1.312, allocations: 5.35 MB / 0.7173 GB, free: 112.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.033e-05/1.312, allocations: 24 kB / 0.7173 GB, free: 112.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.226e-05/1.312, allocations: 4 kB / 0.7173 GB, free: 112.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.837e-05/1.313, allocations: 16.61 kB / 0.7173 GB, free: 112.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02064/1.333, allocations: 10.76 MB / 0.7278 GB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.579e-05/1.333, allocations: 4 kB / 0.7278 GB, free: 103.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002862/1.336, allocations: 458 kB / 0.7282 GB, free: 102.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002401/1.339, allocations: 0.8689 MB / 0.7291 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005356/1.339, allocations: 23.69 kB / 0.7291 GB, free: 102.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005582/1.345, allocations: 5.234 MB / 0.7342 GB, free: 97.65 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/1.345, allocations: 7.938 kB / 0.7342 GB, free: 97.64 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01215/1.357, allocations: 9.547 MB / 0.7436 GB, free: 89.09 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01706/1.374, allocations: 13.35 MB / 0.7566 GB, free: 77.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002339/1.376, allocations: 0.8331 MB / 0.7574 GB, free: 76.33 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001071/1.377, allocations: 18.05 kB / 0.7574 GB, free: 76.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002434/1.38, allocations: 85.84 kB / 0.7575 GB, free: 76.26 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00039/1.38, allocations: 130.3 kB / 0.7576 GB, free: 76.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002229/1.381, allocations: 67.42 kB / 0.7577 GB, free: 76.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.003593/1.384, allocations: 2.29 MB / 0.7599 GB, free: 73.86 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007969/1.392, allocations: 1.091 MB / 0.761 GB, free: 72.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (219): * Single equations (assignments): 215 * 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 Backend phase and start with SimCode phase: time 0.0007686/1.393, allocations: 155.1 kB / 0.7611 GB, free: 72.62 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009904/1.403, allocations: 7.009 MB / 0.768 GB, free: 65.63 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/1.403, allocations: 0 / 0.768 GB, free: 65.63 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003685/1.407, allocations: 2.638 MB / 0.7706 GB, free: 62.99 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002784/1.409, allocations: 341 kB / 0.7709 GB, free: 62.66 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02099/1.43, allocations: 10.04 MB / 0.7807 GB, free: 52.56 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006156/1.437, allocations: 4.252 MB / 0.7848 GB, free: 48.29 MB / 410.7 MB Notification: Performance of SimCode: time 1.293e-06/1.437, allocations: 0 / 0.7848 GB, free: 48.29 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1)