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.001636/0.001636, allocations: 188.3 kB / 16.41 MB, free: 5.723 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.01/2.01, 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.001144/0.001144, allocations: 90.84 kB / 270.9 MB, free: 8.371 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.5231/0.5231, allocations: 43.55 MB / 362.7 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008103/0.0008103, allocations: 12 kB / 431.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1465, allocations: 58.85 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4978/0.6444, allocations: 102.4 MB / 0.5788 GB, free: 120 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002925/0.6447, allocations: 81.34 kB / 0.5789 GB, free: 40 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3751/1.02, allocations: 86.5 MB / 0.6634 GB, free: 8.891 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.304e-06/1.02, allocations: 0 / 0.6634 GB, free: 8.891 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002002/1.02, allocations: 68 kB / 0.6634 GB, free: 8.824 MB / 490.7 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.01587/1.036, allocations: 3.812 MB / 0.6671 GB, free: 4.945 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.048e-05/1.036, allocations: 12.03 kB / 0.6672 GB, free: 4.934 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004179/1.04, allocations: 0.7834 MB / 0.6679 GB, free: 4.137 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02803/1.068, allocations: 3.504 MB / 0.6713 GB, free: 0.6211 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3609/1.429, allocations: 4.182 MB / 0.6754 GB, free: 95.08 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004657/1.43, allocations: 296.5 kB / 0.6757 GB, free: 95.07 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002651/1.432, allocations: 385.8 kB / 0.6761 GB, free: 95.07 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03083/1.463, allocations: 10.32 MB / 0.6861 GB, free: 93.81 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002183/1.464, allocations: 30.91 kB / 0.6862 GB, free: 93.81 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002063/1.466, allocations: 174.8 kB / 0.6863 GB, free: 93.81 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002744/1.468, allocations: 1.22 MB / 0.6875 GB, free: 93.8 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02819/1.497, allocations: 10.01 MB / 0.6973 GB, free: 93.75 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08136/1.578, allocations: 35.58 MB / 0.7321 GB, free: 74.96 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01468/1.593, allocations: 4.949 MB / 0.7369 GB, free: 72.68 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002265/1.595, allocations: 1.881 MB / 0.7387 GB, free: 70.93 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.82e-05/1.595, allocations: 52 kB / 0.7388 GB, free: 70.88 MB / 490.7 MB Notification: Performance of pre-optimization done (n=229): time 7.094e-06/1.595, allocations: 0 / 0.7388 GB, free: 70.88 MB / 490.7 MB Notification: Performance of matching and sorting (n=235): time 0.05523/1.65, allocations: 14.37 MB / 0.7528 GB, free: 66.05 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/1.651, allocations: 70.28 kB / 0.7529 GB, free: 65.99 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004942/1.656, allocations: 2.396 MB / 0.7552 GB, free: 65.07 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000534/1.656, allocations: 59.55 kB / 0.7553 GB, free: 65.02 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002002/1.658, allocations: 2.703 MB / 0.7579 GB, free: 62.92 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001247/1.659, allocations: 0.8574 MB / 0.7587 GB, free: 62.29 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006608/1.66, allocations: 102.1 kB / 0.7588 GB, free: 62.21 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003694/1.66, allocations: 0.5343 MB / 0.7594 GB, free: 61.81 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0052/1.666, allocations: 2.184 MB / 0.7615 GB, free: 61.14 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007289/1.673, allocations: 5.085 MB / 0.7665 GB, free: 56.56 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007315/1.68, allocations: 3.327 MB / 0.7697 GB, free: 55.38 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.294e-05/1.68, allocations: 29.41 kB / 0.7697 GB, free: 55.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=699) (initialization): time 0.02107/1.702, allocations: 7.812 MB / 0.7774 GB, free: 52.65 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.392e-05/1.702, allocations: 54.81 kB / 0.7774 GB, free: 52.64 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001488/1.702, allocations: 99.94 kB / 0.7775 GB, free: 52.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00396/1.706, allocations: 0.8062 MB / 0.7783 GB, free: 52.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007544/1.713, allocations: 1.197 MB / 0.7795 GB, free: 52.42 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008557/1.722, allocations: 4.237 MB / 0.7836 GB, free: 49.55 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005373/1.727, allocations: 292.8 kB / 0.7839 GB, free: 49.31 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00126/1.729, allocations: 306.8 kB / 0.7842 GB, free: 49.02 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 464 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (639): * Single equations (assignments): 632 * 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%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005463/1.734, allocations: 2.049 MB / 0.7862 GB, free: 47.25 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006693/1.735, allocations: 264.5 kB / 0.7864 GB, free: 46.98 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01294/1.748, allocations: 4.708 MB / 0.791 GB, free: 43.14 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001051/1.748, allocations: 43.52 kB / 0.7911 GB, free: 43.1 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/1.748, allocations: 7.953 kB / 0.7911 GB, free: 43.09 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.529e-05/1.748, allocations: 7.828 kB / 0.7911 GB, free: 43.09 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02712/1.775, allocations: 10.61 MB / 0.8015 GB, free: 34.24 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-05/1.775, allocations: 11.95 kB / 0.8015 GB, free: 34.23 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003238/1.779, allocations: 366.6 kB / 0.8018 GB, free: 33.94 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00367/1.782, allocations: 0.6551 MB / 0.8025 GB, free: 33.54 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005621/1.783, allocations: 45.8 kB / 0.8025 GB, free: 33.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007137/1.79, allocations: 3.685 MB / 0.8061 GB, free: 30.22 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/1.79, allocations: 11.94 kB / 0.8061 GB, free: 30.21 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.017/1.807, allocations: 7.668 MB / 0.8136 GB, free: 23.27 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002248/1.809, allocations: 0.6518 MB / 0.8142 GB, free: 22.65 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008567/1.81, allocations: 40.06 kB / 0.8143 GB, free: 22.61 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002651/1.813, allocations: 149.8 kB / 0.8144 GB, free: 22.52 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007301/1.814, allocations: 128.2 kB / 0.8145 GB, free: 22.43 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002395/1.814, allocations: 64 kB / 0.8146 GB, free: 22.37 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003888/1.818, allocations: 1.636 MB / 0.8162 GB, free: 21.02 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.818, allocations: 0 / 0.8162 GB, free: 21.02 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006294/1.824, allocations: 0.9458 MB / 0.8171 GB, free: 20.08 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * 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.01806/1.842, allocations: 10.1 MB / 0.827 GB, free: 10.77 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01177/1.854, allocations: 5.333 MB / 0.8322 GB, free: 6.066 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/1.854, allocations: 4.375 kB / 0.8322 GB, free: 6.062 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004507/1.859, allocations: 2.016 MB / 0.8342 GB, free: 4.27 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002631/1.862, allocations: 325 kB / 0.8345 GB, free: 4 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4368/2.298, allocations: 99.78 MB / 0.9319 GB, free: 64.02 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007794/2.306, allocations: 3.326 MB / 0.9352 GB, free: 63.23 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006521/2.313, allocations: 1.824 MB / 0.9369 GB, free: 63.22 MB / 0.5105 GB Notification: Performance of SimCode: time 3.537e-06/2.313, allocations: 0 / 0.9369 GB, free: 63.22 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.237/6.55, allocations: 91.83 MB / 1.027 GB, free: 30.73 MB / 0.5105 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