Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2",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.002536/0.002536, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.416/2.416, allocations: 205.4 MB / 222.5 MB, free: 9.148 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.00115/0.00115, allocations: 93.73 kB / 270.9 MB, free: 8.391 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.5203/0.5203, allocations: 43.55 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000497/0.0004969, allocations: 8 kB / 431.5 MB, free: 6.109 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1342, allocations: 58.84 MB / 490.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4717/0.606, allocations: 86.96 MB / 0.5637 GB, free: 15.65 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003041/0.6064, allocations: 67.97 kB / 0.5638 GB, free: 15.58 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02849/0.6349, allocations: 6.091 MB / 0.5697 GB, free: 9.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.986e-06/0.6349, allocations: 0 / 0.5697 GB, free: 9.52 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.404e-05/0.635, allocations: 4 kB / 0.5698 GB, free: 9.516 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001383/0.6364, allocations: 0.5876 MB / 0.5703 GB, free: 8.887 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.626e-05/0.6365, allocations: 8.031 kB / 0.5703 GB, free: 8.879 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001668/0.6366, allocations: 70.53 kB / 0.5704 GB, free: 8.801 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001131/0.6368, allocations: 43.52 kB / 0.5704 GB, free: 8.758 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000439/0.6372, allocations: 267.2 kB / 0.5707 GB, free: 8.453 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.807e-05/0.6373, allocations: 24.94 kB / 0.5707 GB, free: 8.43 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.6374, allocations: 47.91 kB / 0.5708 GB, free: 8.383 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.6384, allocations: 387.2 kB / 0.5711 GB, free: 7.969 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.892e-05/0.6385, allocations: 4 kB / 0.5711 GB, free: 7.965 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.713e-05/0.6386, allocations: 19.95 kB / 0.5712 GB, free: 7.945 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.6386, allocations: 11.98 kB / 0.5712 GB, free: 7.934 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008246/0.6394, allocations: 227.7 kB / 0.5714 GB, free: 7.711 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00381/0.6433, allocations: 1.726 MB / 0.5731 GB, free: 5.883 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007438/0.6441, allocations: 266.3 kB / 0.5733 GB, free: 5.559 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.773e-05/0.6442, allocations: 4 kB / 0.5733 GB, free: 5.555 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.407e-05/0.6442, allocations: 50.62 kB / 0.5734 GB, free: 5.496 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 3.086e-06/0.6442, allocations: 0 / 0.5734 GB, free: 5.496 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.00116/0.6454, allocations: 269.4 kB / 0.5736 GB, free: 5.227 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001443/0.6456, allocations: 217.6 kB / 0.5738 GB, free: 4.965 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004084/0.646, allocations: 238 kB / 0.5741 GB, free: 4.727 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.133e-05/0.6461, allocations: 30.47 kB / 0.5741 GB, free: 4.691 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/0.6463, allocations: 301.8 kB / 0.5744 GB, free: 4.395 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.6465, allocations: 114.4 kB / 0.5745 GB, free: 4.281 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.548e-05/0.6465, allocations: 12 kB / 0.5745 GB, free: 4.27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.6467, allocations: 342.8 kB / 0.5748 GB, free: 3.926 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004128/0.6471, allocations: 93.27 kB / 0.5749 GB, free: 3.836 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000641/0.6478, allocations: 436.7 kB / 0.5753 GB, free: 3.246 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005238/0.6483, allocations: 166.8 kB / 0.5755 GB, free: 3.086 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.159e-05/0.6483, allocations: 4 kB / 0.5755 GB, free: 3.082 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001491/0.6498, allocations: 0.5252 MB / 0.576 GB, free: 2.551 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.6499, allocations: 12 kB / 0.576 GB, free: 2.539 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-05/0.65, allocations: 12 kB / 0.576 GB, free: 2.527 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.142e-05/0.65, allocations: 16 kB / 0.5761 GB, free: 2.512 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008967/0.6509, allocations: 147.8 kB / 0.5762 GB, free: 2.367 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.636e-05/0.651, allocations: 23.92 kB / 0.5762 GB, free: 2.344 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005334/0.6515, allocations: 67.73 kB / 0.5763 GB, free: 2.277 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.85e-05/0.6516, allocations: 36 kB / 0.5763 GB, free: 2.242 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003222/0.652, allocations: 181.5 kB / 0.5765 GB, free: 2.055 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002166/0.6522, allocations: 31.62 kB / 0.5765 GB, free: 2.023 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001117/0.6523, allocations: 37.78 kB / 0.5766 GB, free: 1.988 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.6523, allocations: 4 kB / 0.5766 GB, free: 1.984 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.749e-06/0.6523, allocations: 0 / 0.5766 GB, free: 1.984 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.6524, allocations: 7.984 kB / 0.5766 GB, free: 1.977 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002137/0.6545, allocations: 0.6436 MB / 0.5772 GB, free: 1.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.6546, allocations: 0 / 0.5772 GB, free: 1.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009949/0.6556, allocations: 95.88 kB / 0.5773 GB, free: 1.176 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.687e-05/0.6556, allocations: 4 kB / 0.5773 GB, free: 1.172 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.802e-05/0.6557, allocations: 8.625 kB / 0.5773 GB, free: 1.164 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.869e-06/0.6557, allocations: 4.062 kB / 0.5773 GB, free: 1.16 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.6557, allocations: 4 kB / 0.5773 GB, free: 1.156 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/0.6571, allocations: 0.9422 MB / 0.5782 GB, free: 136 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.6573, allocations: 108.9 kB / 0.5783 GB, free: 8 kB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.6574, allocations: 16 kB / 0.5783 GB, free: 15.99 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005089/0.6579, allocations: 8 kB / 0.5784 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.925e-05/0.658, allocations: 31.8 kB / 0.5784 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.178e-05/0.6581, allocations: 15.98 kB / 0.5784 GB, free: 15.94 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002823/0.6584, allocations: 178 kB / 0.5786 GB, free: 15.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6584, allocations: 0 / 0.5786 GB, free: 15.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001098/0.6595, allocations: 103.8 kB / 0.5787 GB, free: 15.66 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001926/0.6614, allocations: 2.039 MB / 0.5807 GB, free: 13.56 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009788/0.6625, allocations: 286.3 kB / 0.5809 GB, free: 13.28 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.6625, allocations: 0 / 0.5809 GB, free: 13.28 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003297/0.6629, allocations: 103.8 kB / 0.581 GB, free: 13.18 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001059/0.6639, allocations: 61.34 kB / 0.5811 GB, free: 13.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01037/0.6743, allocations: 10.93 MB / 0.5918 GB, free: 1.898 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005401/0.6749, allocations: 0.8033 MB / 0.5925 GB, free: 1.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002937/0.6753, allocations: 119.4 kB / 0.5927 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6753, allocations: 0 / 0.5927 GB, free: 0.9531 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.585/3.26, allocations: 5.561 MB / 0.5981 GB, free: 11.41 MB / 426.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat