Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute.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.Joints.Revolute,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute",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.002169/0.002169, 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.174/2.174, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.001086/0.001085, allocations: 82.67 kB / 262.1 MB, free: 13.89 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.2899/0.2899, 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.566e-05, allocations: 4 kB / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4058/0.4058, allocations: 58.85 MB / 477.2 MB, free: 5.172 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1859/0.5918, allocations: 101.6 MB / 0.5652 GB, free: 13.55 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002675/0.5921, allocations: 67.97 kB / 0.5653 GB, free: 13.48 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6862/1.278, allocations: 85 MB / 0.6483 GB, free: 111.1 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.986e-06/1.278, allocations: 4.25 kB / 0.6483 GB, free: 111.1 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0001982/1.279, allocations: 72.98 kB / 0.6484 GB, free: 111.1 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: 1571 * Number of variables: 1571 Notification: Performance of Generate backend data structure: time 0.01501/1.294, allocations: 3.669 MB / 0.652 GB, free: 109.5 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/1.294, allocations: 9.625 kB / 0.652 GB, free: 109.5 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02719/1.321, allocations: 3.508 MB / 0.6554 GB, free: 109.2 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01718/1.338, allocations: 4.173 MB / 0.6595 GB, free: 108.7 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003532/1.339, allocations: 125.2 kB / 0.6596 GB, free: 108.7 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002705/1.341, allocations: 225.4 kB / 0.6598 GB, free: 108.7 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01849/1.36, allocations: 7.265 MB / 0.6669 GB, free: 108.7 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03701/1.397, allocations: 9.489 MB / 0.6762 GB, free: 107.1 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002918/1.397, allocations: 28.92 kB / 0.6762 GB, free: 107.1 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002896/1.4, allocations: 16.94 kB / 0.6762 GB, free: 107 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004222/1.404, allocations: 1.209 MB / 0.6774 GB, free: 106.9 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0988/1.503, allocations: 33.08 MB / 0.7097 GB, free: 87.7 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009881/1.513, allocations: 4.173 MB / 0.7138 GB, free: 85.41 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006539/1.52, allocations: 2.229 MB / 0.716 GB, free: 84.55 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00311/1.523, allocations: 1.884 MB / 0.7178 GB, free: 82.8 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.982e-05/1.523, allocations: 56.53 kB / 0.7179 GB, free: 82.73 MB / 475.1 MB Notification: Performance of pre-optimization done (n=231): time 1.147e-05/1.523, allocations: 0 / 0.7179 GB, free: 82.73 MB / 475.1 MB Notification: Performance of matching and sorting (n=238): time 0.06093/1.584, allocations: 14.04 MB / 0.7316 GB, free: 70.95 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/1.584, allocations: 73.41 kB / 0.7316 GB, free: 70.87 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006059/1.59, allocations: 2.272 MB / 0.7339 GB, free: 68.87 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006207/1.591, allocations: 25.7 kB / 0.7339 GB, free: 68.84 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003015/1.594, allocations: 2.809 MB / 0.7366 GB, free: 66.28 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001624/1.596, allocations: 0.8384 MB / 0.7374 GB, free: 65.52 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007234/1.596, allocations: 4 kB / 0.7374 GB, free: 65.52 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0005781/1.597, allocations: 0.5543 MB / 0.738 GB, free: 65.02 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00692/1.604, allocations: 2.125 MB / 0.7401 GB, free: 63.12 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009913/1.614, allocations: 5.274 MB / 0.7452 GB, free: 56.62 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01015/1.624, allocations: 3.374 MB / 0.7485 GB, free: 53.75 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001306/1.624, allocations: 32 kB / 0.7485 GB, free: 53.72 MB / 475.1 MB Notification: Performance of matching and sorting (n=747) (initialization): time 0.03023/1.655, allocations: 7.409 MB / 0.7558 GB, free: 47.27 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001211/1.655, allocations: 52 kB / 0.7558 GB, free: 47.21 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002001/1.655, allocations: 112 kB / 0.7559 GB, free: 47.11 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005958/1.661, allocations: 0.8186 MB / 0.7567 GB, free: 46.29 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009267/1.67, allocations: 1.287 MB / 0.758 GB, free: 45 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007472/1.678, allocations: 3.985 MB / 0.7619 GB, free: 40.9 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005239/1.683, allocations: 203.8 kB / 0.7621 GB, free: 40.7 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001044/1.684, allocations: 328 kB / 0.7624 GB, free: 40.38 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 509 * Number of states: 0 () * Number of discrete variables: 27 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (687): * Single equations (assignments): 680 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009815/1.685, allocations: 385.1 kB / 0.7627 GB, free: 40 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009953/1.695, allocations: 4.076 MB / 0.7667 GB, free: 35.91 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007178/1.696, allocations: 264.5 kB / 0.767 GB, free: 35.65 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01174/1.708, allocations: 4.565 MB / 0.7714 GB, free: 31.05 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000103/1.708, allocations: 45.08 kB / 0.7715 GB, free: 31.01 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.161e-05/1.708, allocations: 4 kB / 0.7715 GB, free: 31.01 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.684e-05/1.708, allocations: 15.91 kB / 0.7715 GB, free: 30.99 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02638/1.734, allocations: 9.555 MB / 0.7808 GB, free: 21.33 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/1.734, allocations: 8.094 kB / 0.7808 GB, free: 21.32 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00319/1.738, allocations: 375.3 kB / 0.7812 GB, free: 20.96 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003449/1.741, allocations: 0.6483 MB / 0.7818 GB, free: 20.3 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000449/1.741, allocations: 15.98 kB / 0.7818 GB, free: 20.29 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006538/1.748, allocations: 3.466 MB / 0.7852 GB, free: 16.71 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.259e-05/1.748, allocations: 15.94 kB / 0.7852 GB, free: 16.7 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01627/1.764, allocations: 7.577 MB / 0.7926 GB, free: 8.812 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002421/1.767, allocations: 0.6459 MB / 0.7933 GB, free: 8.145 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007154/1.768, allocations: 11.95 kB / 0.7933 GB, free: 8.133 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002363/1.77, allocations: 111.9 kB / 0.7934 GB, free: 8.023 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004232/1.77, allocations: 133 kB / 0.7935 GB, free: 7.895 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002282/1.771, allocations: 67.98 kB / 0.7936 GB, free: 7.828 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.002943/1.774, allocations: 1.479 MB / 0.795 GB, free: 6.34 MB / 475.1 MB Notification: Performance of sort global known variables: time 5.91e-07/1.774, allocations: 4 kB / 0.795 GB, free: 6.336 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.006257/1.78, allocations: 0.8203 MB / 0.7958 GB, free: 5.516 MB / 475.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (181): * Single equations (assignments): 174 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01786/1.798, allocations: 10.12 MB / 0.8057 GB, free: 11.15 MB / 491.1 MB Notification: Performance of simCode: created initialization part: time 0.0124/1.81, allocations: 5.179 MB / 0.8108 GB, free: 5.988 MB / 491.1 MB Notification: Performance of simCode: created event and clocks part: time 1.081e-05/1.81, allocations: 4.125 kB / 0.8108 GB, free: 5.984 MB / 491.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004506/1.815, allocations: 1.965 MB / 0.8127 GB, free: 4.008 MB / 491.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0019/1.817, allocations: 212.8 kB / 0.8129 GB, free: 3.797 MB / 491.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02789/1.845, allocations: 9.665 MB / 0.8223 GB, free: 9.984 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005817/1.851, allocations: 3.32 MB / 0.8256 GB, free: 6.637 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004468/1.855, allocations: 1.854 MB / 0.8274 GB, free: 4.781 MB / 0.4952 GB Notification: Performance of SimCode: time 1.513e-06/1.855, allocations: 0 / 0.8274 GB, free: 4.781 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.793/6.648, allocations: 91.44 MB / 0.9167 GB, free: 92.7 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_Revolute.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute_res.mat does not exist to compare? outputFormat=mat