Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.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.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",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.002212/0.002212, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.168/2.168, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001047/0.001048, allocations: 78.67 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2808/0.2808, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.737e-05/3.755e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1213, allocations: 58.85 MB / 484.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.513/0.6344, allocations: 107 MB / 0.5774 GB, free: 12.46 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/0.6347, allocations: 81.55 kB / 0.5774 GB, free: 12.43 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.568/1.203, allocations: 131.6 MB / 0.706 GB, free: 0.6094 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.425e-06/1.203, allocations: 0 / 0.706 GB, free: 0.6094 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005084/1.203, allocations: 128 kB / 0.7061 GB, free: 496 kB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2377 * Number of variables: 2377 Notification: Performance of Generate backend data structure: time 0.3798/1.583, allocations: 6.374 MB / 0.7123 GB, free: 96.6 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/1.583, allocations: 9.578 kB / 0.7123 GB, free: 96.6 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00638/1.59, allocations: 1.181 MB / 0.7135 GB, free: 96.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.056/1.646, allocations: 7.102 MB / 0.7204 GB, free: 96.06 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03018/1.676, allocations: 7.264 MB / 0.7275 GB, free: 95.47 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008922/1.677, allocations: 0.4931 MB / 0.728 GB, free: 95.46 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00452/1.681, allocations: 0.6556 MB / 0.7286 GB, free: 95.45 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0558/1.737, allocations: 16.45 MB / 0.7447 GB, free: 92.24 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000614/1.738, allocations: 78.64 kB / 0.7448 GB, free: 92.23 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003903/1.742, allocations: 311.8 kB / 0.7451 GB, free: 92.23 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003665/1.745, allocations: 1.585 MB / 0.7466 GB, free: 92.21 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04535/1.791, allocations: 13.91 MB / 0.7602 GB, free: 92.16 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1135/1.904, allocations: 66.32 MB / 0.825 GB, free: 47.46 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02862/1.933, allocations: 6.979 MB / 0.8318 GB, free: 43.87 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008626/1.942, allocations: 4.181 MB / 0.8359 GB, free: 40.02 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04087/1.983, allocations: 15.06 MB / 0.8506 GB, free: 27.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.15e-05/1.983, allocations: 68.5 kB / 0.8506 GB, free: 27.12 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=306): time 8.066e-06/1.983, allocations: 0 / 0.8506 GB, free: 27.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=348): time 0.1188/2.102, allocations: 26.05 MB / 0.8761 GB, free: 5.512 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.782e-05/2.102, allocations: 217.7 kB / 0.8763 GB, free: 5.258 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01158/2.113, allocations: 4.679 MB / 0.8809 GB, free: 1.125 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001049/2.115, allocations: 77.7 kB / 0.8809 GB, free: 1.043 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004669/2.119, allocations: 4.246 MB / 0.8851 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002745/2.122, allocations: 1.277 MB / 0.8863 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001717/2.124, allocations: 164 kB / 0.8865 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001004/2.125, allocations: 0.654 MB / 0.8871 GB, free: 11.14 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01085/2.136, allocations: 3.545 MB / 0.8906 GB, free: 7.586 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3886/2.524, allocations: 8.002 MB / 0.8984 GB, free: 99.85 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01472/2.539, allocations: 5.27 MB / 0.9035 GB, free: 99.79 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002716/2.54, allocations: 44.47 kB / 0.9036 GB, free: 99.79 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1071) (initialization): time 0.04121/2.581, allocations: 12.74 MB / 0.916 GB, free: 99.47 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001424/2.581, allocations: 78.12 kB / 0.9161 GB, free: 99.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002395/2.581, allocations: 153.6 kB / 0.9162 GB, free: 99.47 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007176/2.588, allocations: 1.667 MB / 0.9179 GB, free: 99.45 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01355/2.602, allocations: 1.936 MB / 0.9198 GB, free: 99.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02184/2.624, allocations: 11.33 MB / 0.9308 GB, free: 96.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0106/2.635, allocations: 0.4917 MB / 0.9313 GB, free: 96.52 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002239/2.637, allocations: 480 kB / 0.9318 GB, free: 96.52 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 713 * Number of states: 0 () * Number of discrete variables: 51 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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 (999): * Single equations (assignments): 994 * 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.003485/2.64, allocations: 0.7206 MB / 0.9325 GB, free: 96.25 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001661/2.642, allocations: 0.5002 MB / 0.933 GB, free: 96.25 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02303/2.665, allocations: 7.361 MB / 0.9401 GB, free: 96 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.22e-05/2.665, allocations: 41.36 kB / 0.9402 GB, free: 95.99 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.973e-05/2.665, allocations: 15.3 kB / 0.9402 GB, free: 95.99 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.214e-05/2.665, allocations: 14.95 kB / 0.9402 GB, free: 95.99 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05064/2.716, allocations: 16.01 MB / 0.9559 GB, free: 93.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.084e-05/2.716, allocations: 0 / 0.9559 GB, free: 93.11 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006585/2.723, allocations: 0.6029 MB / 0.9564 GB, free: 93.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006723/2.73, allocations: 1.424 MB / 0.9578 GB, free: 92.78 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001111/2.731, allocations: 60.16 kB / 0.9579 GB, free: 92.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02148/2.752, allocations: 10.53 MB / 0.9682 GB, free: 87.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/2.752, allocations: 0 / 0.9682 GB, free: 87.16 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03188/2.784, allocations: 11.89 MB / 0.9798 GB, free: 82.66 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004744/2.789, allocations: 1.097 MB / 0.9809 GB, free: 82.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00257/2.792, allocations: 57.44 kB / 0.9809 GB, free: 82.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006349/2.798, allocations: 256.9 kB / 0.9812 GB, free: 81.97 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001542/2.8, allocations: 202.1 kB / 0.9813 GB, free: 81.94 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008271/2.801, allocations: 91.62 kB / 0.9814 GB, free: 81.92 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.009253/2.81, allocations: 3.283 MB / 0.9846 GB, free: 80.79 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.92e-07/2.81, allocations: 0 / 0.9846 GB, free: 80.79 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01157/2.821, allocations: 1.615 MB / 0.9862 GB, free: 80.61 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.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 (294): * Single equations (assignments): 289 * 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.03317/2.855, allocations: 12.74 MB / 0.9987 GB, free: 72.69 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0217/2.876, allocations: 8.84 MB / 1.007 GB, free: 64.66 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.357e-06/2.876, allocations: 0 / 1.007 GB, free: 64.66 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01121/2.888, allocations: 3.718 MB / 1.011 GB, free: 61.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005893/2.894, allocations: 0.6304 MB / 1.012 GB, free: 60.79 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05265/2.946, allocations: 15.87 MB / 1.027 GB, free: 47.07 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01179/2.958, allocations: 4.94 MB / 1.032 GB, free: 43.42 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008803/2.967, allocations: 3.116 MB / 1.035 GB, free: 40.54 MB / 0.5105 GB Notification: Performance of SimCode: time 1.984e-06/2.967, allocations: 4 kB / 1.035 GB, free: 40.54 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.628/8.595, allocations: 182.5 MB / 1.213 GB, free: 51.98 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat does not exist to compare? outputFormat=mat