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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001184/0.001184, allocations: 181.6 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.189/1.189, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008649/0.0008649, allocations: 96.09 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002302/0.0002302, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1968/0.197, allocations: 47.58 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09989/0.297, allocations: 98.3 MB / 474.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/0.2972, allocations: 91.95 kB / 474.3 MB, free: 14.22 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3425/0.6397, allocations: 84.79 MB / 0.546 GB, free: 71.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.6397, allocations: 0 / 0.546 GB, free: 71.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002211/0.64, allocations: 80 kB / 0.5461 GB, free: 71.01 MB / 378.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.01589/0.6559, allocations: 4.75 MB / 0.5507 GB, free: 66.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.6559, allocations: 8.031 kB / 0.5507 GB, free: 66.18 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002697/0.6587, allocations: 0.7746 MB / 0.5515 GB, free: 65.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009121/0.6678, allocations: 2.218 MB / 0.5536 GB, free: 63.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01081/0.6786, allocations: 4.493 MB / 0.558 GB, free: 58.61 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002878/0.679, allocations: 316.4 kB / 0.5583 GB, free: 58.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00216/0.6811, allocations: 435.8 kB / 0.5587 GB, free: 57.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02037/0.7015, allocations: 10.79 MB / 0.5693 GB, free: 46.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002281/0.7018, allocations: 67.41 kB / 0.5693 GB, free: 45.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001401/0.7032, allocations: 207.9 kB / 0.5695 GB, free: 45.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001383/0.7046, allocations: 1.002 MB / 0.5705 GB, free: 44.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01584/0.7205, allocations: 9.015 MB / 0.5793 GB, free: 35.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04659/0.7671, allocations: 48.97 MB / 0.6271 GB, free: 1.172 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01013/0.7773, allocations: 3.543 MB / 0.6306 GB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008277/0.7856, allocations: 4.367 MB / 0.6349 GB, free: 8.969 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.5e-05/0.7856, allocations: 55.44 kB / 0.6349 GB, free: 8.906 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 3.416e-06/0.7857, allocations: 0 / 0.6349 GB, free: 8.906 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.1877/0.9734, allocations: 12.25 MB / 0.6469 GB, free: 98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.162e-05/0.9735, allocations: 147.9 kB / 0.647 GB, free: 97.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005524/0.979, allocations: 3.728 MB / 0.6507 GB, free: 97.48 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000264/0.9793, allocations: 42.42 kB / 0.6507 GB, free: 97.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001725/0.981, allocations: 3.194 MB / 0.6538 GB, free: 95.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000412/0.9814, allocations: 0.591 MB / 0.6544 GB, free: 95.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001973/0.9816, allocations: 120.3 kB / 0.6545 GB, free: 95.6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002195/0.9819, allocations: 0.5504 MB / 0.655 GB, free: 95.28 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002497/0.9844, allocations: 1.976 MB / 0.657 GB, free: 95.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003814/0.9882, allocations: 5.793 MB / 0.6626 GB, free: 90.31 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003992/0.9922, allocations: 3.317 MB / 0.6659 GB, free: 90.3 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.888e-05/0.9923, allocations: 45.67 kB / 0.6659 GB, free: 90.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.01024/1.003, allocations: 8.224 MB / 0.6739 GB, free: 88.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.153e-05/1.003, allocations: 63.5 kB / 0.674 GB, free: 88.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.52e-05/1.003, allocations: 140.9 kB / 0.6741 GB, free: 88.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001961/1.005, allocations: 0.9209 MB / 0.675 GB, free: 88.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003298/1.008, allocations: 1.383 MB / 0.6764 GB, free: 88.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004618/1.013, allocations: 4.888 MB / 0.6812 GB, free: 85.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003383/1.016, allocations: 331.7 kB / 0.6815 GB, free: 85.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003715/1.016, allocations: 372 kB / 0.6818 GB, free: 85.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 622 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (732): * Single equations (assignments): 728 * 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.002451/1.019, allocations: 2.106 MB / 0.6839 GB, free: 84.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004122/1.019, allocations: 352.1 kB / 0.6842 GB, free: 84.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004402/1.024, allocations: 2.875 MB / 0.687 GB, free: 83.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/1.024, allocations: 19.59 kB / 0.6871 GB, free: 83.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/1.024, allocations: 6.812 kB / 0.6871 GB, free: 83.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/1.024, allocations: 7.359 kB / 0.6871 GB, free: 83.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0102/1.034, allocations: 7.01 MB / 0.6939 GB, free: 80.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/1.034, allocations: 3.953 kB / 0.6939 GB, free: 80.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/1.035, allocations: 248.6 kB / 0.6942 GB, free: 80.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001792/1.037, allocations: 0.7015 MB / 0.6948 GB, free: 80.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.364e-05/1.037, allocations: 19.5 kB / 0.6949 GB, free: 80.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004246/1.041, allocations: 4.466 MB / 0.6992 GB, free: 78.24 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.041, allocations: 3.906 kB / 0.6992 GB, free: 78.24 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005968/1.047, allocations: 5.186 MB / 0.7043 GB, free: 74.11 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001293/1.049, allocations: 0.612 MB / 0.7049 GB, free: 73.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003203/1.049, allocations: 24 kB / 0.7049 GB, free: 73.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/1.05, allocations: 95.84 kB / 0.705 GB, free: 73.44 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002245/1.05, allocations: 82.39 kB / 0.7051 GB, free: 73.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/1.05, allocations: 38.62 kB / 0.7051 GB, free: 73.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003887/1.054, allocations: 2.607 MB / 0.7077 GB, free: 71.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.054, allocations: 0 / 0.7077 GB, free: 71.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00469/1.059, allocations: 0.9612 MB / 0.7086 GB, free: 70.23 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * 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.006349/1.065, allocations: 5.998 MB / 0.7145 GB, free: 64.99 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006223/1.071, allocations: 4.777 MB / 0.7191 GB, free: 60.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/1.072, allocations: 4 kB / 0.7191 GB, free: 60.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001479/1.073, allocations: 1.36 MB / 0.7205 GB, free: 59.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001696/1.075, allocations: 397.1 kB / 0.7208 GB, free: 59.26 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2546/1.329, allocations: 127.4 MB / 0.8453 GB, free: 95.66 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002802/1.332, allocations: 3.319 MB / 0.8485 GB, free: 94.88 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004173/1.336, allocations: 1.875 MB / 0.8503 GB, free: 94.84 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002038/1.338, allocations: 1.848 MB / 0.8521 GB, free: 94.83 MB / 442.7 MB Notification: Performance of SimCode: time 1.363e-06/1.338, allocations: 0 / 0.8521 GB, free: 94.83 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09447/1.433, allocations: 74.4 MB / 0.9248 GB, free: 40.38 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001433/1.433, allocations: 233.3 kB / 0.925 GB, free: 40.13 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.776/5.209, allocations: 3.938 kB / 0.925 GB, free: 40.12 MB / 442.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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat does not exist to compare? outputFormat=mat