Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",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.002393/0.002392, allocations: 186.1 kB / 16.4 MB, free: 5.746 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.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.001155/0.001154, allocations: 98.03 kB / 270.9 MB, free: 8.367 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.5739/0.5739, allocations: 43.56 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004802/0.0004803, allocations: 16 kB / 431.5 MB, free: 6.082 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.137, allocations: 58.84 MB / 490.3 MB, free: 11.16 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4674/0.6045, allocations: 88.3 MB / 0.565 GB, free: 14.36 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.6048, allocations: 75.97 kB / 0.5651 GB, free: 14.29 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02158/0.6264, allocations: 4.536 MB / 0.5696 GB, free: 9.777 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.6265, allocations: 0 / 0.5696 GB, free: 9.777 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.98e-05/0.6265, allocations: 4 kB / 0.5696 GB, free: 9.773 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001253/0.6278, allocations: 0.529 MB / 0.5701 GB, free: 9.203 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.6278, allocations: 12.03 kB / 0.5701 GB, free: 9.191 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.637e-05/0.6279, allocations: 61.98 kB / 0.5701 GB, free: 9.125 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.648e-05/0.628, allocations: 24.28 kB / 0.5702 GB, free: 9.102 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003689/0.6284, allocations: 227.4 kB / 0.5704 GB, free: 8.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.127e-05/0.6285, allocations: 25.14 kB / 0.5704 GB, free: 8.816 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.756e-05/0.6286, allocations: 24 kB / 0.5704 GB, free: 8.793 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007832/0.6294, allocations: 255.1 kB / 0.5707 GB, free: 8.539 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.217e-05/0.6294, allocations: 4.938 kB / 0.5707 GB, free: 8.535 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.75e-05/0.6295, allocations: 12 kB / 0.5707 GB, free: 8.523 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.6295, allocations: 7.938 kB / 0.5707 GB, free: 8.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008463/0.6303, allocations: 213.6 kB / 0.5709 GB, free: 8.312 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002068/0.6324, allocations: 0.7169 MB / 0.5716 GB, free: 7.543 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006868/0.6332, allocations: 219.3 kB / 0.5718 GB, free: 7.32 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.754e-05/0.6332, allocations: 12.19 kB / 0.5718 GB, free: 7.309 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/0.6333, allocations: 38.73 kB / 0.5719 GB, free: 7.262 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 3.547e-06/0.6333, allocations: 0 / 0.5719 GB, free: 7.262 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.005453/0.6388, allocations: 1.493 MB / 0.5733 GB, free: 5.66 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.6389, allocations: 55.41 kB / 0.5734 GB, free: 5.594 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002568/0.6391, allocations: 165.6 kB / 0.5735 GB, free: 5.426 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.716e-05/0.6392, allocations: 33.7 kB / 0.5736 GB, free: 5.387 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.6393, allocations: 195.2 kB / 0.5737 GB, free: 5.195 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.6395, allocations: 118.4 kB / 0.5739 GB, free: 5.078 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.681e-05/0.6395, allocations: 4 kB / 0.5739 GB, free: 5.074 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.6397, allocations: 334.8 kB / 0.5742 GB, free: 4.738 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004138/0.6401, allocations: 111.7 kB / 0.5743 GB, free: 4.629 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004637/0.6406, allocations: 163.3 kB / 0.5744 GB, free: 4.457 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003889/0.641, allocations: 104 kB / 0.5745 GB, free: 4.355 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.641, allocations: 0 / 0.5745 GB, free: 4.355 MB / 394.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001403/0.6424, allocations: 395.2 kB / 0.5749 GB, free: 3.961 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.228e-05/0.6425, allocations: 8 kB / 0.5749 GB, free: 3.953 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/0.6426, allocations: 0 / 0.5749 GB, free: 3.953 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007408/0.6433, allocations: 192.6 kB / 0.5751 GB, free: 3.762 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004351/0.6438, allocations: 56.03 kB / 0.5752 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.645, allocations: 0.72 MB / 0.5759 GB, free: 2.961 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005194/0.6455, allocations: 52.05 kB / 0.5759 GB, free: 2.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.809e-05/0.6456, allocations: 12 kB / 0.5759 GB, free: 2.898 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,bearingFriction1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.000309/0.6459, allocations: 145.8 kB / 0.5761 GB, free: 2.746 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.064e-05/0.646, allocations: 19.72 kB / 0.5761 GB, free: 2.727 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001651/0.6476, allocations: 460.7 kB / 0.5765 GB, free: 2.27 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.6477, allocations: 4 kB / 0.5765 GB, free: 2.266 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.6477, allocations: 0.875 kB / 0.5765 GB, free: 2.266 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.6477, allocations: 3.984 kB / 0.5765 GB, free: 2.262 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002615/0.6503, allocations: 0.9338 MB / 0.5774 GB, free: 1.258 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/0.6504, allocations: 4 kB / 0.5775 GB, free: 1.254 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004437/0.6508, allocations: 51.92 kB / 0.5775 GB, free: 1.203 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006389/0.6515, allocations: 176.7 kB / 0.5777 GB, free: 1.027 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.061e-05/0.6516, allocations: 12.05 kB / 0.5777 GB, free: 1.016 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009689/0.6525, allocations: 0.6811 MB / 0.5783 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.6526, allocations: 0 / 0.5783 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002039/0.6546, allocations: 0.6507 MB / 0.579 GB, free: 15.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002315/0.6549, allocations: 124.8 kB / 0.5791 GB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.602e-05/0.655, allocations: 15.95 kB / 0.5791 GB, free: 15.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000486/0.6555, allocations: 47.95 kB / 0.5792 GB, free: 15.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001915/0.6557, allocations: 55.95 kB / 0.5792 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/0.6557, allocations: 15.98 kB / 0.5792 GB, free: 15.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001918/0.6559, allocations: 135.1 kB / 0.5794 GB, free: 15.21 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.656, allocations: 4 kB / 0.5794 GB, free: 15.21 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005586/0.6565, allocations: 87.88 kB / 0.5794 GB, free: 15.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002594/0.6591, allocations: 1.341 MB / 0.5808 GB, free: 13.74 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.6604, allocations: 340.6 kB / 0.5811 GB, free: 13.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.6604, allocations: 0 / 0.5811 GB, free: 13.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005709/0.661, allocations: 161.6 kB / 0.5812 GB, free: 13.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004666/0.6615, allocations: 33.47 kB / 0.5813 GB, free: 13.21 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006671/0.6682, allocations: 2.404 MB / 0.5836 GB, free: 10.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.6687, allocations: 0.7566 MB / 0.5844 GB, free: 9.949 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001926/0.6689, allocations: 67.41 kB / 0.5844 GB, free: 9.883 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6689, allocations: 4 kB / 0.5844 GB, free: 9.879 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.87/3.539, allocations: 4.944 MB / 0.5892 GB, free: 4.949 MB / 410.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat