Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.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.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3",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.001506/0.001506, allocations: 185.2 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.226/2.226, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001138/0.001138, allocations: 83.56 kB / 270.9 MB, free: 8.379 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.5265/0.5265, allocations: 43.55 MB / 362.7 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005459/0.0005461, allocations: 16 kB / 431.5 MB, free: 6.07 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1553, allocations: 58.84 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6385/0.7939, allocations: 109.1 MB / 0.5854 GB, free: 9.402 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003035/0.7942, allocations: 75.97 kB / 0.5854 GB, free: 9.328 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7592/1.553, allocations: 98.96 MB / 0.6821 GB, free: 91.66 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.806e-06/1.553, allocations: 0 / 0.6821 GB, free: 91.66 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002491/1.554, allocations: 89.84 kB / 0.6822 GB, free: 91.66 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: 1888 * Number of variables: 1888 Notification: Performance of Generate backend data structure: time 0.0256/1.579, allocations: 4.848 MB / 0.6869 GB, free: 89.73 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.477e-05/1.579, allocations: 11.33 kB / 0.6869 GB, free: 89.73 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004943/1.584, allocations: 0.9469 MB / 0.6878 GB, free: 89.64 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0274/1.612, allocations: 3.629 MB / 0.6914 GB, free: 89.32 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02/1.632, allocations: 4.952 MB / 0.6962 GB, free: 88.76 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006337/1.633, allocations: 380.7 kB / 0.6966 GB, free: 88.75 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003395/1.636, allocations: 499.9 kB / 0.6971 GB, free: 88.74 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04096/1.677, allocations: 12.33 MB / 0.7091 GB, free: 87.21 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003868/1.677, allocations: 29.84 kB / 0.7091 GB, free: 87.21 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003056/1.681, allocations: 229.2 kB / 0.7093 GB, free: 87.21 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00351/1.684, allocations: 1.341 MB / 0.7107 GB, free: 87.2 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03777/1.722, allocations: 11.63 MB / 0.722 GB, free: 86.71 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08645/1.808, allocations: 42.32 MB / 0.7633 GB, free: 60.89 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02426/1.833, allocations: 5.077 MB / 0.7683 GB, free: 58.55 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02282/1.856, allocations: 6.917 MB / 0.7751 GB, free: 54.57 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.9e-05/1.856, allocations: 52.34 kB / 0.7751 GB, free: 54.52 MB / 490.7 MB Notification: Performance of pre-optimization done (n=235): time 9.398e-06/1.856, allocations: 0 / 0.7751 GB, free: 54.52 MB / 490.7 MB Notification: Performance of matching and sorting (n=244): time 0.07201/1.928, allocations: 16.99 MB / 0.7917 GB, free: 47.08 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/1.928, allocations: 73.41 kB / 0.7918 GB, free: 46.99 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007083/1.935, allocations: 2.869 MB / 0.7946 GB, free: 44.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006196/1.936, allocations: 57.7 kB / 0.7946 GB, free: 44.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002772/1.939, allocations: 3.286 MB / 0.7978 GB, free: 41.55 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001667/1.94, allocations: 0.9077 MB / 0.7987 GB, free: 40.75 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001004/1.941, allocations: 121.4 kB / 0.7988 GB, free: 40.63 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000654/1.942, allocations: 0.5813 MB / 0.7994 GB, free: 40.12 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006588/1.949, allocations: 2.396 MB / 0.8017 GB, free: 38.08 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008577/1.957, allocations: 5.781 MB / 0.8074 GB, free: 31.09 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008627/1.966, allocations: 3.709 MB / 0.811 GB, free: 27.76 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001122/1.966, allocations: 32 kB / 0.811 GB, free: 27.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=812) (initialization): time 0.02553/1.992, allocations: 8.887 MB / 0.8197 GB, free: 20.05 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001033/1.992, allocations: 60.22 kB / 0.8198 GB, free: 19.99 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001791/1.992, allocations: 120 kB / 0.8199 GB, free: 19.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006111/1.998, allocations: 1.145 MB / 0.821 GB, free: 19.08 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008636/2.007, allocations: 1.394 MB / 0.8224 GB, free: 17.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008956/2.016, allocations: 4.65 MB / 0.8269 GB, free: 13.69 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006447/2.022, allocations: 334.7 kB / 0.8272 GB, free: 13.42 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00147/2.024, allocations: 360.7 kB / 0.8276 GB, free: 13.07 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 541 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (751): * Single equations (assignments): 743 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 5} Notification: Performance of prepare postOptimizeDAE: time 0.006512/2.03, allocations: 2.432 MB / 0.83 GB, free: 10.96 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007665/2.031, allocations: 308 kB / 0.8303 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01284/2.044, allocations: 4.477 MB / 0.8346 GB, free: 6.918 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001208/2.044, allocations: 47.56 kB / 0.8347 GB, free: 6.875 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/2.044, allocations: 0 / 0.8347 GB, free: 6.875 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-05/2.044, allocations: 14.36 kB / 0.8347 GB, free: 6.871 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03585/2.08, allocations: 10.63 MB / 0.8451 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.267e-05/2.08, allocations: 8 kB / 0.8451 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003832/2.084, allocations: 399.3 kB / 0.8454 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0038/2.088, allocations: 0.67 MB / 0.8461 GB, free: 11.11 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006575/2.089, allocations: 53.78 kB / 0.8462 GB, free: 11.06 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004741/2.093, allocations: 2.459 MB / 0.8486 GB, free: 8.469 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/2.094, allocations: 7.938 kB / 0.8486 GB, free: 8.461 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01947/2.113, allocations: 7.327 MB / 0.8557 GB, free: 0.8633 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/2.114, allocations: 360.2 kB / 0.8561 GB, free: 0.4922 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001346/2.116, allocations: 47.59 kB / 0.8561 GB, free: 460 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003231/2.119, allocations: 144.7 kB / 0.8562 GB, free: 316 kB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008457/2.12, allocations: 135.8 kB / 0.8564 GB, free: 180 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002824/2.12, allocations: 63.98 kB / 0.8564 GB, free: 116 kB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.3663/2.486, allocations: 1.945 MB / 0.8583 GB, free: 96.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.012e-06/2.486, allocations: 0.7812 kB / 0.8583 GB, free: 96.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.007615/2.494, allocations: 1.086 MB / 0.8594 GB, free: 96.46 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (197): * Single equations (assignments): 188 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * 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.02068/2.515, allocations: 9.289 MB / 0.8685 GB, free: 93.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01511/2.53, allocations: 5.871 MB / 0.8742 GB, free: 93.55 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.411e-05/2.53, allocations: 0 / 0.8742 GB, free: 93.55 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007462/2.538, allocations: 2.437 MB / 0.8766 GB, free: 93.23 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003824/2.541, allocations: 420.1 kB / 0.877 GB, free: 93.22 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1141/2.656, allocations: 117 MB / 0.9912 GB, free: 27.67 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01093/2.667, allocations: 3.873 MB / 0.995 GB, free: 26.26 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006255/2.673, allocations: 2.194 MB / 0.9972 GB, free: 24.48 MB / 0.5261 GB Notification: Performance of SimCode: time 3.517e-06/2.673, allocations: 0 / 0.9972 GB, free: 24.48 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.541/8.214, allocations: 140.8 MB / 1.135 GB, free: 112.9 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit3.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3_res.mat does not exist to compare? outputFormat=mat