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.001534/0.001534, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.135/2.135, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 86.92 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3003/0.3003, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.891e-05/1.899e-05, allocations: 0 / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4826/0.4827, allocations: 58.85 MB / 477.2 MB, free: 5.176 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2431/0.7258, allocations: 87.55 MB / 0.5515 GB, free: 11.66 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003691/0.7263, allocations: 79.45 kB / 0.5516 GB, free: 11.59 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03095/0.7572, allocations: 4.487 MB / 0.5559 GB, free: 7.086 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.624e-06/0.7573, allocations: 0 / 0.5559 GB, free: 7.086 MB / 395.1 MB Notification: Performance of Transformations before backend: time 2.629e-05/0.7573, allocations: 4 kB / 0.5559 GB, free: 7.082 MB / 395.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.001781/0.7591, allocations: 0.4989 MB / 0.5564 GB, free: 6.539 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.05e-05/0.7592, allocations: 16.03 kB / 0.5565 GB, free: 6.523 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002026/0.7595, allocations: 27.67 kB / 0.5565 GB, free: 6.496 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005786/0.7601, allocations: 241.5 kB / 0.5567 GB, free: 6.223 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.923e-05/0.7601, allocations: 15.92 kB / 0.5567 GB, free: 6.207 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.7603, allocations: 12 kB / 0.5567 GB, free: 6.195 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009042/0.7612, allocations: 180.8 kB / 0.5569 GB, free: 6.02 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009036/0.7621, allocations: 214.4 kB / 0.5571 GB, free: 5.805 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.279e-05/0.7622, allocations: 3.906 kB / 0.5571 GB, free: 5.801 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.319e-05/0.7623, allocations: 0 / 0.5571 GB, free: 5.801 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.7623, allocations: 8 kB / 0.5571 GB, free: 5.793 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003088/0.7654, allocations: 0.6505 MB / 0.5578 GB, free: 5.102 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008305/0.7663, allocations: 191.1 kB / 0.5579 GB, free: 4.906 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005077/0.7669, allocations: 121.3 kB / 0.5581 GB, free: 4.785 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.958e-05/0.767, allocations: 16.17 kB / 0.5581 GB, free: 4.77 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.455e-05/0.7671, allocations: 38.75 kB / 0.5581 GB, free: 4.723 MB / 395.1 MB Notification: Performance of pre-optimization done (n=27): time 4.348e-06/0.7671, allocations: 0 / 0.5581 GB, free: 4.723 MB / 395.1 MB Notification: Performance of matching and sorting (n=35): time 0.005849/0.773, allocations: 1.109 MB / 0.5592 GB, free: 3.516 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.266e-05/0.7731, allocations: 55.41 kB / 0.5592 GB, free: 3.449 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002893/0.7734, allocations: 136.9 kB / 0.5594 GB, free: 3.309 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 8.863e-05/0.7735, allocations: 29.7 kB / 0.5594 GB, free: 3.273 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001782/0.7737, allocations: 195.5 kB / 0.5596 GB, free: 3.082 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002096/0.7739, allocations: 110.4 kB / 0.5597 GB, free: 2.973 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.239e-05/0.774, allocations: 4 kB / 0.5597 GB, free: 2.969 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.7742, allocations: 326.8 kB / 0.56 GB, free: 2.641 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004656/0.7747, allocations: 99.77 kB / 0.5601 GB, free: 2.543 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005344/0.7753, allocations: 143.2 kB / 0.5602 GB, free: 2.391 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006622/0.776, allocations: 107.6 kB / 0.5603 GB, free: 2.285 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.776, allocations: 0 / 0.5603 GB, free: 2.285 MB / 395.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001852/0.7779, allocations: 354.2 kB / 0.5607 GB, free: 1.93 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.95e-05/0.778, allocations: 7.984 kB / 0.5607 GB, free: 1.922 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/0.778, allocations: 4 kB / 0.5607 GB, free: 1.918 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/0.7791, allocations: 184.8 kB / 0.5609 GB, free: 1.734 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006813/0.7798, allocations: 55.91 kB / 0.5609 GB, free: 1.68 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001822/0.7817, allocations: 0.728 MB / 0.5616 GB, free: 0.9258 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007982/0.7825, allocations: 48.05 kB / 0.5617 GB, free: 0.8789 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.862e-05/0.7827, allocations: 12.06 kB / 0.5617 GB, free: 0.8672 MB / 395.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0003135/0.783, allocations: 124.8 kB / 0.5618 GB, free: 0.7383 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002072/0.7851, allocations: 361.7 kB / 0.5622 GB, free: 384 kB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001561/0.7853, allocations: 19.77 kB / 0.5622 GB, free: 364 kB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002206/0.7875, allocations: 397.5 kB / 0.5626 GB, free: 15.96 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.722e-05/0.7876, allocations: 4 kB / 0.5626 GB, free: 15.95 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/0.7876, allocations: 0 / 0.5626 GB, free: 15.95 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.642e-05/0.7877, allocations: 7.922 kB / 0.5626 GB, free: 15.95 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003772/0.7915, allocations: 0.8555 MB / 0.5634 GB, free: 15.03 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.7915, allocations: 0 / 0.5634 GB, free: 15.03 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006581/0.7922, allocations: 47.97 kB / 0.5634 GB, free: 14.98 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00092/0.7932, allocations: 168.7 kB / 0.5636 GB, free: 14.81 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.958e-05/0.7933, allocations: 7.984 kB / 0.5636 GB, free: 14.8 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00155/0.7948, allocations: 0.6928 MB / 0.5643 GB, free: 14.09 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.038e-06/0.7949, allocations: 0 / 0.5643 GB, free: 14.09 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002647/0.7976, allocations: 0.5952 MB / 0.5649 GB, free: 13.45 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000339/0.798, allocations: 136.7 kB / 0.565 GB, free: 13.3 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.7981, allocations: 4 kB / 0.565 GB, free: 13.3 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007842/0.7989, allocations: 48 kB / 0.5651 GB, free: 13.25 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003115/0.7993, allocations: 63.81 kB / 0.5651 GB, free: 13.19 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.7994, allocations: 11.98 kB / 0.5651 GB, free: 13.18 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0002076/0.7996, allocations: 119.3 kB / 0.5652 GB, free: 13.06 MB / 411.1 MB Notification: Performance of sort global known variables: time 8.82e-07/0.7996, allocations: 0 / 0.5652 GB, free: 13.06 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.0009223/0.8006, allocations: 64 kB / 0.5653 GB, free: 13 MB / 411.1 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.003372/0.804, allocations: 1.289 MB / 0.5666 GB, free: 11.66 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.8055, allocations: 298 kB / 0.5668 GB, free: 11.37 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.8056, allocations: 0 / 0.5668 GB, free: 11.37 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00076/0.8064, allocations: 147.8 kB / 0.567 GB, free: 11.22 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006742/0.8071, allocations: 21.3 kB / 0.567 GB, free: 11.2 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005322/0.8124, allocations: 0.7565 MB / 0.5677 GB, free: 10.4 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006021/0.8131, allocations: 0.7564 MB / 0.5685 GB, free: 9.617 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002725/0.8134, allocations: 63.42 kB / 0.5685 GB, free: 9.555 MB / 411.1 MB Notification: Performance of SimCode: time 4.779e-06/0.8134, allocations: 4 kB / 0.5685 GB, free: 9.551 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.785/3.599, allocations: 4.861 MB / 0.5733 GB, free: 4.688 MB / 411.1 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