Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009421/0.0009421, allocations: 178.5 kB / 8.477 MB, free: 1.871 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.257/1.257, allocations: 205.2 MB / 214.1 MB, free: 13.87 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.0009369/0.0009369, allocations: 80.55 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1051/0.1061, allocations: 52.99 MB / 315.1 MB, free: 8.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.3206, allocations: 47.55 MB / 362.6 MB, free: 45.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1108/0.4315, allocations: 97.48 MB / 460.1 MB, free: 4.473 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/0.4318, allocations: 87.94 kB / 460.2 MB, free: 4.387 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.3849/0.8167, allocations: 86.57 MB / 0.534 GB, free: 95 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.8167, allocations: 11.38 kB / 0.534 GB, free: 95 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009476/0.8262, allocations: 1.823 MB / 0.5357 GB, free: 94.67 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01194/0.8382, allocations: 4.521 MB / 0.5402 GB, free: 92.96 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002558/0.8385, allocations: 138.3 kB / 0.5403 GB, free: 92.96 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001931/0.8404, allocations: 253 kB / 0.5405 GB, free: 92.95 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01355/0.854, allocations: 6.535 MB / 0.5469 GB, free: 90.74 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01951/0.8735, allocations: 9.872 MB / 0.5566 GB, free: 83.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002491/0.8738, allocations: 60.67 kB / 0.5566 GB, free: 83.15 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001723/0.8755, allocations: 33.78 kB / 0.5566 GB, free: 83.12 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001423/0.877, allocations: 1.057 MB / 0.5577 GB, free: 82.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04937/0.9264, allocations: 47.71 MB / 0.6043 GB, free: 33.36 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003889/0.9303, allocations: 3.329 MB / 0.6075 GB, free: 29.89 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002299/0.9326, allocations: 1.907 MB / 0.6094 GB, free: 27.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009558/0.9422, allocations: 5.915 MB / 0.6152 GB, free: 21.83 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.9423, allocations: 60.22 kB / 0.6152 GB, free: 21.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=139): time 5.991e-06/0.9423, allocations: 0 / 0.6152 GB, free: 21.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=146): time 0.02169/0.964, allocations: 11.24 MB / 0.6262 GB, free: 10.42 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.9641, allocations: 142.4 kB / 0.6263 GB, free: 10.25 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005699/0.9698, allocations: 3.205 MB / 0.6295 GB, free: 7.055 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002623/0.9701, allocations: 29.64 kB / 0.6295 GB, free: 7.02 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001951/0.9721, allocations: 3.057 MB / 0.6325 GB, free: 3.914 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007641/0.9728, allocations: 0.5749 MB / 0.633 GB, free: 3.332 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004928/0.9733, allocations: 0 / 0.633 GB, free: 3.332 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.00048/0.9738, allocations: 0.5662 MB / 0.6336 GB, free: 2.758 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00279/0.9766, allocations: 1.925 MB / 0.6355 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005938/0.9826, allocations: 5.88 MB / 0.6412 GB, free: 8.93 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005034/0.9876, allocations: 3.358 MB / 0.6445 GB, free: 5.57 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001184/0.9878, allocations: 40 kB / 0.6445 GB, free: 5.531 MB / 410.7 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.1522/1.14, allocations: 7.439 MB / 0.6518 GB, free: 134.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/1.14, allocations: 6.844 kB / 0.6518 GB, free: 134.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001486/1.14, allocations: 144 kB / 0.6519 GB, free: 134.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002286/1.142, allocations: 0.862 MB / 0.6528 GB, free: 134.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004605/1.147, allocations: 1.432 MB / 0.6542 GB, free: 134.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004886/1.152, allocations: 4.501 MB / 0.6586 GB, free: 133.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004595/1.157, allocations: 197.2 kB / 0.6588 GB, free: 133.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00104/1.158, allocations: 391.3 kB / 0.6591 GB, free: 133.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * Number of states: 0 () * Number of discrete variables: 36 (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.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 (763): * Single equations (assignments): 759 * 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.0008406/1.159, allocations: 458.8 kB / 0.6596 GB, free: 133 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005864/1.159, allocations: 322.1 kB / 0.6599 GB, free: 133 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00473/1.164, allocations: 2.699 MB / 0.6625 GB, free: 132.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.346e-05/1.164, allocations: 12.78 kB / 0.6625 GB, free: 132.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/1.164, allocations: 5.562 kB / 0.6625 GB, free: 132.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/1.164, allocations: 6.797 kB / 0.6625 GB, free: 132.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01084/1.175, allocations: 6.132 MB / 0.6685 GB, free: 132.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/1.175, allocations: 1.875 kB / 0.6685 GB, free: 132.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/1.176, allocations: 232.2 kB / 0.6688 GB, free: 132.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001973/1.178, allocations: 0.6343 MB / 0.6694 GB, free: 132.6 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001504/1.178, allocations: 12.77 kB / 0.6694 GB, free: 132.6 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00461/1.183, allocations: 4.115 MB / 0.6734 GB, free: 131.3 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/1.183, allocations: 2.625 kB / 0.6734 GB, free: 131.3 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006547/1.189, allocations: 5.073 MB / 0.6784 GB, free: 130.1 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00786/1.197, allocations: 7.121 MB / 0.6853 GB, free: 127.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001276/1.199, allocations: 0.5713 MB / 0.6859 GB, free: 126.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005075/1.199, allocations: 2.438 kB / 0.6859 GB, free: 126.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/1.2, allocations: 48.64 kB / 0.6859 GB, free: 126.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002193/1.201, allocations: 67.23 kB / 0.686 GB, free: 126.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/1.201, allocations: 44.95 kB / 0.686 GB, free: 126.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.00318/1.204, allocations: 2.138 MB / 0.6881 GB, free: 126.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006476/1.211, allocations: 0.8264 MB / 0.6889 GB, free: 126.1 MB / 410.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 (115): * Single equations (assignments): 111 * 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.0004925/1.211, allocations: 148.2 kB / 0.6891 GB, free: 126 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00732/1.218, allocations: 4.568 MB / 0.6935 GB, free: 124.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/1.218, allocations: 0 / 0.6935 GB, free: 124.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001896/1.22, allocations: 1.322 MB / 0.6948 GB, free: 124.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002075/1.222, allocations: 322.5 kB / 0.6951 GB, free: 124.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01766/1.24, allocations: 7.254 MB / 0.7022 GB, free: 121 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00564/1.246, allocations: 3.587 MB / 0.7057 GB, free: 118.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.482e-06/1.246, allocations: 2.562 kB / 0.7057 GB, free: 118.3 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1)