Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque",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.001691/0.001691, allocations: 186.3 kB / 16.4 MB, free: 5.699 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.061/2.061, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001166/0.001166, allocations: 90.91 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5677/0.5677, allocations: 43.54 MB / 362.7 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005193/0.0004858, allocations: 16 kB / 431.5 MB, free: 5.836 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1306, allocations: 58.84 MB / 490.3 MB, free: 10.91 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.517/0.6477, allocations: 107.6 MB / 0.5839 GB, free: 10.72 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000325/0.648, allocations: 83.95 kB / 0.584 GB, free: 10.64 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9719/1.62, allocations: 132.5 MB / 0.7134 GB, free: 84.13 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.587e-06/1.62, allocations: 0 / 0.7134 GB, free: 84.13 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005886/1.621, allocations: 136 kB / 0.7135 GB, free: 84.12 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: 2391 * Number of variables: 2391 Notification: Performance of Generate backend data structure: time 0.03387/1.654, allocations: 7.199 MB / 0.7206 GB, free: 81.25 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.958e-05/1.655, allocations: 9.688 kB / 0.7206 GB, free: 81.25 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006094/1.661, allocations: 1.193 MB / 0.7217 GB, free: 81.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05427/1.715, allocations: 7.135 MB / 0.7287 GB, free: 80.68 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02849/1.744, allocations: 7.489 MB / 0.736 GB, free: 79.7 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007404/1.744, allocations: 0.4987 MB / 0.7365 GB, free: 79.68 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004113/1.748, allocations: 0.6676 MB / 0.7372 GB, free: 79.68 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0514/1.8, allocations: 16.2 MB / 0.753 GB, free: 71.54 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006017/1.801, allocations: 91.88 kB / 0.7531 GB, free: 71.48 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003798/1.804, allocations: 331.4 kB / 0.7534 GB, free: 71.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00353/1.808, allocations: 1.551 MB / 0.7549 GB, free: 71.01 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04179/1.85, allocations: 13.15 MB / 0.7677 GB, free: 66.85 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1136/1.963, allocations: 73.1 MB / 0.8391 GB, free: 2.98 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02806/1.992, allocations: 6.507 MB / 0.8455 GB, free: 12.32 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02805/2.02, allocations: 9.275 MB / 0.8545 GB, free: 2.961 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.136e-05/2.02, allocations: 64.5 kB / 0.8546 GB, free: 2.887 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=269): time 7.854e-06/2.02, allocations: 0 / 0.8546 GB, free: 2.887 MB / 0.4948 GB Notification: Performance of matching and sorting (n=311): time 0.5297/2.55, allocations: 30.09 MB / 0.884 GB, free: 89.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/2.55, allocations: 240.4 kB / 0.8842 GB, free: 89.45 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02523/2.575, allocations: 6.196 MB / 0.8903 GB, free: 88.96 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001233/2.576, allocations: 69.98 kB / 0.8903 GB, free: 88.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00622/2.583, allocations: 4.6 MB / 0.8948 GB, free: 86.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002389/2.585, allocations: 1.178 MB / 0.896 GB, free: 85.82 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001984/2.587, allocations: 179.6 kB / 0.8962 GB, free: 85.82 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001194/2.588, allocations: 0.6955 MB / 0.8968 GB, free: 85.49 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01206/2.6, allocations: 3.578 MB / 0.9003 GB, free: 85.29 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01626/2.617, allocations: 8.866 MB / 0.909 GB, free: 77 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01408/2.631, allocations: 5.513 MB / 0.9144 GB, free: 75.12 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003246/2.631, allocations: 53.88 kB / 0.9144 GB, free: 75.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1179) (initialization): time 0.0412/2.672, allocations: 13.45 MB / 0.9276 GB, free: 70.55 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001941/2.673, allocations: 85.72 kB / 0.9276 GB, free: 70.55 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003448/2.673, allocations: 191 kB / 0.9278 GB, free: 70.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007693/2.681, allocations: 1.702 MB / 0.9295 GB, free: 70.27 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01425/2.695, allocations: 2.136 MB / 0.9316 GB, free: 70.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02339/2.719, allocations: 11.68 MB / 0.943 GB, free: 63.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0122/2.731, allocations: 0.5338 MB / 0.9435 GB, free: 63.65 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002505/2.733, allocations: 0.5324 MB / 0.944 GB, free: 63.58 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 853 * Number of states: 0 () * Number of discrete variables: 63 (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.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],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 (1107): * Single equations (assignments): 1102 * 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.01019/2.744, allocations: 3.232 MB / 0.9472 GB, free: 62.08 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001823/2.745, allocations: 0.5933 MB / 0.9478 GB, free: 61.75 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02242/2.768, allocations: 6.748 MB / 0.9543 GB, free: 59.29 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.191e-05/2.768, allocations: 32.72 kB / 0.9544 GB, free: 59.29 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-05/2.768, allocations: 13.47 kB / 0.9544 GB, free: 59.29 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.591e-05/2.768, allocations: 18.67 kB / 0.9544 GB, free: 59.28 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0482/2.816, allocations: 15.19 MB / 0.9692 GB, free: 53.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-05/2.817, allocations: 3.188 kB / 0.9692 GB, free: 53.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005712/2.822, allocations: 0.5643 MB / 0.9698 GB, free: 53.75 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006683/2.829, allocations: 1.413 MB / 0.9712 GB, free: 52.97 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009343/2.83, allocations: 58.86 kB / 0.9712 GB, free: 52.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02122/2.851, allocations: 10.82 MB / 0.9818 GB, free: 43.26 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/2.851, allocations: 7.953 kB / 0.9818 GB, free: 43.25 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02873/2.88, allocations: 11.83 MB / 0.9934 GB, free: 32.74 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004764/2.885, allocations: 1.157 MB / 0.9945 GB, free: 31.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002649/2.888, allocations: 55.42 kB / 0.9945 GB, free: 31.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006294/2.894, allocations: 214.2 kB / 0.9947 GB, free: 31.48 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00135/2.895, allocations: 186.5 kB / 0.9949 GB, free: 31.36 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008111/2.896, allocations: 88.48 kB / 0.995 GB, free: 31.28 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01178/2.908, allocations: 4.434 MB / 0.9993 GB, free: 27.65 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.02e-07/2.908, allocations: 0 / 0.9993 GB, free: 27.65 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01218/2.92, allocations: 1.662 MB / 1.001 GB, free: 26 MB / 0.4948 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 (254): * Single equations (assignments): 249 * 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.03102/2.951, allocations: 13.2 MB / 1.014 GB, free: 14.12 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02117/2.972, allocations: 8.823 MB / 1.022 GB, free: 6.348 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/2.973, allocations: 0 / 1.022 GB, free: 6.348 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009689/2.982, allocations: 3.384 MB / 1.026 GB, free: 3.383 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007383/2.99, allocations: 0.7112 MB / 1.026 GB, free: 2.773 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6746/3.664, allocations: 195.6 MB / 1.218 GB, free: 25.56 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01529/3.68, allocations: 5.039 MB / 1.222 GB, free: 24.68 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01061/3.69, allocations: 3.3 MB / 1.226 GB, free: 24.57 MB / 0.5886 GB Notification: Performance of SimCode: time 1.813e-06/3.69, allocations: 3.469 kB / 1.226 GB, free: 24.57 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.913/9.604, allocations: 190.3 MB / 1.411 GB, free: 125.1 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat