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.001908/0.001908, allocations: 169.8 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 221.5 MB / 230.7 MB, free: 7.59 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.0008875/0.0008875, allocations: 100.7 kB / 281.6 MB, free: 5.328 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.2025/0.2025, allocations: 44.14 MB / 376.5 MB, free: 3.062 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.738e-05/1.74e-05, allocations: 8.156 kB / 444.7 MB, free: 15.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1296, allocations: 61.92 MB / 0.4948 GB, free: 1.172 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4613/0.591, allocations: 108.3 MB / 0.6005 GB, free: 4.094 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/0.5913, allocations: 75.95 kB / 0.6006 GB, free: 4.02 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5977/1.189, allocations: 123.1 MB / 0.7208 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.254e-06/1.189, allocations: 0 / 0.7208 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.000441/1.19, allocations: 129.8 kB / 0.7209 GB, free: 104.6 MB / 0.4948 GB 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.02293/1.212, allocations: 6.349 MB / 0.7271 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/1.213, allocations: 11.33 kB / 0.7271 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02869/1.241, allocations: 7.071 MB / 0.734 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0178/1.259, allocations: 6.943 MB / 0.7408 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003146/1.259, allocations: 206.2 kB / 0.741 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00275/1.262, allocations: 377.4 kB / 0.7414 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01688/1.279, allocations: 8.599 MB / 0.7498 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02959/1.309, allocations: 13.49 MB / 0.7629 GB, free: 94.42 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003068/1.309, allocations: 89.47 kB / 0.763 GB, free: 94.41 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001435/1.311, allocations: 41.97 kB / 0.7631 GB, free: 94.41 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001817/1.312, allocations: 1.429 MB / 0.7645 GB, free: 94.17 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06851/1.381, allocations: 66.9 MB / 0.8298 GB, free: 39.57 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004992/1.386, allocations: 4.852 MB / 0.8345 GB, free: 35.05 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002965/1.389, allocations: 3.213 MB / 0.8377 GB, free: 32.11 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004409/1.389, allocations: 382.5 kB / 0.838 GB, free: 31.73 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/1.389, allocations: 68.52 kB / 0.8381 GB, free: 31.65 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=230): time 4.429e-06/1.389, allocations: 0 / 0.8381 GB, free: 31.65 MB / 0.4948 GB Notification: Performance of matching and sorting (n=274): time 0.04571/1.435, allocations: 26.28 MB / 0.8638 GB, free: 7.262 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/1.435, allocations: 236.2 kB / 0.864 GB, free: 6.984 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006308/1.442, allocations: 4.58 MB / 0.8685 GB, free: 2.426 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006615/1.442, allocations: 25.7 kB / 0.8685 GB, free: 2.395 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002953/1.445, allocations: 4.659 MB / 0.873 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001636/1.447, allocations: 1.014 MB / 0.874 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004729/1.447, allocations: 0 / 0.874 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004976/1.448, allocations: 0.6817 MB / 0.8747 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004653/1.453, allocations: 3.082 MB / 0.8777 GB, free: 8.863 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008945/1.461, allocations: 8.268 MB / 0.8858 GB, free: 13.99 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007633/1.469, allocations: 4.997 MB / 0.8907 GB, free: 8.988 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001242/1.469, allocations: 52 kB / 0.8907 GB, free: 8.938 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1135) (initialization): time 0.3374/1.807, allocations: 11.64 MB / 0.9021 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001622/1.807, allocations: 84.41 kB / 0.9022 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003287/1.807, allocations: 185 kB / 0.9023 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004766/1.812, allocations: 1.708 MB / 0.904 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00805/1.82, allocations: 2.04 MB / 0.906 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0155/1.836, allocations: 10.73 MB / 0.9165 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008356/1.844, allocations: 342.5 kB / 0.9168 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002913/1.847, allocations: 0.5247 MB / 0.9173 GB, free: 112.6 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 843 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1063): * Single equations (assignments): 1058 * 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%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004279/1.851, allocations: 0.5724 MB / 0.9179 GB, free: 112.4 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0105/1.862, allocations: 5.896 MB / 0.9236 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001153/1.863, allocations: 492.1 kB / 0.9241 GB, free: 112.3 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01002/1.873, allocations: 5.775 MB / 0.9297 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.056e-05/1.873, allocations: 27.73 kB / 0.9298 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.524e-05/1.873, allocations: 12.44 kB / 0.9298 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-05/1.873, allocations: 15.89 kB / 0.9298 GB, free: 112.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02472/1.898, allocations: 12.53 MB / 0.942 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.761e-05/1.898, allocations: 2.469 kB / 0.942 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002289/1.9, allocations: 470.1 kB / 0.9425 GB, free: 110.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003265/1.904, allocations: 1.401 MB / 0.9438 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000372/1.904, allocations: 9.469 kB / 0.9438 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01093/1.915, allocations: 9.836 MB / 0.9534 GB, free: 105 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.827e-06/1.915, allocations: 3.469 kB / 0.9535 GB, free: 105 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01328/1.928, allocations: 9.799 MB / 0.963 GB, free: 101 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001746/1.93, allocations: 0.511 MB / 0.9635 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001573/1.932, allocations: 10.09 kB / 0.9635 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003092/1.935, allocations: 143.3 kB / 0.9637 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006061/1.935, allocations: 161.8 kB / 0.9638 GB, free: 100.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001941/1.936, allocations: 73.41 kB / 0.9639 GB, free: 100.6 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005216/1.941, allocations: 3.078 MB / 0.9669 GB, free: 99.52 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.71e-07/1.941, allocations: 3.469 kB / 0.9669 GB, free: 99.52 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009311/1.95, allocations: 1.322 MB / 0.9682 GB, free: 99.52 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (216): * Single equations (assignments): 211 * 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.01249/1.963, allocations: 10.77 MB / 0.9787 GB, free: 94.65 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01209/1.975, allocations: 7.849 MB / 0.9864 GB, free: 92.23 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/1.975, allocations: 3.5 kB / 0.9864 GB, free: 92.23 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00433/1.979, allocations: 2.961 MB / 0.9893 GB, free: 91.07 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00365/1.983, allocations: 0.5285 MB / 0.9898 GB, free: 90.85 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03223/2.015, allocations: 13.88 MB / 1.003 GB, free: 79.52 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005818/2.021, allocations: 4.772 MB / 1.008 GB, free: 76.01 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00737/2.028, allocations: 2.806 MB / 1.011 GB, free: 74.32 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004621/2.033, allocations: 2.96 MB / 1.014 GB, free: 71.59 MB / 0.5261 GB Notification: Performance of SimCode: time 1.252e-06/2.033, allocations: 3.5 kB / 1.014 GB, free: 71.59 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.508/2.541, allocations: 110.5 MB / 1.122 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001299/2.541, allocations: 128.8 kB / 1.122 GB, free: 114.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.751/8.292, allocations: 0 / 1.122 GB, free: 114.2 MB / 0.5417 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