Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009099/0.0009099, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 175.2 kB / 16.58 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.525/1.525, allocations: 205.4 MB / 222.8 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3325/0.3325, allocations: 43.55 MB / 314.6 MB, free: 8.77 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005318/0.000532, allocations: 18.97 kB / 384 MB, free: 7.926 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1099, allocations: 58.85 MB / 442.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002361/0.1123, allocations: 1.882 MB / 444.8 MB, free: 11.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.1135, allocations: 0.7375 MB / 445.5 MB, free: 10.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.1136, allocations: 7.938 kB / 445.5 MB, free: 10.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001398/0.1138, allocations: 27.78 kB / 445.5 MB, free: 10.29 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.1139, allocations: 59.59 kB / 445.6 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003164/0.1142, allocations: 95.81 kB / 445.7 MB, free: 10.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003156/0.1146, allocations: 295.3 kB / 446 MB, free: 9.848 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.1147, allocations: 76.62 kB / 446 MB, free: 9.773 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001805/0.1149, allocations: 119.6 kB / 446.2 MB, free: 9.656 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001987/0.1151, allocations: 135.5 kB / 446.3 MB, free: 9.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.227e-05/0.1152, allocations: 16 kB / 446.3 MB, free: 9.508 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.1153, allocations: 59.89 kB / 446.4 MB, free: 9.449 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.901e-05/0.1154, allocations: 51.81 kB / 446.4 MB, free: 9.398 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.809e-05/0.1154, allocations: 65.58 kB / 446.5 MB, free: 9.328 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002469/0.1157, allocations: 231.7 kB / 446.7 MB, free: 9.102 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1157, allocations: 0 / 446.7 MB, free: 9.102 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1157, allocations: 4 kB / 446.7 MB, free: 9.098 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.769e-06/0.1157, allocations: 0 / 446.7 MB, free: 9.098 MB / 382.1 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.0008152/0.1166, allocations: 0.5223 MB / 447.2 MB, free: 8.527 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.1166, allocations: 12.03 kB / 447.2 MB, free: 8.516 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.145e-05/0.1167, allocations: 54.53 kB / 447.3 MB, free: 8.453 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.165e-05/0.1167, allocations: 27.72 kB / 447.3 MB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000259/0.117, allocations: 234.7 kB / 447.6 MB, free: 8.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/0.117, allocations: 20.44 kB / 447.6 MB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.923e-05/0.1171, allocations: 23.94 kB / 447.6 MB, free: 8.113 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000507/0.1176, allocations: 263.2 kB / 447.9 MB, free: 7.852 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.1176, allocations: 3.906 kB / 447.9 MB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.828e-05/0.1177, allocations: 15.95 kB / 447.9 MB, free: 7.832 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.1177, allocations: 7.938 kB / 447.9 MB, free: 7.824 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004621/0.1182, allocations: 237.6 kB / 448.1 MB, free: 7.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.1195, allocations: 0.7519 MB / 448.9 MB, free: 6.789 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004943/0.12, allocations: 242.5 kB / 449.1 MB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002527/0.1203, allocations: 148.7 kB / 449.2 MB, free: 6.395 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.003e-05/0.1203, allocations: 4 kB / 449.3 MB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.1203, allocations: 38.56 kB / 449.3 MB, free: 6.344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 2.375e-06/0.1204, allocations: 0 / 449.3 MB, free: 6.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.003062/0.1234, allocations: 1.512 MB / 450.8 MB, free: 4.723 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.939e-05/0.1235, allocations: 55.41 kB / 450.9 MB, free: 4.656 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002128/0.1237, allocations: 194.6 kB / 451 MB, free: 4.453 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.1238, allocations: 37.64 kB / 451.1 MB, free: 4.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.522e-05/0.1239, allocations: 140.5 kB / 451.2 MB, free: 4.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.231e-05/0.124, allocations: 114.5 kB / 451.3 MB, free: 4.156 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.133e-05/0.124, allocations: 11.98 kB / 451.3 MB, free: 4.145 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1241, allocations: 326.8 kB / 451.7 MB, free: 3.816 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002514/0.1244, allocations: 127.9 kB / 451.8 MB, free: 3.691 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002844/0.1247, allocations: 167.1 kB / 452 MB, free: 3.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.1249, allocations: 119.8 kB / 452.1 MB, free: 3.398 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.125, allocations: 0 / 452.1 MB, free: 3.398 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000855/0.1258, allocations: 445.9 kB / 452.5 MB, free: 2.953 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.1258, allocations: 8.062 kB / 452.5 MB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1259, allocations: 3.938 kB / 452.5 MB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005194/0.1264, allocations: 232.7 kB / 452.7 MB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002208/0.1266, allocations: 59.91 kB / 452.8 MB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007589/0.1274, allocations: 0.7553 MB / 453.6 MB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002439/0.1276, allocations: 48.02 kB / 453.6 MB, free: 1.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.079e-05/0.1277, allocations: 16 kB / 453.6 MB, free: 1.809 MB / 382.1 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 (bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001653/0.1279, allocations: 146 kB / 453.8 MB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.302e-05/0.1279, allocations: 27.72 kB / 453.8 MB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.986e-05/0.128, allocations: 34.64 kB / 453.8 MB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.128, allocations: 7.953 kB / 453.8 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.128, allocations: 0 / 453.8 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.319e-06/0.1281, allocations: 0 / 453.8 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001611/0.1297, allocations: 0.9558 MB / 454.8 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1297, allocations: 0 / 454.8 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002094/0.1299, allocations: 43.97 kB / 454.8 MB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004053/0.1303, allocations: 228.6 kB / 455.1 MB, free: 300 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.707e-05/0.1304, allocations: 4.062 kB / 455.1 MB, free: 296 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2108/0.3412, allocations: 0.7113 MB / 455.8 MB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3412, allocations: 0 / 455.8 MB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.3423, allocations: 0.644 MB / 456.4 MB, free: 46.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.3424, allocations: 127.4 kB / 456.5 MB, free: 45.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.782e-05/0.3425, allocations: 17.91 kB / 456.6 MB, free: 45.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002386/0.3427, allocations: 50.72 kB / 456.6 MB, free: 45.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.3428, allocations: 53.31 kB / 456.7 MB, free: 45.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.131e-05/0.3428, allocations: 18.55 kB / 456.7 MB, free: 45.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001007/0.343, allocations: 147.4 kB / 456.8 MB, free: 45.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.343, allocations: 0 / 456.8 MB, free: 45.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003595/0.3433, allocations: 74 kB / 456.9 MB, free: 45.9 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * 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.001169/0.3445, allocations: 1.2 MB / 458.1 MB, free: 45.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006205/0.3451, allocations: 318.4 kB / 458.4 MB, free: 45.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3451, allocations: 0 / 458.4 MB, free: 45.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002885/0.3454, allocations: 170.2 kB / 458.6 MB, free: 45.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000379/0.3458, allocations: 29.95 kB / 458.6 MB, free: 45.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002954/0.3488, allocations: 1.944 MB / 460.5 MB, free: 44.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001442/0.349, allocations: 0.7521 MB / 461.3 MB, free: 43.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.629e-05/0.3491, allocations: 20.73 kB / 461.3 MB, free: 43.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.911e-05/0.3492, allocations: 66.25 kB / 461.4 MB, free: 43.89 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3492, allocations: 4 kB / 461.4 MB, free: 43.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01773/0.3669, allocations: 6.825 MB / 468.2 MB, free: 43.3 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001494/0.3671, allocations: 219 kB / 468.4 MB, free: 43.06 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/2.21, allocations: 0 / 468.4 MB, free: 43.06 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat does not exist to compare? outputFormat=mat