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.002145/0.002145, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.052/2.052, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001106/0.001105, allocations: 90.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3012/0.3012, allocations: 43.49 MB / 359.1 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.388e-05/3.406e-05, allocations: 4 kB / 425.4 MB, free: 23.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1136, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4662/0.5799, allocations: 88.21 MB / 0.559 GB, free: 15.33 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.5802, allocations: 75.73 kB / 0.5591 GB, free: 15.29 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02123/0.6014, allocations: 4.516 MB / 0.5635 GB, free: 11.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.6015, allocations: 0 / 0.5635 GB, free: 11.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.134e-05/0.6015, allocations: 4 kB / 0.5635 GB, free: 11.38 MB / 378.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.001206/0.6027, allocations: 0.5047 MB / 0.564 GB, free: 10.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.276e-05/0.6028, allocations: 12.03 kB / 0.564 GB, free: 10.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001061/0.6029, allocations: 63.91 kB / 0.5641 GB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.732e-05/0.603, allocations: 27.67 kB / 0.5641 GB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003911/0.6034, allocations: 236.3 kB / 0.5643 GB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.735e-05/0.6035, allocations: 15.94 kB / 0.5643 GB, free: 10.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.399e-05/0.6036, allocations: 22.06 kB / 0.5644 GB, free: 10.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006644/0.6042, allocations: 246.9 kB / 0.5646 GB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.523e-05/0.6043, allocations: 3.906 kB / 0.5646 GB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.048e-05/0.6043, allocations: 11.44 kB / 0.5646 GB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.6044, allocations: 4 kB / 0.5646 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005968/0.605, allocations: 202.5 kB / 0.5648 GB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002048/0.607, allocations: 0.7046 MB / 0.5655 GB, free: 9.527 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005706/0.6076, allocations: 207.9 kB / 0.5657 GB, free: 9.383 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003467/0.608, allocations: 136.9 kB / 0.5658 GB, free: 9.297 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.774e-05/0.6081, allocations: 12.12 kB / 0.5658 GB, free: 9.285 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.6081, allocations: 33.92 kB / 0.5659 GB, free: 9.246 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 3.277e-06/0.6081, allocations: 0 / 0.5659 GB, free: 9.246 MB / 378.7 MB Notification: Performance of matching and sorting (n=35): time 0.003388/0.6115, allocations: 1.165 MB / 0.567 GB, free: 8.203 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.6116, allocations: 55.41 kB / 0.5671 GB, free: 8.137 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002479/0.6119, allocations: 163.9 kB / 0.5672 GB, free: 7.984 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.007e-05/0.612, allocations: 40.75 kB / 0.5673 GB, free: 7.945 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001196/0.6121, allocations: 189 kB / 0.5674 GB, free: 7.773 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/0.6123, allocations: 124.5 kB / 0.5676 GB, free: 7.668 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.922e-05/0.6123, allocations: 3.188 kB / 0.5676 GB, free: 7.668 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.6125, allocations: 330.2 kB / 0.5679 GB, free: 7.344 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003109/0.6128, allocations: 110.2 kB / 0.568 GB, free: 7.277 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00036/0.6132, allocations: 151.9 kB / 0.5681 GB, free: 7.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002948/0.6135, allocations: 99.52 kB / 0.5682 GB, free: 7.098 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.6135, allocations: 0 / 0.5682 GB, free: 7.098 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001116/0.6146, allocations: 373.1 kB / 0.5686 GB, free: 6.828 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/0.6147, allocations: 8 kB / 0.5686 GB, free: 6.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/0.6147, allocations: 3.938 kB / 0.5686 GB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006904/0.6154, allocations: 188.8 kB / 0.5688 GB, free: 6.672 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000408/0.6158, allocations: 59.28 kB / 0.5688 GB, free: 6.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.6169, allocations: 0.7156 MB / 0.5695 GB, free: 5.953 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005092/0.6174, allocations: 54.73 kB / 0.5696 GB, free: 5.906 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.855e-05/0.6175, allocations: 11.98 kB / 0.5696 GB, free: 5.895 MB / 378.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 () * 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.0001709/0.6177, allocations: 127.5 kB / 0.5697 GB, free: 5.777 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.6178, allocations: 23.72 kB / 0.5697 GB, free: 5.754 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001392/0.6192, allocations: 435.7 kB / 0.5702 GB, free: 5.441 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.6192, allocations: 4 kB / 0.5702 GB, free: 5.438 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.6193, allocations: 0 / 0.5702 GB, free: 5.438 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.6193, allocations: 4 kB / 0.5702 GB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.6216, allocations: 0.9204 MB / 0.5711 GB, free: 4.637 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.857e-05/0.6216, allocations: 7.984 kB / 0.5711 GB, free: 4.629 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004523/0.6221, allocations: 43.92 kB / 0.5711 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005958/0.6227, allocations: 166.8 kB / 0.5713 GB, free: 4.457 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.38e-05/0.6228, allocations: 11.42 kB / 0.5713 GB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008845/0.6237, allocations: 0.6774 MB / 0.5719 GB, free: 3.809 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.6237, allocations: 4.031 kB / 0.5719 GB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.6253, allocations: 0.6223 MB / 0.5725 GB, free: 3.297 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000209/0.6255, allocations: 122.9 kB / 0.5727 GB, free: 3.172 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.936e-05/0.6256, allocations: 11.14 kB / 0.5727 GB, free: 3.164 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005175/0.6262, allocations: 54.58 kB / 0.5727 GB, free: 3.117 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.6264, allocations: 54.58 kB / 0.5728 GB, free: 3.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-05/0.6264, allocations: 11.98 kB / 0.5728 GB, free: 3.059 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001827/0.6266, allocations: 142.7 kB / 0.5729 GB, free: 2.938 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6266, allocations: 0 / 0.5729 GB, free: 2.938 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005458/0.6272, allocations: 81.55 kB / 0.573 GB, free: 2.867 MB / 378.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) * 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.002182/0.6294, allocations: 1.331 MB / 0.5743 GB, free: 1.652 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00106/0.6305, allocations: 306.2 kB / 0.5746 GB, free: 1.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6305, allocations: 4.188 kB / 0.5746 GB, free: 1.426 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000482/0.631, allocations: 160 kB / 0.5748 GB, free: 1.312 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004581/0.6315, allocations: 30.77 kB / 0.5748 GB, free: 1.289 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003374/0.6349, allocations: 0.7732 MB / 0.5755 GB, free: 0.5352 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.6354, allocations: 0.7566 MB / 0.5763 GB, free: 15.75 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.6356, allocations: 68.09 kB / 0.5763 GB, free: 15.73 MB / 394.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6356, allocations: 0 / 0.5763 GB, free: 15.73 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.727/3.362, allocations: 4.941 MB / 0.5812 GB, free: 10.84 MB / 394.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