Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002455/0.002455, allocations: 181.3 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.293/2.293, 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.001098/0.001098, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.644e-05/3.662e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4507/0.5575, allocations: 98.22 MB / 467.4 MB, free: 11.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003104/0.5578, allocations: 86.27 kB / 467.5 MB, free: 11.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6906/1.248, allocations: 84.83 MB / 0.5394 GB, free: 90.77 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.385e-06/1.249, allocations: 2.688 kB / 0.5394 GB, free: 90.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003055/1.249, allocations: 87.28 kB / 0.5395 GB, free: 90.76 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.02919/1.278, allocations: 4.49 MB / 0.5438 GB, free: 89.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.257e-05/1.278, allocations: 13.14 kB / 0.5439 GB, free: 89.09 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003823/1.282, allocations: 0.7666 MB / 0.5446 GB, free: 89.01 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01857/1.301, allocations: 2.219 MB / 0.5468 GB, free: 88.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01772/1.318, allocations: 4.475 MB / 0.5511 GB, free: 88.15 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004123/1.319, allocations: 324.6 kB / 0.5514 GB, free: 88.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002547/1.321, allocations: 426.8 kB / 0.5519 GB, free: 88.14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03223/1.354, allocations: 10.71 MB / 0.5623 GB, free: 85.31 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004082/1.354, allocations: 62.25 kB / 0.5624 GB, free: 85.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002504/1.357, allocations: 212.1 kB / 0.5626 GB, free: 85.3 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002484/1.359, allocations: 0.9994 MB / 0.5636 GB, free: 85.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02744/1.387, allocations: 8.85 MB / 0.5722 GB, free: 84.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07226/1.459, allocations: 48.97 MB / 0.62 GB, free: 47.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01846/1.478, allocations: 3.496 MB / 0.6234 GB, free: 45.66 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003831/1.481, allocations: 1.777 MB / 0.6252 GB, free: 44.92 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01188/1.493, allocations: 4.367 MB / 0.6294 GB, free: 41.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/1.493, allocations: 47.28 kB / 0.6295 GB, free: 41.51 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 4.96e-06/1.493, allocations: 4 kB / 0.6295 GB, free: 41.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.03769/1.531, allocations: 9.743 MB / 0.639 GB, free: 33.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.003e-05/1.531, allocations: 145 kB / 0.6391 GB, free: 32.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00849/1.54, allocations: 3.693 MB / 0.6427 GB, free: 29.54 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004045/1.54, allocations: 49.7 kB / 0.6428 GB, free: 29.48 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002656/1.543, allocations: 3.117 MB / 0.6458 GB, free: 26.65 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009571/1.544, allocations: 0.5843 MB / 0.6464 GB, free: 26.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007264/1.545, allocations: 120 kB / 0.6465 GB, free: 26.03 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003967/1.545, allocations: 0.5552 MB / 0.6471 GB, free: 25.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004895/1.55, allocations: 1.923 MB / 0.6489 GB, free: 23.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007458/1.558, allocations: 5.726 MB / 0.6545 GB, free: 16.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007384/1.565, allocations: 3.286 MB / 0.6577 GB, free: 13.63 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001141/1.565, allocations: 43.94 kB / 0.6578 GB, free: 13.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.023/1.588, allocations: 7.983 MB / 0.6656 GB, free: 6.711 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001118/1.588, allocations: 64 kB / 0.6656 GB, free: 6.648 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002108/1.589, allocations: 136 kB / 0.6658 GB, free: 6.516 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004272/1.593, allocations: 0.9129 MB / 0.6667 GB, free: 5.848 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008859/1.602, allocations: 1.394 MB / 0.668 GB, free: 4.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009433/1.611, allocations: 4.772 MB / 0.6727 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007362/1.619, allocations: 331.7 kB / 0.673 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001733/1.62, allocations: 379.3 kB / 0.6734 GB, free: 14.93 MB / 426.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 () * 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.001804/1.622, allocations: 0.56 MB / 0.6739 GB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001122/1.623, allocations: 347.5 kB / 0.6742 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01021/1.634, allocations: 2.819 MB / 0.677 GB, free: 11.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.16e-05/1.634, allocations: 16 kB / 0.677 GB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/1.634, allocations: 4 kB / 0.677 GB, free: 11.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.407e-05/1.634, allocations: 11.97 kB / 0.677 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02379/1.658, allocations: 6.947 MB / 0.6838 GB, free: 4.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.35e-05/1.658, allocations: 4 kB / 0.6838 GB, free: 4.156 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002674/1.66, allocations: 247.6 kB / 0.684 GB, free: 3.914 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004015/1.664, allocations: 0.6991 MB / 0.6847 GB, free: 3.211 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000327/1.665, allocations: 24 kB / 0.6847 GB, free: 3.188 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3624/2.027, allocations: 4.328 MB / 0.689 GB, free: 93.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/2.027, allocations: 3.844 kB / 0.689 GB, free: 93.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01606/2.043, allocations: 5.099 MB / 0.694 GB, free: 93.19 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002797/2.046, allocations: 0.61 MB / 0.6946 GB, free: 93.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001456/2.048, allocations: 23.67 kB / 0.6946 GB, free: 93.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003515/2.051, allocations: 85.19 kB / 0.6947 GB, free: 93.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006867/2.052, allocations: 89.72 kB / 0.6947 GB, free: 93.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001811/2.052, allocations: 41.25 kB / 0.6948 GB, free: 93.09 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008386/2.061, allocations: 2.567 MB / 0.6973 GB, free: 92.89 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.62e-07/2.061, allocations: 1.094 kB / 0.6973 GB, free: 92.89 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007749/2.068, allocations: 0.9586 MB / 0.6982 GB, free: 92.89 MB / 426.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 (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.01545/2.084, allocations: 5.902 MB / 0.704 GB, free: 91.71 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01114/2.095, allocations: 4.674 MB / 0.7086 GB, free: 91.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/2.095, allocations: 0 / 0.7086 GB, free: 91.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003162/2.098, allocations: 1.322 MB / 0.7098 GB, free: 91.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003692/2.102, allocations: 405.1 kB / 0.7102 GB, free: 91.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03027/2.132, allocations: 9.029 MB / 0.7191 GB, free: 89.87 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007402/2.14, allocations: 3.322 MB / 0.7223 GB, free: 88.75 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004438/2.144, allocations: 1.898 MB / 0.7241 GB, free: 87.25 MB / 426.7 MB Notification: Performance of SimCode: time 1.734e-06/2.144, allocations: 0 / 0.7241 GB, free: 87.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.382/6.526, allocations: 97.41 MB / 0.8193 GB, free: 17.78 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat does not exist to compare? outputFormat=mat