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.00138/0.00138, allocations: 180.2 kB / 14.15 MB, free: 1.176 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.524/1.524, allocations: 221.3 MB / 236 MB, free: 3 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.0008921/0.000892, allocations: 88.11 kB / 287 MB, free: 264 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2312/0.2312, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.057e-05/6.066e-05, allocations: 4 kB / 451.9 MB, free: 9.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1389/0.139, allocations: 61.92 MB / 0.5018 GB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4843/0.6234, allocations: 108.9 MB / 0.6082 GB, free: 12.31 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.6237, allocations: 79.95 kB / 0.6082 GB, free: 12.23 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7027/1.326, allocations: 126 MB / 0.7313 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.915e-06/1.326, allocations: 3.281 kB / 0.7313 GB, free: 110.6 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0009098/1.327, allocations: 125.4 kB / 0.7314 GB, free: 110.6 MB / 0.5105 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.02753/1.355, allocations: 6.348 MB / 0.7376 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.046e-05/1.355, allocations: 8.719 kB / 0.7376 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006136/1.361, allocations: 1.108 MB / 0.7387 GB, free: 108 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03152/1.393, allocations: 7.072 MB / 0.7456 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02182/1.415, allocations: 6.959 MB / 0.7524 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006441/1.415, allocations: 480.2 kB / 0.7528 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003631/1.419, allocations: 0.6321 MB / 0.7534 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04095/1.46, allocations: 15.16 MB / 0.7682 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007958/1.461, allocations: 92.5 kB / 0.7683 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003435/1.464, allocations: 303.9 kB / 0.7686 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002353/1.467, allocations: 1.431 MB / 0.77 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02715/1.494, allocations: 12.11 MB / 0.7818 GB, free: 99.42 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08421/1.578, allocations: 69.9 MB / 0.8501 GB, free: 43.62 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01435/1.592, allocations: 6.098 MB / 0.8561 GB, free: 38.5 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004256/1.597, allocations: 3.366 MB / 0.8593 GB, free: 35.41 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01636/1.613, allocations: 8.334 MB / 0.8675 GB, free: 28.38 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.753e-05/1.613, allocations: 56.34 kB / 0.8675 GB, free: 28.31 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=236): time 7.304e-06/1.613, allocations: 4 kB / 0.8675 GB, free: 28.31 MB / 0.5105 GB Notification: Performance of matching and sorting (n=278): time 0.07127/1.685, allocations: 24.34 MB / 0.8913 GB, free: 5.398 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/1.685, allocations: 239.6 kB / 0.8915 GB, free: 5.117 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01481/1.7, allocations: 5.9 MB / 0.8973 GB, free: 15.22 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0009945/1.701, allocations: 65.7 kB / 0.8974 GB, free: 15.15 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005815/1.706, allocations: 4.584 MB / 0.9018 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002183/1.709, allocations: 1.061 MB / 0.9029 GB, free: 9.52 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001797/1.71, allocations: 176 kB / 0.903 GB, free: 9.348 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001382/1.712, allocations: 0.6577 MB / 0.9037 GB, free: 8.68 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007299/1.719, allocations: 3.179 MB / 0.9068 GB, free: 5.492 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3792/2.098, allocations: 8.241 MB / 0.9148 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01212/2.111, allocations: 5.068 MB / 0.9198 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0006306/2.111, allocations: 50.16 kB / 0.9198 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1103) (initialization): time 0.03572/2.147, allocations: 12.65 MB / 0.9322 GB, free: 109 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006938/2.148, allocations: 81.47 kB / 0.9323 GB, free: 109 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007916/2.149, allocations: 180 kB / 0.9324 GB, free: 109 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004832/2.154, allocations: 1.694 MB / 0.9341 GB, free: 109 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007379/2.161, allocations: 1.984 MB / 0.936 GB, free: 108.8 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01391/2.175, allocations: 11.33 MB / 0.9471 GB, free: 106 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009349/2.184, allocations: 0.498 MB / 0.9476 GB, free: 106 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002413/2.187, allocations: 0.5074 MB / 0.9481 GB, free: 106 MB / 0.5261 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 () * 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.003534/2.19, allocations: 0.7666 MB / 0.9488 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001808/2.192, allocations: 0.5673 MB / 0.9494 GB, free: 105.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01314/2.205, allocations: 6.076 MB / 0.9553 GB, free: 105 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.892e-05/2.205, allocations: 33.66 kB / 0.9553 GB, free: 105 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.208e-05/2.205, allocations: 7.156 kB / 0.9554 GB, free: 105 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-05/2.205, allocations: 15.11 kB / 0.9554 GB, free: 105 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03164/2.237, allocations: 13.91 MB / 0.9689 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-05/2.237, allocations: 6.969 kB / 0.969 GB, free: 100.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002895/2.24, allocations: 0.4973 MB / 0.9694 GB, free: 100.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003806/2.244, allocations: 1.412 MB / 0.9708 GB, free: 99.86 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007611/2.245, allocations: 51.61 kB / 0.9709 GB, free: 99.83 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01324/2.258, allocations: 10.54 MB / 0.9812 GB, free: 94.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/2.258, allocations: 7.812 kB / 0.9812 GB, free: 94.3 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01737/2.275, allocations: 10.75 MB / 0.9917 GB, free: 89.43 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002673/2.278, allocations: 0.6338 MB / 0.9923 GB, free: 88.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002499/2.281, allocations: 51.66 kB / 0.9923 GB, free: 88.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004369/2.285, allocations: 181.5 kB / 0.9925 GB, free: 88.92 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009947/2.286, allocations: 178.6 kB / 0.9927 GB, free: 88.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006025/2.287, allocations: 75.97 kB / 0.9927 GB, free: 88.87 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01038/2.297, allocations: 4.212 MB / 0.9969 GB, free: 87.43 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.41e-07/2.297, allocations: 0 / 0.9969 GB, free: 87.43 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01113/2.308, allocations: 1.547 MB / 0.9984 GB, free: 87.26 MB / 0.5261 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 () * 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.02012/2.329, allocations: 12.12 MB / 1.01 GB, free: 80.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01456/2.343, allocations: 7.957 MB / 1.018 GB, free: 73.09 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/2.343, allocations: 0 / 1.018 GB, free: 73.09 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006009/2.349, allocations: 3.087 MB / 1.021 GB, free: 70.33 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005864/2.355, allocations: 0.7042 MB / 1.022 GB, free: 69.73 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04539/2.401, allocations: 14.38 MB / 1.036 GB, free: 57.19 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01173/2.412, allocations: 4.766 MB / 1.04 GB, free: 53.67 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009862/2.422, allocations: 2.782 MB / 1.043 GB, free: 51.88 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00699/2.429, allocations: 2.99 MB / 1.046 GB, free: 49.12 MB / 0.5261 GB Notification: Performance of SimCode: time 1.623e-06/2.429, allocations: 0 / 1.046 GB, free: 49.12 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6111/3.04, allocations: 125.6 MB / 1.169 GB, free: 109.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001931/3.041, allocations: 158.6 kB / 1.169 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.481/9.522, allocations: 3.938 kB / 1.169 GB, free: 109.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