Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque",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.001591/0.001592, allocations: 185.1 kB / 17.06 MB, free: 5.07 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.372/1.372, allocations: 223.2 MB / 241 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008917/0.0008915, allocations: 105 kB / 292.1 MB, free: 10.7 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3554/0.3554, allocations: 44.22 MB / 387.5 MB, free: 38.5 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003265/0.0003267, allocations: 8 kB / 460 MB, free: 1.449 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3708/0.3711, allocations: 61.9 MB / 0.5096 GB, free: 37.54 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1416/0.5128, allocations: 109 MB / 0.6161 GB, free: 2.066 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002408/0.5131, allocations: 87.92 kB / 0.6162 GB, free: 1.984 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.622/1.135, allocations: 125.8 MB / 0.7391 GB, free: 90.79 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.597e-06/1.135, allocations: 0 / 0.7391 GB, free: 90.79 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005489/1.136, allocations: 130.9 kB / 0.7392 GB, free: 90.78 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2219 * Number of variables: 2219 Notification: Performance of Generate backend data structure: time 0.02535/1.161, allocations: 6.864 MB / 0.7459 GB, free: 87.4 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.378e-05/1.161, allocations: 7.281 kB / 0.7459 GB, free: 87.4 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005758/1.167, allocations: 1.119 MB / 0.747 GB, free: 86.82 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02823/1.195, allocations: 7.061 MB / 0.7539 GB, free: 85.3 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01832/1.214, allocations: 6.99 MB / 0.7607 GB, free: 81.33 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000805/1.214, allocations: 477.3 kB / 0.7612 GB, free: 81.11 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003887/1.218, allocations: 0.6255 MB / 0.7618 GB, free: 80.89 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04091/1.259, allocations: 15.27 MB / 0.7767 GB, free: 67.57 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006183/1.26, allocations: 87.22 kB / 0.7768 GB, free: 67.49 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004042/1.264, allocations: 307.8 kB / 0.7771 GB, free: 67.19 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002273/1.266, allocations: 1.427 MB / 0.7785 GB, free: 65.76 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02631/1.293, allocations: 12.29 MB / 0.7905 GB, free: 53.43 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08551/1.378, allocations: 69.9 MB / 0.8587 GB, free: 13.47 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01604/1.394, allocations: 6.139 MB / 0.8647 GB, free: 7.18 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.374/1.768, allocations: 8.314 MB / 0.8728 GB, free: 113 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/1.769, allocations: 61.03 kB / 0.8729 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=236): time 5.62e-06/1.769, allocations: 0 / 0.8729 GB, free: 112.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=278): time 0.0755/1.844, allocations: 28.24 MB / 0.9005 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/1.844, allocations: 243.9 kB / 0.9007 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01677/1.861, allocations: 5.97 MB / 0.9065 GB, free: 107 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007522/1.862, allocations: 65.33 kB / 0.9066 GB, free: 107 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0052/1.867, allocations: 4.579 MB / 0.9111 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001949/1.869, allocations: 1.064 MB / 0.9121 GB, free: 103.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001458/1.871, allocations: 165.7 kB / 0.9123 GB, free: 103.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001128/1.872, allocations: 0.6626 MB / 0.9129 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006829/1.879, allocations: 3.238 MB / 0.9161 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009674/1.888, allocations: 8.315 MB / 0.9242 GB, free: 93.95 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007994/1.896, allocations: 5.074 MB / 0.9292 GB, free: 92.23 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002331/1.897, allocations: 51.38 kB / 0.9292 GB, free: 92.23 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.03717/1.934, allocations: 12.78 MB / 0.9417 GB, free: 87.86 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006877/1.934, allocations: 80.53 kB / 0.9418 GB, free: 87.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005611/1.935, allocations: 180.8 kB / 0.9419 GB, free: 87.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007101/1.942, allocations: 1.694 MB / 0.9436 GB, free: 87.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01189/1.954, allocations: 1.983 MB / 0.9455 GB, free: 87.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02149/1.976, allocations: 11.67 MB / 0.9569 GB, free: 81.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01269/1.988, allocations: 0.5055 MB / 0.9574 GB, free: 80.97 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002399/1.991, allocations: 0.5131 MB / 0.9579 GB, free: 80.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 819 * Number of states: 0 () * Number of discrete variables: 67 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1031): * Single equations (assignments): 1026 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01163/2.003, allocations: 3.043 MB / 0.9609 GB, free: 79.49 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003063/2.006, allocations: 0.5606 MB / 0.9614 GB, free: 79.18 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01339/2.019, allocations: 6.125 MB / 0.9674 GB, free: 75.35 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.963e-05/2.019, allocations: 30.58 kB / 0.9674 GB, free: 75.32 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.292e-05/2.019, allocations: 15.95 kB / 0.9675 GB, free: 75.31 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.573e-05/2.019, allocations: 17.22 kB / 0.9675 GB, free: 75.3 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03082/2.05, allocations: 13.95 MB / 0.9811 GB, free: 64.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.603e-05/2.05, allocations: 4 kB / 0.9811 GB, free: 64.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002472/2.053, allocations: 0.489 MB / 0.9816 GB, free: 63.69 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003401/2.056, allocations: 1.42 MB / 0.983 GB, free: 62.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000393/2.056, allocations: 55.95 kB / 0.983 GB, free: 62.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01232/2.069, allocations: 10.86 MB / 0.9936 GB, free: 52.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.74e-06/2.069, allocations: 9.25 kB / 0.9936 GB, free: 52.96 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01523/2.084, allocations: 10.8 MB / 1.004 GB, free: 43.34 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003251/2.087, allocations: 0.6389 MB / 1.005 GB, free: 42.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002613/2.09, allocations: 51.95 kB / 1.005 GB, free: 42.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004307/2.094, allocations: 184.5 kB / 1.005 GB, free: 42.55 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000747/2.095, allocations: 174.9 kB / 1.005 GB, free: 42.44 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003846/2.096, allocations: 75.94 kB / 1.005 GB, free: 42.37 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01036/2.106, allocations: 4.283 MB / 1.009 GB, free: 38.86 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.61e-07/2.106, allocations: 0 / 1.009 GB, free: 38.86 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01213/2.118, allocations: 1.54 MB / 1.011 GB, free: 37.32 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (220): * Single equations (assignments): 215 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01653/2.135, allocations: 12.19 MB / 1.023 GB, free: 25.46 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01241/2.147, allocations: 8.049 MB / 1.031 GB, free: 17.41 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.09e-05/2.147, allocations: 0 / 1.031 GB, free: 17.41 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004751/2.152, allocations: 3.119 MB / 1.034 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005662/2.158, allocations: 0.7058 MB / 1.034 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5048/2.662, allocations: 185.3 MB / 1.215 GB, free: 29.04 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008672/2.671, allocations: 4.753 MB / 1.22 GB, free: 28.19 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.009451/2.681, allocations: 2.789 MB / 1.223 GB, free: 27.98 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006632/2.687, allocations: 2.991 MB / 1.226 GB, free: 26.79 MB / 0.5573 GB Notification: Performance of SimCode: time 1.342e-06/2.687, allocations: 0 / 1.226 GB, free: 26.79 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5254/3.213, allocations: 126 MB / 1.349 GB, free: 140.7 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001842/3.213, allocations: 197 kB / 1.349 GB, free: 140.5 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.413/9.626, allocations: 4 kB / 1.349 GB, free: 140.5 MB / 0.5573 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat