Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.437/1.437, allocations: 221.3 MB / 235.5 MB, free: 2.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009314/0.0009314, allocations: 97.88 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.818e-05/4.859e-05, allocations: 4 kB / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1369, allocations: 50.4 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.386/0.523, allocations: 99.21 MB / 493.5 MB, free: 4.242 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/0.5233, allocations: 83.95 kB / 493.6 MB, free: 4.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5012/1.024, allocations: 81.85 MB / 0.562 GB, free: 97.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.514e-06/1.025, allocations: 0 / 0.562 GB, free: 97.42 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001911/1.025, allocations: 77.69 kB / 0.5621 GB, free: 97.42 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1442 * Number of variables: 1442 Notification: Performance of Generate backend data structure: time 0.01669/1.041, allocations: 4.344 MB / 0.5663 GB, free: 95.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/1.041, allocations: 12.28 kB / 0.5663 GB, free: 95.76 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002434/1.044, allocations: 0.7255 MB / 0.567 GB, free: 95.69 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01067/1.055, allocations: 2.18 MB / 0.5692 GB, free: 95.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01425/1.069, allocations: 4.22 MB / 0.5733 GB, free: 94.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002672/1.069, allocations: 308 kB / 0.5736 GB, free: 94.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001966/1.071, allocations: 410.9 kB / 0.574 GB, free: 94.84 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0216/1.093, allocations: 10.24 MB / 0.584 GB, free: 91.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000379/1.093, allocations: 62.98 kB / 0.584 GB, free: 91.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001397/1.095, allocations: 199.1 kB / 0.5842 GB, free: 91.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001343/1.096, allocations: 0.9357 MB / 0.5851 GB, free: 91.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01799/1.114, allocations: 8.428 MB / 0.5934 GB, free: 89.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05467/1.169, allocations: 47.36 MB / 0.6396 GB, free: 52.94 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009491/1.178, allocations: 3.248 MB / 0.6428 GB, free: 51.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00211/1.18, allocations: 1.613 MB / 0.6444 GB, free: 50.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007788/1.188, allocations: 4.045 MB / 0.6483 GB, free: 46.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/1.188, allocations: 43.12 kB / 0.6483 GB, free: 46.81 MB / 426.7 MB Notification: Performance of pre-optimization done (n=118): time 4.859e-06/1.188, allocations: 0.5625 kB / 0.6483 GB, free: 46.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=124): time 0.02203/1.21, allocations: 8.885 MB / 0.657 GB, free: 39.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.342e-05/1.21, allocations: 137.1 kB / 0.6572 GB, free: 38.93 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007117/1.218, allocations: 3.606 MB / 0.6607 GB, free: 35.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004354/1.218, allocations: 45.7 kB / 0.6607 GB, free: 35.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002037/1.22, allocations: 3.071 MB / 0.6637 GB, free: 32.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006801/1.221, allocations: 0.5228 MB / 0.6642 GB, free: 32.44 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/1.221, allocations: 108 kB / 0.6643 GB, free: 32.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003228/1.221, allocations: 0.5439 MB / 0.6649 GB, free: 31.85 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002186/1.224, allocations: 1.759 MB / 0.6666 GB, free: 30.28 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003444/1.227, allocations: 5.45 MB / 0.6719 GB, free: 23.23 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003537/1.231, allocations: 3.083 MB / 0.6749 GB, free: 20.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.94e-05/1.231, allocations: 36 kB / 0.6749 GB, free: 20.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=733) (initialization): time 0.01199/1.243, allocations: 7.651 MB / 0.6824 GB, free: 12.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.998e-05/1.243, allocations: 63.66 kB / 0.6825 GB, free: 12.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001023/1.243, allocations: 136 kB / 0.6826 GB, free: 12.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002217/1.245, allocations: 0.9064 MB / 0.6835 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003781/1.249, allocations: 1.318 MB / 0.6848 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005098/1.254, allocations: 4.768 MB / 0.6894 GB, free: 5.273 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004437/1.258, allocations: 303.7 kB / 0.6897 GB, free: 4.977 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007642/1.259, allocations: 360 kB / 0.6901 GB, free: 4.625 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 38 (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.torqueArrow.arrowLine.twoHeadedArrow,torque.torqueArrow.headAtOrigin,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 (694): * Single equations (assignments): 690 * 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.0006853/1.26, allocations: 0.5599 MB / 0.6906 GB, free: 4.062 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005326/1.26, allocations: 331.7 kB / 0.6909 GB, free: 3.734 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004348/1.265, allocations: 2.457 MB / 0.6933 GB, free: 1.258 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-05/1.265, allocations: 12 kB / 0.6933 GB, free: 1.246 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/1.265, allocations: 4 kB / 0.6933 GB, free: 1.242 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/1.265, allocations: 7.984 kB / 0.6934 GB, free: 1.234 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01234/1.277, allocations: 6.279 MB / 0.6995 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/1.277, allocations: 0 / 0.6995 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/1.278, allocations: 203.7 kB / 0.6997 GB, free: 10.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002126/1.281, allocations: 0.6952 MB / 0.7004 GB, free: 10.01 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001318/1.281, allocations: 16 kB / 0.7004 GB, free: 9.996 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005664/1.286, allocations: 4.34 MB / 0.7046 GB, free: 5.512 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.286, allocations: 0 / 0.7046 GB, free: 5.512 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007354/1.294, allocations: 4.528 MB / 0.709 GB, free: 0.9375 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001449/1.295, allocations: 396.6 kB / 0.7094 GB, free: 0.5273 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004122/1.296, allocations: 20 kB / 0.7094 GB, free: 0.5078 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/1.297, allocations: 71.91 kB / 0.7095 GB, free: 448 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002701/1.297, allocations: 76.67 kB / 0.7096 GB, free: 372 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/1.297, allocations: 31.98 kB / 0.7096 GB, free: 340 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.2895/1.587, allocations: 2.497 MB / 0.712 GB, free: 100.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.653e-06/1.587, allocations: 0 / 0.712 GB, free: 100.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00552/1.592, allocations: 0.9064 MB / 0.7129 GB, free: 100.8 MB / 442.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 (92): * Single equations (assignments): 88 * 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.007687/1.6, allocations: 5.325 MB / 0.7181 GB, free: 99.62 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008081/1.608, allocations: 4.275 MB / 0.7223 GB, free: 99.49 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.608, allocations: 3 kB / 0.7223 GB, free: 99.49 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00189/1.61, allocations: 1.151 MB / 0.7234 GB, free: 99.37 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002573/1.613, allocations: 394.9 kB / 0.7238 GB, free: 99.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02137/1.634, allocations: 8 MB / 0.7316 GB, free: 97.87 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003043/1.637, allocations: 3.175 MB / 0.7347 GB, free: 97.09 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004126/1.641, allocations: 1.79 MB / 0.7365 GB, free: 97.05 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002212/1.644, allocations: 1.751 MB / 0.7382 GB, free: 96.84 MB / 442.7 MB Notification: Performance of SimCode: time 1.373e-06/1.644, allocations: 0 / 0.7382 GB, free: 96.84 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1032/1.747, allocations: 70.99 MB / 0.8075 GB, free: 57.14 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001361/1.747, allocations: 199.1 kB / 0.8077 GB, free: 56.91 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.393/6.14, allocations: 0 / 0.8077 GB, free: 56.91 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Rotational3DEffects_ActuatedDrive.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive_res.mat does not exist to compare? outputFormat=mat