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.001612/0.001612, allocations: 178.4 kB / 8.697 MB, free: 388 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.949/1.949, allocations: 205.3 MB / 214.4 MB, free: 1.668 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.0009928/0.0009928, allocations: 94.36 kB / 262.4 MB, free: 1.617 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.139e-05/2.152e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1207, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4421/0.563, allocations: 97.78 MB / 460.9 MB, free: 14.14 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.5633, allocations: 88.41 kB / 461 MB, free: 14.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5122/1.076, allocations: 83.17 MB / 0.5314 GB, free: 92.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.076, allocations: 2.281 kB / 0.5315 GB, free: 92.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003985/1.076, allocations: 81.44 kB / 0.5315 GB, free: 92.05 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.0242/1.1, allocations: 4.494 MB / 0.5359 GB, free: 91.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.826e-05/1.1, allocations: 10.12 kB / 0.5359 GB, free: 91.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01499/1.115, allocations: 2.215 MB / 0.5381 GB, free: 91.06 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01949/1.135, allocations: 4.471 MB / 0.5425 GB, free: 90.58 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006533/1.136, allocations: 137.2 kB / 0.5426 GB, free: 90.58 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003812/1.139, allocations: 258.6 kB / 0.5428 GB, free: 90.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01481/1.154, allocations: 6.349 MB / 0.549 GB, free: 90.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01976/1.174, allocations: 9.679 MB / 0.5585 GB, free: 87.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001753/1.174, allocations: 58.41 kB / 0.5585 GB, free: 87.74 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005209/1.175, allocations: 37.33 kB / 0.5586 GB, free: 87.74 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001493/1.176, allocations: 0.9994 MB / 0.5596 GB, free: 87.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04608/1.223, allocations: 47.01 MB / 0.6055 GB, free: 54.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003466/1.226, allocations: 3.227 MB / 0.6086 GB, free: 53.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001752/1.228, allocations: 1.727 MB / 0.6103 GB, free: 52.51 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006361/1.234, allocations: 4.248 MB / 0.6144 GB, free: 50.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/1.234, allocations: 57.66 kB / 0.6145 GB, free: 50 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 5.42e-06/1.234, allocations: 0 / 0.6145 GB, free: 50 MB / 410.7 MB Notification: Performance of matching and sorting (n=146): time 0.02/1.254, allocations: 12.04 MB / 0.6263 GB, free: 44.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/1.254, allocations: 146.8 kB / 0.6264 GB, free: 44.54 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004291/1.259, allocations: 3.157 MB / 0.6295 GB, free: 42.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001746/1.259, allocations: 25.7 kB / 0.6295 GB, free: 42.35 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001598/1.26, allocations: 3.263 MB / 0.6327 GB, free: 39.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005104/1.261, allocations: 0.5737 MB / 0.6333 GB, free: 38.87 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/1.261, allocations: 2.219 kB / 0.6333 GB, free: 38.87 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003076/1.262, allocations: 0.5679 MB / 0.6338 GB, free: 38.37 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002206/1.264, allocations: 1.861 MB / 0.6356 GB, free: 36.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004322/1.268, allocations: 5.814 MB / 0.6413 GB, free: 29.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004254/1.272, allocations: 3.262 MB / 0.6445 GB, free: 26.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.226e-05/1.272, allocations: 40 kB / 0.6445 GB, free: 26.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.01421/1.287, allocations: 7.44 MB / 0.6518 GB, free: 20.05 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.111e-05/1.287, allocations: 64 kB / 0.6519 GB, free: 19.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001231/1.287, allocations: 147.7 kB / 0.652 GB, free: 19.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002258/1.289, allocations: 0.9296 MB / 0.6529 GB, free: 19.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005021/1.294, allocations: 1.44 MB / 0.6543 GB, free: 17.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005139/1.299, allocations: 4.61 MB / 0.6588 GB, free: 13.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006603/1.306, allocations: 219.2 kB / 0.659 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002233/1.308, allocations: 392 kB / 0.6594 GB, free: 13.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * 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 (763): * Single equations (assignments): 759 * 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.002558/1.311, allocations: 454 kB / 0.6598 GB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006265/1.317, allocations: 3.002 MB / 0.6628 GB, free: 10.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008282/1.318, allocations: 315.8 kB / 0.6631 GB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005851/1.324, allocations: 2.717 MB / 0.6657 GB, free: 7.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.672e-05/1.324, allocations: 17.09 kB / 0.6657 GB, free: 7.895 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.444e-05/1.324, allocations: 4 kB / 0.6657 GB, free: 7.891 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.998e-05/1.324, allocations: 7.172 kB / 0.6657 GB, free: 7.891 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01273/1.337, allocations: 6.126 MB / 0.6717 GB, free: 2.918 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.166e-05/1.337, allocations: 4 kB / 0.6717 GB, free: 2.914 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/1.338, allocations: 243.6 kB / 0.672 GB, free: 2.676 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001905/1.34, allocations: 0.6913 MB / 0.6726 GB, free: 1.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/1.34, allocations: 4 kB / 0.6726 GB, free: 1.977 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005119/1.345, allocations: 4.189 MB / 0.6767 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/1.345, allocations: 0 / 0.6767 GB, free: 13.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008074/1.353, allocations: 4.992 MB / 0.6816 GB, free: 8.648 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001651/1.355, allocations: 0.5746 MB / 0.6822 GB, free: 8.055 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003439/1.355, allocations: 4 kB / 0.6822 GB, free: 8.051 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/1.357, allocations: 67.88 kB / 0.6822 GB, free: 7.984 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002475/1.357, allocations: 88.66 kB / 0.6823 GB, free: 7.895 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001103/1.357, allocations: 36.55 kB / 0.6824 GB, free: 7.859 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003827/1.361, allocations: 2.101 MB / 0.6844 GB, free: 5.773 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.361, allocations: 0 / 0.6844 GB, free: 5.773 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005836/1.367, allocations: 0.8243 MB / 0.6852 GB, free: 4.949 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 (115): * Single equations (assignments): 111 * 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.2955/1.662, allocations: 5.768 MB / 0.6908 GB, free: 95.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009733/1.672, allocations: 4.465 MB / 0.6952 GB, free: 95.79 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.583e-06/1.672, allocations: 0 / 0.6952 GB, free: 95.79 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002281/1.674, allocations: 1.297 MB / 0.6965 GB, free: 95.68 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003117/1.677, allocations: 319.3 kB / 0.6968 GB, free: 95.66 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02774/1.705, allocations: 8.364 MB / 0.7049 GB, free: 94.12 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00325/1.709, allocations: 3.322 MB / 0.7082 GB, free: 93.33 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.004704/1.713, allocations: 1.909 MB / 0.7101 GB, free: 93.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00242/1.716, allocations: 1.849 MB / 0.7119 GB, free: 93.29 MB / 426.7 MB Notification: Performance of SimCode: time 1.402e-06/1.716, allocations: 0 / 0.7119 GB, free: 93.29 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1239/1.84, allocations: 68.08 MB / 0.7783 GB, free: 61.88 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001855/1.84, allocations: 167.8 kB / 0.7785 GB, free: 61.68 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.32/6.16, allocations: 0 / 0.7785 GB, free: 61.68 MB / 426.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