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.002102/0.002102, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.01/2.01, allocations: 205.3 MB / 214.1 MB, free: 14.16 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001328/0.001328, allocations: 89.39 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2895/0.2895, allocations: 43.49 MB / 353.6 MB, free: 2.277 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.567e-05/2.577e-05, allocations: 0 / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4005/0.4006, allocations: 58.85 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.194/0.5946, allocations: 106.9 MB / 0.5704 GB, free: 8.27 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.595, allocations: 83.45 kB / 0.5705 GB, free: 8.191 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8707/1.466, allocations: 129.6 MB / 0.697 GB, free: 102.2 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.635e-06/1.466, allocations: 0 / 0.697 GB, free: 102.2 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004573/1.466, allocations: 139.3 kB / 0.6971 GB, free: 102.2 MB / 475.1 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.02705/1.493, allocations: 6.665 MB / 0.7036 GB, free: 98.32 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/1.493, allocations: 11.41 kB / 0.7036 GB, free: 98.32 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0532/1.547, allocations: 7.15 MB / 0.7106 GB, free: 94.69 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02776/1.574, allocations: 7.44 MB / 0.7179 GB, free: 89.57 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004698/1.575, allocations: 220 kB / 0.7181 GB, free: 89.35 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004922/1.58, allocations: 407.9 kB / 0.7185 GB, free: 88.95 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02388/1.604, allocations: 9.254 MB / 0.7275 GB, free: 79.7 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03726/1.641, allocations: 14.34 MB / 0.7415 GB, free: 63.89 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004242/1.642, allocations: 103.1 kB / 0.7416 GB, free: 63.79 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002793/1.644, allocations: 47.94 kB / 0.7417 GB, free: 63.75 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003313/1.648, allocations: 1.552 MB / 0.7432 GB, free: 62.2 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1061/1.754, allocations: 69.78 MB / 0.8113 GB, free: 6.777 MB / 491.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01156/1.766, allocations: 5.203 MB / 0.8164 GB, free: 1.418 MB / 491.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007964/1.774, allocations: 3.509 MB / 0.8198 GB, free: 13.9 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00111/1.775, allocations: 390.5 kB / 0.8202 GB, free: 13.48 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.678e-05/1.775, allocations: 77.19 kB / 0.8203 GB, free: 13.39 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=268): time 6.713e-06/1.775, allocations: 0 / 0.8203 GB, free: 13.39 MB / 0.4952 GB Notification: Performance of matching and sorting (n=312): time 0.4603/2.235, allocations: 27.54 MB / 0.8472 GB, free: 118.4 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/2.235, allocations: 240.1 kB / 0.8474 GB, free: 118.2 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01578/2.251, allocations: 4.787 MB / 0.8521 GB, free: 117.7 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.0008992/2.252, allocations: 26.64 kB / 0.8521 GB, free: 117.7 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.004831/2.257, allocations: 4.815 MB / 0.8568 GB, free: 114.8 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002332/2.259, allocations: 1.151 MB / 0.8579 GB, free: 114.2 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001805/2.261, allocations: 0 / 0.8579 GB, free: 114.2 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.00104/2.262, allocations: 0.711 MB / 0.8586 GB, free: 113.8 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009539/2.272, allocations: 3.414 MB / 0.862 GB, free: 113.8 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0126/2.284, allocations: 8.878 MB / 0.8706 GB, free: 106.7 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01717/2.302, allocations: 5.436 MB / 0.8759 GB, free: 105.3 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004079/2.302, allocations: 57.03 kB / 0.876 GB, free: 105.3 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1223) (initialization): time 0.04617/2.348, allocations: 12.39 MB / 0.8881 GB, free: 101.5 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002076/2.349, allocations: 88.38 kB / 0.8882 GB, free: 101.5 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003548/2.349, allocations: 194.8 kB / 0.8884 GB, free: 101.5 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007256/2.356, allocations: 1.721 MB / 0.8901 GB, free: 101.2 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01436/2.371, allocations: 2.224 MB / 0.8922 GB, free: 101 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02203/2.393, allocations: 10.73 MB / 0.9027 GB, free: 95.28 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01178/2.405, allocations: 376.8 kB / 0.9031 GB, free: 95.25 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002613/2.407, allocations: 0.5558 MB / 0.9036 GB, free: 95.17 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 889 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1151): * Single equations (assignments): 1146 * 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.003385/2.411, allocations: 0.5999 MB / 0.9042 GB, free: 94.68 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01838/2.429, allocations: 6.464 MB / 0.9105 GB, free: 92.5 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002406/2.432, allocations: 0.5138 MB / 0.911 GB, free: 92.21 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01854/2.45, allocations: 6.504 MB / 0.9174 GB, free: 88.98 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.762e-05/2.45, allocations: 32 kB / 0.9174 GB, free: 88.95 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.922e-05/2.45, allocations: 10.44 kB / 0.9174 GB, free: 88.94 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-05/2.45, allocations: 12.7 kB / 0.9174 GB, free: 88.94 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04074/2.491, allocations: 13.74 MB / 0.9308 GB, free: 77.89 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.9e-05/2.491, allocations: 4 kB / 0.9308 GB, free: 77.89 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005549/2.497, allocations: 0.532 MB / 0.9313 GB, free: 77.47 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006383/2.503, allocations: 1.404 MB / 0.9327 GB, free: 76.48 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008669/2.504, allocations: 15.14 kB / 0.9327 GB, free: 76.47 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01927/2.523, allocations: 9.882 MB / 0.9424 GB, free: 67.65 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.218e-06/2.524, allocations: 7.312 kB / 0.9424 GB, free: 67.64 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02536/2.549, allocations: 10.94 MB / 0.9531 GB, free: 57.99 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00461/2.554, allocations: 1.032 MB / 0.9541 GB, free: 57.02 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002338/2.556, allocations: 11.28 kB / 0.9541 GB, free: 57.02 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005832/2.562, allocations: 163.8 kB / 0.9542 GB, free: 56.93 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001206/2.563, allocations: 181 kB / 0.9544 GB, free: 56.82 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003431/2.563, allocations: 88.61 kB / 0.9545 GB, free: 56.74 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.008101/2.572, allocations: 3.222 MB / 0.9576 GB, free: 53.96 MB / 0.4952 GB Notification: Performance of sort global known variables: time 1.162e-06/2.572, allocations: 3.938 kB / 0.9577 GB, free: 53.96 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.01409/2.586, allocations: 1.428 MB / 0.959 GB, free: 52.54 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (253): * Single equations (assignments): 248 * 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.03059/2.616, allocations: 12.05 MB / 0.9708 GB, free: 41.79 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01936/2.636, allocations: 8.603 MB / 0.9792 GB, free: 33.55 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/2.636, allocations: 3 kB / 0.9792 GB, free: 33.55 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.008054/2.644, allocations: 3.314 MB / 0.9825 GB, free: 30.22 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004625/2.649, allocations: 0.5369 MB / 0.983 GB, free: 29.7 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04547/2.694, allocations: 15.72 MB / 0.9983 GB, free: 13.95 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01027/2.704, allocations: 5.052 MB / 1.003 GB, free: 8.898 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008667/2.713, allocations: 3.249 MB / 1.006 GB, free: 5.648 MB / 0.4952 GB Notification: Performance of SimCode: time 1.563e-06/2.713, allocations: 0 / 1.006 GB, free: 5.648 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.93/8.643, allocations: 183.7 MB / 1.186 GB, free: 9.031 MB / 0.5108 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