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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001064/0.001064, allocations: 179.7 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.895/1.895, allocations: 205.3 MB / 214.4 MB, free: 1.68 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001029/0.001029, allocations: 90.7 kB / 262.5 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.763e-05/1.765e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.118, allocations: 47.58 MB / 363.2 MB, free: 6.965 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4521/0.5701, allocations: 98.5 MB / 461.7 MB, free: 13.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002766/0.5705, allocations: 84.08 kB / 461.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5675/1.138, allocations: 96.17 MB / 0.5448 GB, free: 87.98 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.138, allocations: 0 / 0.5448 GB, free: 87.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002914/1.138, allocations: 102.3 kB / 0.5449 GB, free: 87.98 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.02514/1.164, allocations: 5.506 MB / 0.5503 GB, free: 85.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/1.164, allocations: 8.75 kB / 0.5503 GB, free: 85.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01165/1.175, allocations: 2.321 MB / 0.5526 GB, free: 85.63 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01321/1.188, allocations: 4.93 MB / 0.5574 GB, free: 85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002411/1.189, allocations: 166.1 kB / 0.5576 GB, free: 85 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002526/1.191, allocations: 309 kB / 0.5579 GB, free: 85 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01554/1.207, allocations: 7.76 MB / 0.5654 GB, free: 84.97 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02887/1.236, allocations: 11.54 MB / 0.5767 GB, free: 81.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004412/1.236, allocations: 67.14 kB / 0.5768 GB, free: 81.92 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002742/1.239, allocations: 34.75 kB / 0.5768 GB, free: 81.92 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001998/1.241, allocations: 1.198 MB / 0.578 GB, free: 81.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06282/1.304, allocations: 54.97 MB / 0.6316 GB, free: 42.08 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004817/1.309, allocations: 4.364 MB / 0.6359 GB, free: 38.01 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003226/1.312, allocations: 3.106 MB / 0.6389 GB, free: 35.2 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001013/1.313, allocations: 0.6817 MB / 0.6396 GB, free: 34.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.425e-05/1.313, allocations: 59.81 kB / 0.6397 GB, free: 34.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=221): time 5.541e-06/1.313, allocations: 4 kB / 0.6397 GB, free: 34.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.04114/1.354, allocations: 22.31 MB / 0.6615 GB, free: 15.16 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/1.354, allocations: 154.5 kB / 0.6616 GB, free: 14.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004815/1.359, allocations: 3.376 MB / 0.6649 GB, free: 12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004887/1.36, allocations: 25.7 kB / 0.6649 GB, free: 11.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001848/1.362, allocations: 3.659 MB / 0.6685 GB, free: 8.645 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009832/1.363, allocations: 0.9219 MB / 0.6694 GB, free: 7.816 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002915/1.363, allocations: 4 kB / 0.6694 GB, free: 7.812 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003364/1.363, allocations: 0.6096 MB / 0.67 GB, free: 7.199 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003257/1.366, allocations: 2.884 MB / 0.6728 GB, free: 4.312 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006957/1.373, allocations: 7.072 MB / 0.6797 GB, free: 11.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007792/1.381, allocations: 4.439 MB / 0.6841 GB, free: 6.703 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001226/1.381, allocations: 44 kB / 0.6841 GB, free: 6.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.3427/1.724, allocations: 10.04 MB / 0.6939 GB, free: 89.24 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001677/1.724, allocations: 69.27 kB / 0.694 GB, free: 89.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003301/1.725, allocations: 149.8 kB / 0.6941 GB, free: 89.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004062/1.729, allocations: 1.141 MB / 0.6952 GB, free: 89.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009369/1.738, allocations: 1.798 MB / 0.697 GB, free: 89.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009898/1.748, allocations: 5.631 MB / 0.7025 GB, free: 87.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007379/1.756, allocations: 304.3 kB / 0.7028 GB, free: 87.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002284/1.758, allocations: 449.1 kB / 0.7032 GB, free: 87.97 MB / 426.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 (903): * Single equations (assignments): 899 * 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.002192/1.76, allocations: 492.6 kB / 0.7037 GB, free: 87.86 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008348/1.768, allocations: 5.409 MB / 0.709 GB, free: 87.77 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001042/1.77, allocations: 374 kB / 0.7093 GB, free: 87.77 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008994/1.779, allocations: 5.288 MB / 0.7145 GB, free: 87.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.983e-05/1.779, allocations: 29.41 kB / 0.7145 GB, free: 87.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/1.779, allocations: 3.375 kB / 0.7145 GB, free: 87.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.031e-05/1.779, allocations: 12.98 kB / 0.7145 GB, free: 87.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02556/1.804, allocations: 11.02 MB / 0.7253 GB, free: 86.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.719e-05/1.804, allocations: 6.25 kB / 0.7253 GB, free: 86.87 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002969/1.807, allocations: 0.5052 MB / 0.7258 GB, free: 86.87 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002474/1.81, allocations: 0.9287 MB / 0.7267 GB, free: 86.86 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005978/1.81, allocations: 17 kB / 0.7267 GB, free: 86.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006714/1.817, allocations: 5.336 MB / 0.7319 GB, free: 84.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.18e-05/1.817, allocations: 7.406 kB / 0.7319 GB, free: 84.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01556/1.833, allocations: 9.431 MB / 0.7411 GB, free: 80.58 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003326/1.836, allocations: 0.8508 MB / 0.742 GB, free: 80.11 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00151/1.838, allocations: 3.406 kB / 0.742 GB, free: 80.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003099/1.841, allocations: 139.9 kB / 0.7421 GB, free: 80.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005966/1.842, allocations: 153.9 kB / 0.7422 GB, free: 80.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003473/1.842, allocations: 73.39 kB / 0.7423 GB, free: 80.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006155/1.848, allocations: 2.243 MB / 0.7445 GB, free: 79.22 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.848, allocations: 0 / 0.7445 GB, free: 79.22 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009605/1.858, allocations: 1.09 MB / 0.7456 GB, free: 79.22 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.01911/1.877, allocations: 10.79 MB / 0.7561 GB, free: 73.97 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01219/1.889, allocations: 6.897 MB / 0.7628 GB, free: 71.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.12e-05/1.889, allocations: 0 / 0.7628 GB, free: 71.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004198/1.893, allocations: 2.624 MB / 0.7654 GB, free: 69.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003389/1.897, allocations: 350.5 kB / 0.7657 GB, free: 69.02 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0367/1.933, allocations: 11.42 MB / 0.7769 GB, free: 59.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007407/1.941, allocations: 3.907 MB / 0.7807 GB, free: 56.48 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.008085/1.949, allocations: 2.344 MB / 0.783 GB, free: 54.99 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004929/1.954, allocations: 2.336 MB / 0.7853 GB, free: 52.84 MB / 426.7 MB Notification: Performance of SimCode: time 1.223e-06/1.954, allocations: 1.969 kB / 0.7853 GB, free: 52.84 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4676/2.422, allocations: 88.16 MB / 0.8714 GB, free: 94.44 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001659/2.422, allocations: 170.8 kB / 0.8715 GB, free: 94.25 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.937/7.359, allocations: 3.938 kB / 0.8715 GB, free: 94.25 MB / 442.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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive_res.mat does not exist to compare? outputFormat=mat