Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001555/0.001555, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.124/2.124, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001103/0.001102, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.232e-05/3.25e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 47.58 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4571/0.5631, allocations: 98.91 MB / 468.1 MB, free: 10.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003493/0.5635, allocations: 85.45 kB / 468.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8073/1.371, allocations: 98.21 MB / 0.5531 GB, free: 89.93 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.975e-06/1.371, allocations: 0 / 0.5531 GB, free: 89.93 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003178/1.371, allocations: 103 kB / 0.5532 GB, free: 89.93 MB / 410.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.03428/1.405, allocations: 5.506 MB / 0.5586 GB, free: 87.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.589e-05/1.406, allocations: 6.938 kB / 0.5586 GB, free: 87.9 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005679/1.411, allocations: 0.9292 MB / 0.5595 GB, free: 87.81 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02755/1.439, allocations: 2.321 MB / 0.5618 GB, free: 87.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02771/1.467, allocations: 4.931 MB / 0.5666 GB, free: 86.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000723/1.467, allocations: 393.8 kB / 0.567 GB, free: 86.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004112/1.472, allocations: 0.52 MB / 0.5675 GB, free: 86.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04985/1.522, allocations: 12.91 MB / 0.5801 GB, free: 82.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004344/1.522, allocations: 63.94 kB / 0.5801 GB, free: 82.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002925/1.525, allocations: 254.3 kB / 0.5804 GB, free: 82.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003053/1.528, allocations: 1.2 MB / 0.5816 GB, free: 82.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03518/1.563, allocations: 11.02 MB / 0.5923 GB, free: 79.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09393/1.657, allocations: 57.18 MB / 0.6482 GB, free: 28.11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03578/1.693, allocations: 5.134 MB / 0.6532 GB, free: 22.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006404/1.7, allocations: 3.166 MB / 0.6563 GB, free: 19.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001883/1.702, allocations: 0.6924 MB / 0.6569 GB, free: 18.86 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.279e-05/1.702, allocations: 63.75 kB / 0.657 GB, free: 18.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=221): time 6.212e-06/1.702, allocations: 0 / 0.657 GB, free: 18.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.1287/1.83, allocations: 21.51 MB / 0.678 GB, free: 13.17 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001599/1.831, allocations: 154.5 kB / 0.6781 GB, free: 12.99 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01437/1.845, allocations: 4.07 MB / 0.6821 GB, free: 8.906 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008851/1.846, allocations: 61.7 kB / 0.6822 GB, free: 8.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00454/1.851, allocations: 3.488 MB / 0.6856 GB, free: 5.355 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0022/1.853, allocations: 0.9545 MB / 0.6865 GB, free: 4.41 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001322/1.854, allocations: 139.9 kB / 0.6867 GB, free: 4.273 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008599/1.855, allocations: 0.6043 MB / 0.6872 GB, free: 3.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009341/1.864, allocations: 2.973 MB / 0.6901 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3339/2.198, allocations: 7.017 MB / 0.697 GB, free: 91.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01279/2.211, allocations: 4.513 MB / 0.7014 GB, free: 91.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003378/2.212, allocations: 45.19 kB / 0.7015 GB, free: 91.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=912) (initialization): time 0.03405/2.246, allocations: 10.69 MB / 0.7119 GB, free: 90.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000172/2.246, allocations: 70.39 kB / 0.712 GB, free: 90.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002342/2.246, allocations: 140.2 kB / 0.7121 GB, free: 90.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004972/2.251, allocations: 1.146 MB / 0.7132 GB, free: 90.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01349/2.265, allocations: 1.744 MB / 0.7149 GB, free: 90.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01766/2.282, allocations: 5.919 MB / 0.7207 GB, free: 89.33 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01358/2.296, allocations: 432.5 kB / 0.7211 GB, free: 89.33 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002806/2.299, allocations: 433.4 kB / 0.7215 GB, free: 89.33 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 653 * 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 (873): * Single equations (assignments): 869 * 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.004571/2.304, allocations: 0.642 MB / 0.7221 GB, free: 89.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002136/2.306, allocations: 420.7 kB / 0.7225 GB, free: 89.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02595/2.332, allocations: 5.494 MB / 0.7279 GB, free: 87.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.329e-05/2.332, allocations: 34.53 kB / 0.7279 GB, free: 87.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.718e-05/2.332, allocations: 3.938 kB / 0.7279 GB, free: 87.43 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.239e-05/2.332, allocations: 12.84 kB / 0.728 GB, free: 87.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05143/2.383, allocations: 12.11 MB / 0.7398 GB, free: 83.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.364e-05/2.384, allocations: 3.562 kB / 0.7398 GB, free: 83.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007143/2.391, allocations: 0.4998 MB / 0.7403 GB, free: 82.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005954/2.397, allocations: 0.9372 MB / 0.7412 GB, free: 82.81 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001027/2.398, allocations: 52.06 kB / 0.7412 GB, free: 82.78 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01639/2.414, allocations: 5.639 MB / 0.7467 GB, free: 79.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.769e-06/2.414, allocations: 3.906 kB / 0.7468 GB, free: 79.91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03411/2.448, allocations: 9.702 MB / 0.7562 GB, free: 75.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005196/2.454, allocations: 0.9046 MB / 0.7571 GB, free: 75.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002567/2.456, allocations: 47.41 kB / 0.7572 GB, free: 75.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007281/2.464, allocations: 181.5 kB / 0.7573 GB, free: 75.31 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001543/2.465, allocations: 157.1 kB / 0.7575 GB, free: 75.28 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009063/2.466, allocations: 67.8 kB / 0.7575 GB, free: 75.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01156/2.478, allocations: 2.841 MB / 0.7603 GB, free: 74.26 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.142e-06/2.478, allocations: 5.969 kB / 0.7603 GB, free: 74.26 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01452/2.493, allocations: 1.265 MB / 0.7616 GB, free: 74.12 MB / 426.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 (225): * Single equations (assignments): 221 * 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.03674/2.529, allocations: 11.05 MB / 0.7723 GB, free: 64.95 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02473/2.554, allocations: 7.184 MB / 0.7794 GB, free: 58.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.384e-05/2.554, allocations: 0 / 0.7794 GB, free: 58.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009913/2.564, allocations: 2.682 MB / 0.782 GB, free: 56.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006246/2.57, allocations: 456.2 kB / 0.7824 GB, free: 55.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05869/2.629, allocations: 12.33 MB / 0.7945 GB, free: 45.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01052/2.64, allocations: 3.912 MB / 0.7983 GB, free: 42.08 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006826/2.647, allocations: 2.399 MB / 0.8006 GB, free: 39.88 MB / 426.7 MB Notification: Performance of SimCode: time 2.174e-06/2.647, allocations: 0 / 0.8006 GB, free: 39.88 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.095/7.742, allocations: 122.1 MB / 0.9198 GB, free: 76.23 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_MovingActuatedDrive.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat does not exist to compare? outputFormat=mat