Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.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.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",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.001523/0.001523, allocations: 179.4 kB / 8.364 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.298/2.298, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.00113/0.001129, allocations: 98.36 kB / 262.1 MB, free: 13.87 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.2934/0.2934, allocations: 43.49 MB / 353.6 MB, free: 2.273 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.82e-05/2.781e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4333/0.4334, allocations: 58.85 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2161/0.6496, allocations: 106.3 MB / 0.5698 GB, free: 8.891 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/0.65, allocations: 75.95 kB / 0.5698 GB, free: 8.816 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8124/1.462, allocations: 112.7 MB / 0.6799 GB, free: 106.4 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.675e-06/1.463, allocations: 0 / 0.6799 GB, free: 106.4 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0004111/1.463, allocations: 117.7 kB / 0.68 GB, free: 106.4 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: 1959 * Number of variables: 1959 Notification: Performance of Generate backend data structure: time 0.02289/1.486, allocations: 5.471 MB / 0.6853 GB, free: 103.8 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/1.486, allocations: 7.938 kB / 0.6853 GB, free: 103.8 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05059/1.537, allocations: 6.956 MB / 0.6921 GB, free: 102.7 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02635/1.563, allocations: 6.866 MB / 0.6988 GB, free: 100.2 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004026/1.563, allocations: 179.9 kB / 0.699 GB, free: 100.2 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003292/1.567, allocations: 326.1 kB / 0.6993 GB, free: 100.2 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01987/1.587, allocations: 7.457 MB / 0.7066 GB, free: 97.64 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0314/1.618, allocations: 11.76 MB / 0.7181 GB, free: 87.55 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004109/1.619, allocations: 75.34 kB / 0.7181 GB, free: 87.47 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002846/1.621, allocations: 43.98 kB / 0.7182 GB, free: 87.43 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002789/1.624, allocations: 1.247 MB / 0.7194 GB, free: 86.19 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08487/1.709, allocations: 57.5 MB / 0.7756 GB, free: 27.36 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006455/1.716, allocations: 3.444 MB / 0.7789 GB, free: 23.76 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004153/1.72, allocations: 2.097 MB / 0.781 GB, free: 21.65 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002262/1.72, allocations: 32.77 kB / 0.781 GB, free: 21.63 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.976e-05/1.72, allocations: 59.62 kB / 0.7811 GB, free: 21.56 MB / 475.1 MB Notification: Performance of pre-optimization done (n=185): time 7.795e-06/1.72, allocations: 0 / 0.7811 GB, free: 21.56 MB / 475.1 MB Notification: Performance of matching and sorting (n=198): time 0.0538/1.774, allocations: 17.56 MB / 0.7982 GB, free: 3.828 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.994e-05/1.774, allocations: 227 kB / 0.7984 GB, free: 3.559 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01057/1.785, allocations: 4.145 MB / 0.8025 GB, free: 15.41 MB / 491.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005287/1.785, allocations: 29.7 kB / 0.8025 GB, free: 15.38 MB / 491.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004872/1.79, allocations: 4.111 MB / 0.8065 GB, free: 11.21 MB / 491.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001492/1.792, allocations: 0.7599 MB / 0.8072 GB, free: 10.44 MB / 491.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001007/1.793, allocations: 11.94 kB / 0.8073 GB, free: 10.43 MB / 491.1 MB Notification: Performance of setup shared object (initialization): time 0.0008459/1.794, allocations: 0.625 MB / 0.8079 GB, free: 9.797 MB / 491.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006595/1.8, allocations: 2.194 MB / 0.81 GB, free: 7.602 MB / 491.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01152/1.812, allocations: 6.88 MB / 0.8167 GB, free: 14.36 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009775/1.822, allocations: 3.857 MB / 0.8205 GB, free: 10.5 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001771/1.822, allocations: 48 kB / 0.8205 GB, free: 10.45 MB / 0.4952 GB Notification: Performance of matching and sorting (n=980) (initialization): time 0.02571/1.848, allocations: 8.257 MB / 0.8286 GB, free: 2.188 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001595/1.848, allocations: 83.95 kB / 0.8287 GB, free: 2.105 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002819/1.848, allocations: 168 kB / 0.8288 GB, free: 1.941 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002524/1.851, allocations: 0.6107 MB / 0.8294 GB, free: 1.324 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.4006/2.251, allocations: 1.719 MB / 0.8311 GB, free: 118.3 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009361/2.261, allocations: 5.526 MB / 0.8365 GB, free: 115.8 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008184/2.269, allocations: 252.8 kB / 0.8368 GB, free: 115.8 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002076/2.271, allocations: 470.2 kB / 0.8372 GB, free: 115.8 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 767 * Number of states: 0 () * Number of discrete variables: 45 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.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 (928): * Single equations (assignments): 923 * 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 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002746/2.274, allocations: 0.5196 MB / 0.8377 GB, free: 115.7 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0097/2.284, allocations: 3.139 MB / 0.8408 GB, free: 115.7 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001555/2.285, allocations: 429.8 kB / 0.8412 GB, free: 115.7 MB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009469/2.295, allocations: 2.921 MB / 0.844 GB, free: 115.5 MB / 0.4952 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.318e-05/2.295, allocations: 22.31 kB / 0.8441 GB, free: 115.5 MB / 0.4952 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.843e-05/2.295, allocations: 5.969 kB / 0.8441 GB, free: 115.5 MB / 0.4952 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-05/2.295, allocations: 13.45 kB / 0.8441 GB, free: 115.5 MB / 0.4952 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02558/2.321, allocations: 7.548 MB / 0.8515 GB, free: 114.9 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.48e-05/2.321, allocations: 2.062 kB / 0.8515 GB, free: 114.9 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003048/2.324, allocations: 295.3 kB / 0.8517 GB, free: 114.9 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001775/2.326, allocations: 359.1 kB / 0.8521 GB, free: 114.9 MB / 0.4952 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003677/2.326, allocations: 5.094 kB / 0.8521 GB, free: 114.9 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007833/2.334, allocations: 4.848 MB / 0.8568 GB, free: 111.9 MB / 0.4952 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/2.334, allocations: 6.281 kB / 0.8568 GB, free: 111.9 MB / 0.4952 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01189/2.346, allocations: 5.686 MB / 0.8624 GB, free: 109.5 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002952/2.349, allocations: 0.7178 MB / 0.8631 GB, free: 109 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001211/2.35, allocations: 5.562 kB / 0.8631 GB, free: 109 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003537/2.354, allocations: 65.28 kB / 0.8631 GB, free: 109 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000602/2.354, allocations: 112.2 kB / 0.8633 GB, free: 109 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002062/2.354, allocations: 55.17 kB / 0.8633 GB, free: 109 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.007576/2.362, allocations: 2.802 MB / 0.866 GB, free: 108 MB / 0.4952 GB Notification: Performance of sort global known variables: time 9.31e-07/2.362, allocations: 3.938 kB / 0.866 GB, free: 108 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.0102/2.372, allocations: 1.059 MB / 0.8671 GB, free: 108 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (155): * Single equations (assignments): 150 * 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 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01216/2.385, allocations: 6.663 MB / 0.8736 GB, free: 104.5 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.01194/2.397, allocations: 5.426 MB / 0.8789 GB, free: 102.8 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/2.397, allocations: 0 / 0.8789 GB, free: 102.8 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.003498/2.4, allocations: 1.659 MB / 0.8805 GB, free: 102.1 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004333/2.404, allocations: 496.9 kB / 0.881 GB, free: 101.9 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03746/2.442, allocations: 11.79 MB / 0.8925 GB, free: 97.66 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009505/2.452, allocations: 4.259 MB / 0.8967 GB, free: 96.18 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006034/2.458, allocations: 2.595 MB / 0.8992 GB, free: 94.09 MB / 0.4952 GB Notification: Performance of SimCode: time 1.242e-06/2.458, allocations: 1.594 kB / 0.8992 GB, free: 94.09 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.006/7.464, allocations: 148.4 MB / 1.044 GB, free: 129.9 MB / 0.5108 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat does not exist to compare? outputFormat=mat