Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.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.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques",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.001636/0.001643, allocations: 188.4 kB / 16.4 MB, free: 5.625 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.062/2.062, allocations: 205.4 MB / 222.5 MB, free: 13.86 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00118/0.00118, allocations: 98.83 kB / 270.9 MB, free: 13.39 MB / 234.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.292/0.292, allocations: 43.55 MB / 362.7 MB, free: 11.34 MB / 266.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0004765/0.0004765, allocations: 12 kB / 431.5 MB, free: 20.18 MB / 282.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1203, allocations: 58.86 MB / 490.3 MB, free: 9.262 MB / 330.8 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForcesAndTorques): time 0.4608/0.5812, allocations: 90.96 MB / 0.5677 GB, free: 10.2 MB / 378.8 MB Notification: Performance of NFInst.instExpressions: time 0.06545/0.6467, allocations: 20.11 MB / 0.5873 GB, free: 8.973 MB / 394.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02214/0.6689, allocations: 447 kB / 0.5877 GB, free: 8.535 MB / 394.8 MB Notification: Performance of NFTyping.typeComponents: time 0.01766/0.6866, allocations: 4.584 MB / 0.5922 GB, free: 3.93 MB / 394.8 MB Notification: Performance of NFTyping.typeBindings: time 0.05279/0.7394, allocations: 12.88 MB / 0.6048 GB, free: 7.023 MB / 410.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.00808/0.7476, allocations: 0.983 MB / 0.6057 GB, free: 6.039 MB / 410.8 MB Notification: Performance of NFFlatten.flatten: time 0.0762/0.8238, allocations: 27.77 MB / 0.6328 GB, free: 10.24 MB / 442.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01933/0.8432, allocations: 8.837 MB / 0.6415 GB, free: 1.332 MB / 442.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004675/0.8479, allocations: 1.814 MB / 0.6433 GB, free: 15.51 MB / 458.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005599/0.8536, allocations: 2.48 MB / 0.6457 GB, free: 13.02 MB / 458.8 MB Notification: Performance of NFPackage.collectConstants: time 0.001807/0.8555, allocations: 279.9 kB / 0.6459 GB, free: 12.75 MB / 458.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004033/0.8595, allocations: 1.014 MB / 0.6469 GB, free: 11.73 MB / 458.8 MB Notification: Performance of NFScalarize.scalarize: time 0.005434/0.865, allocations: 2.977 MB / 0.6498 GB, free: 8.75 MB / 458.8 MB Notification: Performance of NFVerifyModel.verify: time 0.003156/0.8682, allocations: 1.524 MB / 0.6513 GB, free: 7.215 MB / 458.8 MB Notification: Performance of NFConvertDAE.convert: time 0.01721/0.8855, allocations: 10.34 MB / 0.6614 GB, free: 12.85 MB / 474.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.8855, allocations: 0 / 0.6614 GB, free: 12.85 MB / 474.8 MB Notification: Performance of FrontEnd: time 2.975e-06/0.8855, allocations: 0 / 0.6614 GB, free: 12.85 MB / 474.8 MB Notification: Performance of Transformations before backend: time 0.0004914/0.886, allocations: 0 / 0.6614 GB, free: 12.85 MB / 474.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2763 * Number of variables: 2763 Notification: Performance of Generate backend data structure: time 0.02828/0.9143, allocations: 7.731 MB / 0.669 GB, free: 5.035 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.9144, allocations: 8.031 kB / 0.669 GB, free: 5.027 MB / 474.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004604/0.919, allocations: 1.294 MB / 0.6702 GB, free: 3.723 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08951/1.009, allocations: 8.454 MB / 0.6785 GB, free: 11.25 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01701/1.026, allocations: 5.154 MB / 0.6835 GB, free: 6.012 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006829/1.026, allocations: 455.5 kB / 0.684 GB, free: 5.566 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002876/1.029, allocations: 0.5816 MB / 0.6845 GB, free: 4.984 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05645/1.086, allocations: 18.6 MB / 0.7027 GB, free: 1.328 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003869/1.086, allocations: 75.3 kB / 0.7028 GB, free: 1.254 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002214/1.088, allocations: 283.7 kB / 0.703 GB, free: 0.9766 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01125/1.1, allocations: 3.542 MB / 0.7065 GB, free: 13.43 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6796/1.779, allocations: 15.66 MB / 0.7218 GB, free: 178.6 MB / 0.5106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1278/1.907, allocations: 70.09 MB / 0.7902 GB, free: 129.3 MB / 0.5106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03705/1.944, allocations: 8.566 MB / 0.7986 GB, free: 120.6 MB / 0.5106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03162/1.976, allocations: 11.73 MB / 0.8101 GB, free: 108.7 MB / 0.5106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.549e-05/1.976, allocations: 87.11 kB / 0.8101 GB, free: 108.7 MB / 0.5106 GB Notification: Performance of pre-optimization done (n=347): time 9.428e-06/1.976, allocations: 3.984 kB / 0.8101 GB, free: 108.7 MB / 0.5106 GB Notification: Performance of matching and sorting (n=389): time 0.1617/2.138, allocations: 38.35 MB / 0.8476 GB, free: 70.01 MB / 0.5106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/2.138, allocations: 252.9 kB / 0.8478 GB, free: 69.71 MB / 0.5106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01633/2.154, allocations: 7.655 MB / 0.8553 GB, free: 62.07 MB / 0.5106 GB Notification: Performance of collectPreVariables (initialization): time 0.001289/2.156, allocations: 85.7 kB / 0.8554 GB, free: 61.98 MB / 0.5106 GB Notification: Performance of collectInitialEqns (initialization): time 0.004459/2.16, allocations: 4.991 MB / 0.8603 GB, free: 57 MB / 0.5106 GB Notification: Performance of collectInitialBindings (initialization): time 0.002436/2.163, allocations: 1.444 MB / 0.8617 GB, free: 55.57 MB / 0.5106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001511/2.164, allocations: 200 kB / 0.8619 GB, free: 55.38 MB / 0.5106 GB Notification: Performance of setup shared object (initialization): time 0.0007196/2.165, allocations: 0.7324 MB / 0.8626 GB, free: 54.63 MB / 0.5106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01079/2.176, allocations: 4.212 MB / 0.8667 GB, free: 50.41 MB / 0.5106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01447/2.19, allocations: 9.776 MB / 0.8762 GB, free: 37.9 MB / 0.5106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01546/2.206, allocations: 6.297 MB / 0.8824 GB, free: 31.61 MB / 0.5106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002225/2.206, allocations: 56 kB / 0.8825 GB, free: 31.55 MB / 0.5106 GB Notification: Performance of matching and sorting (n=1305) (initialization): time 0.04244/2.249, allocations: 15.11 MB / 0.8972 GB, free: 16.42 MB / 0.5106 GB Notification: Performance of prepare postOptimizeDAE: time 0.000135/2.249, allocations: 88 kB / 0.8973 GB, free: 16.33 MB / 0.5106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000265/2.249, allocations: 199.9 kB / 0.8975 GB, free: 16.14 MB / 0.5106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007562/2.257, allocations: 1.832 MB / 0.8993 GB, free: 14.3 MB / 0.5106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01529/2.272, allocations: 2.39 MB / 0.9016 GB, free: 11.9 MB / 0.5106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3739/2.646, allocations: 12.42 MB / 0.9137 GB, free: 158.1 MB / 0.5106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01812/2.664, allocations: 0.5699 MB / 0.9143 GB, free: 158.1 MB / 0.5106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004683/2.669, allocations: 0.5828 MB / 0.9149 GB, free: 158.1 MB / 0.5106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 890 * Number of states: 0 () * Number of discrete variables: 69 (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],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[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 (1223): * Single equations (assignments): 1216 * Array equations: 5 * 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.01839/2.687, allocations: 3.611 MB / 0.9184 GB, free: 158 MB / 0.5106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003727/2.691, allocations: 0.6441 MB / 0.919 GB, free: 158 MB / 0.5106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03099/2.722, allocations: 8.444 MB / 0.9273 GB, free: 155.4 MB / 0.5106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.624e-05/2.722, allocations: 39.88 kB / 0.9273 GB, free: 155.4 MB / 0.5106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.258e-05/2.722, allocations: 8.188 kB / 0.9273 GB, free: 155.4 MB / 0.5106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001031/2.723, allocations: 20.48 kB / 0.9273 GB, free: 155.4 MB / 0.5106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0523/2.775, allocations: 18.65 MB / 0.9455 GB, free: 148.7 MB / 0.5106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.688e-05/2.775, allocations: 6.562 kB / 0.9455 GB, free: 148.7 MB / 0.5106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006975/2.782, allocations: 0.7058 MB / 0.9462 GB, free: 148.7 MB / 0.5106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006965/2.789, allocations: 1.534 MB / 0.9477 GB, free: 148.4 MB / 0.5106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009787/2.79, allocations: 78.78 kB / 0.9478 GB, free: 148.4 MB / 0.5106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02334/2.813, allocations: 11.59 MB / 0.9591 GB, free: 142.4 MB / 0.5106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/2.813, allocations: 11.06 kB / 0.9591 GB, free: 142.4 MB / 0.5106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03438/2.848, allocations: 14.84 MB / 0.9736 GB, free: 130.2 MB / 0.5106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005211/2.853, allocations: 1.351 MB / 0.9749 GB, free: 129 MB / 0.5106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002713/2.856, allocations: 73.08 kB / 0.975 GB, free: 128.9 MB / 0.5106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006754/2.863, allocations: 251.7 kB / 0.9753 GB, free: 128.7 MB / 0.5106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001594/2.864, allocations: 241 kB / 0.9755 GB, free: 128.5 MB / 0.5106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00054/2.865, allocations: 108.8 kB / 0.9756 GB, free: 128.4 MB / 0.5106 GB Notification: Performance of sorting global known variables: time 0.01182/2.877, allocations: 4.956 MB / 0.9804 GB, free: 123.4 MB / 0.5106 GB Notification: Performance of sort global known variables: time 1.724e-06/2.877, allocations: 0 / 0.9804 GB, free: 123.4 MB / 0.5106 GB Notification: Performance of remove unused functions: time 0.01224/2.889, allocations: 1.906 MB / 0.9823 GB, free: 121.5 MB / 0.5106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * 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 (329): * Single equations (assignments): 324 * 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.03564/2.925, allocations: 16.59 MB / 0.9985 GB, free: 104.7 MB / 0.5106 GB Notification: Performance of simCode: created initialization part: time 0.02323/2.948, allocations: 10.28 MB / 1.009 GB, free: 94.48 MB / 0.5106 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/2.948, allocations: 0 / 1.009 GB, free: 94.48 MB / 0.5106 GB Notification: Performance of simCode: created simulation system equations: time 0.01125/2.959, allocations: 4.133 MB / 1.013 GB, free: 90.33 MB / 0.5106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006598/2.966, allocations: 0.7721 MB / 1.013 GB, free: 89.58 MB / 0.5106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4851/3.451, allocations: 176.7 MB / 1.186 GB, free: 96.71 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01434/3.465, allocations: 5.65 MB / 1.191 GB, free: 95.8 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009264/3.475, allocations: 3.734 MB / 1.195 GB, free: 94.82 MB / 0.5262 GB Notification: Performance of SimCode: time 1.152e-06/3.475, allocations: 0 / 1.195 GB, free: 94.82 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.177/9.652, allocations: 213.7 MB / 1.404 GB, free: 118.4 MB / 0.5418 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat does not exist to compare? outputFormat=mat