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.002437/0.002437, allocations: 183.2 kB / 16.4 MB, free: 5.75 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.657/2.657, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001159/0.001159, allocations: 89.84 kB / 270.9 MB, free: 8.367 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.5303/0.5303, allocations: 43.55 MB / 362.7 MB, free: 51.95 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000517/0.0005172, allocations: 16 kB / 431.5 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1437, allocations: 58.84 MB / 490.3 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.4466/0.5903, allocations: 77.55 MB / 0.5546 GB, free: 11.22 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0545/0.6449, allocations: 17.29 MB / 0.5714 GB, free: 15.43 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01992/0.6649, allocations: 388 kB / 0.5718 GB, free: 15.38 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01597/0.6809, allocations: 3.89 MB / 0.5756 GB, free: 14.1 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0517/0.7327, allocations: 11.03 MB / 0.5864 GB, free: 7.859 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007309/0.74, allocations: 0.8528 MB / 0.5872 GB, free: 7.008 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.07628/0.8164, allocations: 27.42 MB / 0.614 GB, free: 11.57 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01683/0.8333, allocations: 7.378 MB / 0.6212 GB, free: 4.137 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004675/0.838, allocations: 1.643 MB / 0.6228 GB, free: 2.488 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005357/0.8434, allocations: 2.208 MB / 0.625 GB, free: 280 kB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001746/0.8452, allocations: 232 kB / 0.6252 GB, free: 48 kB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004381/0.8496, allocations: 0.9832 MB / 0.6261 GB, free: 15.06 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005042/0.8547, allocations: 2.63 MB / 0.6287 GB, free: 12.43 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002912/0.8577, allocations: 1.345 MB / 0.63 GB, free: 11.07 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01559/0.8733, allocations: 8.892 MB / 0.6387 GB, free: 2.156 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.8734, allocations: 0 / 0.6387 GB, free: 2.156 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.005e-06/0.8734, allocations: 0 / 0.6387 GB, free: 2.156 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004143/0.8738, allocations: 0 / 0.6387 GB, free: 2.156 MB / 458.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.026/0.8998, allocations: 6.988 MB / 0.6455 GB, free: 11.09 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.956e-05/0.8999, allocations: 8.031 kB / 0.6455 GB, free: 11.08 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004159/0.9041, allocations: 1.124 MB / 0.6466 GB, free: 9.941 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09086/0.995, allocations: 8.276 MB / 0.6547 GB, free: 1.645 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01695/1.012, allocations: 4.799 MB / 0.6594 GB, free: 12.76 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000566/1.013, allocations: 381.9 kB / 0.6598 GB, free: 12.39 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002571/1.015, allocations: 0.5112 MB / 0.6603 GB, free: 11.88 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6789/1.694, allocations: 15.67 MB / 0.6756 GB, free: 133 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004325/1.695, allocations: 75.08 kB / 0.6756 GB, free: 133 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001781/1.696, allocations: 239.2 kB / 0.6759 GB, free: 133 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009873/1.706, allocations: 3.063 MB / 0.6789 GB, free: 133 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04173/1.748, allocations: 13.17 MB / 0.6917 GB, free: 129.8 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1091/1.857, allocations: 61.3 MB / 0.7516 GB, free: 87.96 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02725/1.885, allocations: 6.744 MB / 0.7582 GB, free: 84.32 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02372/1.908, allocations: 9.335 MB / 0.7673 GB, free: 76.2 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.484e-05/1.908, allocations: 60.56 kB / 0.7673 GB, free: 76.13 MB / 490.8 MB Notification: Performance of pre-optimization done (n=269): time 6.623e-06/1.908, allocations: 4 kB / 0.7673 GB, free: 76.12 MB / 490.8 MB Notification: Performance of matching and sorting (n=311): time 0.1342/2.043, allocations: 32.12 MB / 0.7987 GB, free: 43.66 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/2.043, allocations: 239.9 kB / 0.7989 GB, free: 43.37 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01522/2.058, allocations: 7.219 MB / 0.806 GB, free: 36.17 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001007/2.059, allocations: 73.7 kB / 0.8061 GB, free: 36.09 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003815/2.063, allocations: 4.568 MB / 0.8105 GB, free: 31.53 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002014/2.065, allocations: 1.185 MB / 0.8117 GB, free: 30.36 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001301/2.066, allocations: 176 kB / 0.8119 GB, free: 30.18 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0006305/2.067, allocations: 0.7029 MB / 0.8125 GB, free: 29.47 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00951/2.077, allocations: 3.66 MB / 0.8161 GB, free: 25.8 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01267/2.089, allocations: 8.944 MB / 0.8248 GB, free: 14.23 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01255/2.102, allocations: 5.595 MB / 0.8303 GB, free: 8.641 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000153/2.102, allocations: 56 kB / 0.8304 GB, free: 8.586 MB / 490.8 MB Notification: Performance of matching and sorting (n=1184) (initialization): time 0.03902/2.141, allocations: 13.68 MB / 0.8437 GB, free: 10.9 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001644/2.141, allocations: 84 kB / 0.8438 GB, free: 10.82 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003362/2.142, allocations: 184 kB / 0.844 GB, free: 10.64 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008653/2.15, allocations: 1.812 MB / 0.8457 GB, free: 8.816 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01408/2.165, allocations: 2.119 MB / 0.8478 GB, free: 6.695 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02882/2.193, allocations: 12.33 MB / 0.8599 GB, free: 10.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01113/2.205, allocations: 0.5265 MB / 0.8604 GB, free: 9.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002201/2.207, allocations: 0.539 MB / 0.8609 GB, free: 9.031 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 848 * 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 (1102): * Single equations (assignments): 1095 * 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.009657/2.217, allocations: 3.237 MB / 0.8641 GB, free: 5.781 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001782/2.218, allocations: 0.5862 MB / 0.8646 GB, free: 5.188 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3908/2.609, allocations: 6.961 MB / 0.8714 GB, free: 151 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-05/2.609, allocations: 32.72 kB / 0.8715 GB, free: 151 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.128e-05/2.609, allocations: 8.594 kB / 0.8715 GB, free: 151 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.622e-05/2.609, allocations: 15.97 kB / 0.8715 GB, free: 151 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05651/2.666, allocations: 15.53 MB / 0.8867 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.729e-05/2.666, allocations: 3.094 kB / 0.8867 GB, free: 148.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008125/2.674, allocations: 0.5205 MB / 0.8872 GB, free: 148 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01116/2.685, allocations: 1.525 MB / 0.8887 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001213/2.687, allocations: 62.7 kB / 0.8887 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03765/2.724, allocations: 11.48 MB / 0.8999 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.365e-05/2.725, allocations: 5.125 kB / 0.8999 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04215/2.767, allocations: 12.15 MB / 0.9118 GB, free: 136.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005229/2.772, allocations: 1.185 MB / 0.913 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00266/2.775, allocations: 54.25 kB / 0.913 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006795/2.782, allocations: 208.5 kB / 0.9132 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001706/2.783, allocations: 193 kB / 0.9134 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004416/2.784, allocations: 87.08 kB / 0.9135 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01374/2.798, allocations: 4.652 MB / 0.918 GB, free: 134.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.92e-07/2.798, allocations: 0 / 0.918 GB, free: 134.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01203/2.81, allocations: 1.696 MB / 0.9197 GB, free: 134.4 MB / 0.5105 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.03178/2.841, allocations: 13.53 MB / 0.9329 GB, free: 127.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02192/2.863, allocations: 8.981 MB / 0.9416 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.161e-05/2.864, allocations: 7.812 kB / 0.9417 GB, free: 122.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00959/2.873, allocations: 3.484 MB / 0.9451 GB, free: 119 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006505/2.88, allocations: 0.7084 MB / 0.9457 GB, free: 118.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4258/3.306, allocations: 164.8 MB / 1.107 GB, free: 126.8 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01146/3.317, allocations: 5.042 MB / 1.112 GB, free: 125.9 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008546/3.326, allocations: 3.276 MB / 1.115 GB, free: 125.9 MB / 0.5262 GB Notification: Performance of SimCode: time 1.563e-06/3.326, allocations: 2.938 kB / 1.115 GB, free: 125.9 MB / 0.5262 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.029/9.355, allocations: 189 MB / 1.299 GB, free: 160.1 MB / 0.5262 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