Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.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.FreeMotion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",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.001466/0.001466, allocations: 178.4 kB / 8.362 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.033/2.033, 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.001077/0.001077, allocations: 96.03 kB / 262.1 MB, free: 13.87 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.2995/0.2995, allocations: 43.5 MB / 353.6 MB, free: 2.266 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.177e-05/2.188e-05, allocations: 4 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4788/0.4789, allocations: 58.85 MB / 477.2 MB, free: 5.145 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2212/0.7001, allocations: 101.6 MB / 0.5652 GB, free: 13.56 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003073/0.7005, allocations: 79.45 kB / 0.5653 GB, free: 13.48 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.7058/1.406, allocations: 86.09 MB / 0.6494 GB, free: 111.1 MB / 475.1 MB Notification: Performance of FrontEnd: time 3.096e-06/1.406, allocations: 0 / 0.6494 GB, free: 111.1 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.000233/1.407, allocations: 80.77 kB / 0.6495 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: 1560 * Number of variables: 1560 Notification: Performance of Generate backend data structure: time 0.01641/1.423, allocations: 3.715 MB / 0.6531 GB, free: 109.4 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.03e-05/1.423, allocations: 9.281 kB / 0.6531 GB, free: 109.4 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02953/1.453, allocations: 3.655 MB / 0.6567 GB, free: 109.2 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01996/1.473, allocations: 4.944 MB / 0.6615 GB, free: 108.7 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003718/1.473, allocations: 123.9 kB / 0.6616 GB, free: 108.7 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002912/1.476, allocations: 223.4 kB / 0.6618 GB, free: 108.7 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01864/1.495, allocations: 7.284 MB / 0.6689 GB, free: 108.6 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02773/1.523, allocations: 9.587 MB / 0.6783 GB, free: 106.5 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002608/1.523, allocations: 33.78 kB / 0.6783 GB, free: 106.5 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002591/1.525, allocations: 17.44 kB / 0.6784 GB, free: 106.5 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002768/1.528, allocations: 1.188 MB / 0.6795 GB, free: 106.3 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07448/1.603, allocations: 34.11 MB / 0.7128 GB, free: 85.92 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007111/1.61, allocations: 4.042 MB / 0.7168 GB, free: 83.65 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004322/1.614, allocations: 2.123 MB / 0.7188 GB, free: 82.85 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00161/1.616, allocations: 1.325 MB / 0.7201 GB, free: 81.47 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.16e-05/1.616, allocations: 60.55 kB / 0.7202 GB, free: 81.4 MB / 475.1 MB Notification: Performance of pre-optimization done (n=247): time 6.963e-06/1.616, allocations: 0 / 0.7202 GB, free: 81.4 MB / 475.1 MB Notification: Performance of matching and sorting (n=264): time 0.05135/1.668, allocations: 14.79 MB / 0.7346 GB, free: 68.62 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.848e-05/1.668, allocations: 73.41 kB / 0.7347 GB, free: 68.53 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005041/1.673, allocations: 2.394 MB / 0.737 GB, free: 66.43 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000635/1.673, allocations: 33.64 kB / 0.7371 GB, free: 66.39 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002337/1.676, allocations: 2.822 MB / 0.7398 GB, free: 63.81 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001581/1.677, allocations: 0.9512 MB / 0.7408 GB, free: 62.95 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007054/1.678, allocations: 0 / 0.7408 GB, free: 62.95 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.000455/1.679, allocations: 0.5717 MB / 0.7413 GB, free: 62.45 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005393/1.684, allocations: 2.358 MB / 0.7436 GB, free: 60.34 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007935/1.692, allocations: 5.631 MB / 0.7491 GB, free: 53.44 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008044/1.7, allocations: 3.672 MB / 0.7527 GB, free: 50.34 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000119/1.7, allocations: 36 kB / 0.7527 GB, free: 50.3 MB / 475.1 MB Notification: Performance of matching and sorting (n=801) (initialization): time 0.03487/1.735, allocations: 8.967 MB / 0.7615 GB, free: 41.52 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/1.735, allocations: 52 kB / 0.7615 GB, free: 41.47 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02194/1.757, allocations: 4.486 MB / 0.7659 GB, free: 36.97 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01883/1.776, allocations: 2.051 MB / 0.7679 GB, free: 34.91 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008553/1.785, allocations: 1.384 MB / 0.7693 GB, free: 33.52 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/1.795, allocations: 4.8 MB / 0.774 GB, free: 28.5 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006812/1.802, allocations: 291.6 kB / 0.7742 GB, free: 28.21 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00155/1.803, allocations: 352 kB / 0.7746 GB, free: 27.87 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 527 * Number of states: 0 () * Number of discrete variables: 24 (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],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (739): * Single equations (assignments): 727 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002203/1.806, allocations: 392.2 kB / 0.775 GB, free: 27.47 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01565/1.821, allocations: 4.713 MB / 0.7796 GB, free: 22.7 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001191/1.823, allocations: 280.3 kB / 0.7798 GB, free: 22.43 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0165/1.839, allocations: 5.231 MB / 0.7849 GB, free: 17.12 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01624/1.855, allocations: 4.514 MB / 0.7893 GB, free: 12.56 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.84e-05/1.855, allocations: 3.938 kB / 0.7893 GB, free: 12.55 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.561e-05/1.856, allocations: 11.95 kB / 0.7894 GB, free: 12.54 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03992/1.895, allocations: 13.55 MB / 0.8026 GB, free: 14.8 MB / 491.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.062e-05/1.896, allocations: 15.94 kB / 0.8026 GB, free: 14.79 MB / 491.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003994/1.9, allocations: 431.3 kB / 0.803 GB, free: 14.36 MB / 491.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008163/1.908, allocations: 1.178 MB / 0.8042 GB, free: 13.17 MB / 491.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006098/1.908, allocations: 35.97 kB / 0.8042 GB, free: 13.14 MB / 491.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008169/1.917, allocations: 4.335 MB / 0.8084 GB, free: 8.582 MB / 491.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001555/1.918, allocations: 1.403 MB / 0.8098 GB, free: 7.059 MB / 491.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02749/1.946, allocations: 8.763 MB / 0.8184 GB, free: 13.84 MB / 0.4952 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/1.947, allocations: 333.4 kB / 0.8187 GB, free: 13.5 MB / 0.4952 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001046/1.948, allocations: 23.98 kB / 0.8187 GB, free: 13.47 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003469/1.952, allocations: 163.7 kB / 0.8189 GB, free: 13.31 MB / 0.4952 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007851/1.952, allocations: 169.6 kB / 0.819 GB, free: 13.15 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003059/1.953, allocations: 79.97 kB / 0.8191 GB, free: 13.07 MB / 0.4952 GB Notification: Performance of sorting global known variables: time 0.004195/1.957, allocations: 1.569 MB / 0.8206 GB, free: 11.5 MB / 0.4952 GB Notification: Performance of sort global known variables: time 9.72e-07/1.957, allocations: 4 kB / 0.8206 GB, free: 11.49 MB / 0.4952 GB Notification: Performance of remove unused functions: time 0.00804/1.965, allocations: 0.9648 MB / 0.8216 GB, free: 10.53 MB / 0.4952 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (205): * Single equations (assignments): 195 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3866/2.352, allocations: 11.97 MB / 0.8333 GB, free: 129.3 MB / 0.4952 GB Notification: Performance of simCode: created initialization part: time 0.0181/2.37, allocations: 6.276 MB / 0.8394 GB, free: 128.9 MB / 0.4952 GB Notification: Performance of simCode: created event and clocks part: time 1.534e-05/2.37, allocations: 0.9688 kB / 0.8394 GB, free: 128.9 MB / 0.4952 GB Notification: Performance of simCode: created simulation system equations: time 0.008809/2.379, allocations: 2.831 MB / 0.8422 GB, free: 128.4 MB / 0.4952 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002804/2.382, allocations: 248.4 kB / 0.8424 GB, free: 128.4 MB / 0.4952 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03613/2.418, allocations: 10.87 MB / 0.853 GB, free: 126.4 MB / 0.4952 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007179/2.425, allocations: 3.407 MB / 0.8563 GB, free: 125.6 MB / 0.4952 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00511/2.43, allocations: 1.876 MB / 0.8582 GB, free: 125.6 MB / 0.4952 GB Notification: Performance of SimCode: time 1.643e-06/2.43, allocations: 0 / 0.8582 GB, free: 125.6 MB / 0.4952 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.544/6.974, allocations: 149.8 MB / 1.005 GB, free: 10.48 MB / 0.4952 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat