Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",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.001551/0.001555, allocations: 181.4 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.347/2.347, 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.0011/0.001099, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.637e-05/3.656e-05, allocations: 11.97 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 47.57 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4578/0.5653, allocations: 100.2 MB / 469.4 MB, free: 8.945 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003381/0.5657, allocations: 90.19 kB / 469.5 MB, free: 8.898 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7322/1.298, allocations: 97.7 MB / 0.5539 GB, free: 91.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.374e-06/1.298, allocations: 0 / 0.5539 GB, free: 91.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003085/1.298, allocations: 89.41 kB / 0.554 GB, free: 91.09 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: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.02105/1.319, allocations: 4.678 MB / 0.5585 GB, free: 89.13 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.89e-05/1.319, allocations: 10.03 kB / 0.5585 GB, free: 89.13 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004476/1.324, allocations: 0.8676 MB / 0.5594 GB, free: 89.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03415/1.358, allocations: 4.502 MB / 0.5638 GB, free: 88.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02042/1.379, allocations: 5.061 MB / 0.5687 GB, free: 88.04 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005107/1.379, allocations: 367.9 kB / 0.5691 GB, free: 88.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003108/1.382, allocations: 476.7 kB / 0.5695 GB, free: 88.02 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03865/1.421, allocations: 11.96 MB / 0.5812 GB, free: 83.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003297/1.421, allocations: 63.17 kB / 0.5813 GB, free: 83.74 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002558/1.424, allocations: 231.1 kB / 0.5815 GB, free: 83.61 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002816/1.427, allocations: 1.196 MB / 0.5827 GB, free: 83.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03127/1.458, allocations: 9.823 MB / 0.5922 GB, free: 80.3 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08562/1.544, allocations: 52.98 MB / 0.644 GB, free: 33.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02135/1.565, allocations: 5.185 MB / 0.649 GB, free: 27.87 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005244/1.571, allocations: 2.612 MB / 0.6516 GB, free: 25.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02053/1.591, allocations: 8.044 MB / 0.6595 GB, free: 17.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.069e-05/1.591, allocations: 51.88 kB / 0.6595 GB, free: 17 MB / 410.7 MB Notification: Performance of pre-optimization done (n=216): time 6.623e-06/1.591, allocations: 0 / 0.6595 GB, free: 17 MB / 410.7 MB Notification: Performance of matching and sorting (n=237): time 0.07482/1.666, allocations: 16.7 MB / 0.6758 GB, free: 196 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/1.666, allocations: 180.5 kB / 0.676 GB, free: 15.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01243/1.679, allocations: 4.187 MB / 0.6801 GB, free: 11.78 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007096/1.68, allocations: 57.7 kB / 0.6801 GB, free: 11.72 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004217/1.684, allocations: 3.307 MB / 0.6834 GB, free: 8.418 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001907/1.686, allocations: 0.8856 MB / 0.6842 GB, free: 7.539 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001022/1.687, allocations: 132 kB / 0.6843 GB, free: 7.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007076/1.688, allocations: 0.5918 MB / 0.6849 GB, free: 6.809 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007882/1.695, allocations: 2.45 MB / 0.6873 GB, free: 4.355 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3376/2.033, allocations: 6.34 MB / 0.6935 GB, free: 92.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01167/2.045, allocations: 3.921 MB / 0.6973 GB, free: 92.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003028/2.045, allocations: 39.72 kB / 0.6974 GB, free: 92.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=867) (initialization): time 0.03207/2.077, allocations: 9.23 MB / 0.7064 GB, free: 92.17 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002006/2.078, allocations: 63.72 kB / 0.7065 GB, free: 92.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003629/2.078, allocations: 137.3 kB / 0.7066 GB, free: 92.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004338/2.082, allocations: 0.9239 MB / 0.7075 GB, free: 92.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01076/2.093, allocations: 1.597 MB / 0.709 GB, free: 92.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01119/2.104, allocations: 5.773 MB / 0.7147 GB, free: 90.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008234/2.113, allocations: 383 kB / 0.715 GB, free: 90.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001887/2.115, allocations: 402.3 kB / 0.7154 GB, free: 90.61 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 627 * Number of states: 0 () * Number of discrete variables: 42 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (819): * Single equations (assignments): 815 * 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 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00311/2.118, allocations: 0.6081 MB / 0.716 GB, free: 90.36 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001116/2.119, allocations: 421.4 kB / 0.7164 GB, free: 90.36 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0131/2.132, allocations: 4.25 MB / 0.7206 GB, free: 90.11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.931e-05/2.132, allocations: 23.03 kB / 0.7206 GB, free: 90.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.771e-05/2.132, allocations: 7.875 kB / 0.7206 GB, free: 90.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-05/2.132, allocations: 10.5 kB / 0.7206 GB, free: 90.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03179/2.164, allocations: 10.36 MB / 0.7307 GB, free: 86.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-05/2.164, allocations: 3.75 kB / 0.7307 GB, free: 86.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004635/2.169, allocations: 478.5 kB / 0.7312 GB, free: 86.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003413/2.172, allocations: 0.7083 MB / 0.7319 GB, free: 86.21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006969/2.173, allocations: 52.3 kB / 0.7319 GB, free: 86.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01087/2.184, allocations: 5.297 MB / 0.7371 GB, free: 83.39 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.787e-06/2.184, allocations: 11.44 kB / 0.7371 GB, free: 83.39 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01843/2.202, allocations: 8.239 MB / 0.7452 GB, free: 79.43 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003334/2.206, allocations: 0.8214 MB / 0.746 GB, free: 78.96 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001411/2.207, allocations: 42.88 kB / 0.746 GB, free: 78.93 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004251/2.212, allocations: 150.3 kB / 0.7461 GB, free: 78.91 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008585/2.212, allocations: 137.5 kB / 0.7463 GB, free: 78.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002624/2.213, allocations: 72.23 kB / 0.7463 GB, free: 78.87 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008167/2.221, allocations: 2.983 MB / 0.7493 GB, free: 77.83 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.142e-06/2.221, allocations: 0 / 0.7493 GB, free: 77.83 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008414/2.229, allocations: 1.157 MB / 0.7504 GB, free: 77.69 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 194 * 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 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0194/2.249, allocations: 10.06 MB / 0.7602 GB, free: 71.95 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01484/2.264, allocations: 6.045 MB / 0.7661 GB, free: 69.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-05/2.264, allocations: 6.844 kB / 0.7661 GB, free: 69.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006119/2.27, allocations: 2.233 MB / 0.7683 GB, free: 67.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004303/2.274, allocations: 484.7 kB / 0.7688 GB, free: 66.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03741/2.312, allocations: 11.38 MB / 0.7799 GB, free: 56.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008369/2.32, allocations: 3.781 MB / 0.7836 GB, free: 53.99 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005863/2.326, allocations: 2.274 MB / 0.7858 GB, free: 51.89 MB / 426.7 MB Notification: Performance of SimCode: time 1.844e-06/2.326, allocations: 4 kB / 0.7858 GB, free: 51.88 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.216/7.542, allocations: 115.4 MB / 0.8985 GB, free: 95.36 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat